Skip to main content

OCA tool to help with modules migration

Project description

Pre-commit Status

oca-port

Tool helping to port an addon or missing commits of an addon from one branch to another.

Installing

$ pipx install oca-port
$ #OR
$ git clone git@github.com:oca/oca-port.git
$ cd oca-port
$ pipx install .

Using

If the addon does not exist on the target branch, it will assist the user in the migration, following the OCA migration guide.

If the addon already exists on the target branch, it will retrieve missing commits to port. If a Pull Request exists for a missing commit, it will be ported with all its commits if they were not yet (fully) ported.

To check if an addon could be migrated or to get eligible commits to port:

$ export GITHUB_TOKEN=<token>
$ oca-port 14.0 15.0 shopfloor --verbose

To effectively migrate the addon or port its commits, use the --fork option:

$ oca-port 14.0 15.0 shopfloor --fork camptocamp

Migration of addon

The tool follows the usual OCA migration guide to port commits of an addon, and will invite the user to fullfill the mentionned steps that can't be performed automatically.

Output example: image

Port of commits/Pull Requests

The tool will ask the user if he wants to open draft pull requests against the upstream repository.

If there are several Pull Requests to port, it will ask the user if he wants to base the next PR on the previous one, allowing the user to cumulate ported PRs in one branch and creating a draft PR against the upstream repository with all of them.

More details here : OCA Days 2022 - Sébastien Alix and Simone Orsi: oca-port:new OCA tool to help with modules migration

Output example (with --verbose): oca_port_pr_verbose

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oca_port-0.13.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

oca_port-0.13-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file oca_port-0.13.tar.gz.

File metadata

  • Download URL: oca_port-0.13.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for oca_port-0.13.tar.gz
Algorithm Hash digest
SHA256 f6286a8e719d04f6ac8910f6a5979a8a26f0cc540a23db7eb3fccccefc8b2c74
MD5 54a86a26a1f4bb1632d527beb62c81ba
BLAKE2b-256 f142bfc1421299b453aeed2ac77560c77a77e2fa41e31026c5068a0e25633343

See more details on using hashes here.

File details

Details for the file oca_port-0.13-py3-none-any.whl.

File metadata

  • Download URL: oca_port-0.13-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for oca_port-0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 372a4bcd31c39d7b0601fa77d4e432f097b5fe8f494002b2607798869110c2b1
MD5 cc38144b496cc2c8bbddb0866b583065
BLAKE2b-256 4152fe1642e2885932cb91d89cb1a9cec45bf47f587af6a81a407969f96ff686

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page