Sync __version__ in __init__.py with version in pyproject.toml
Project description
sync-version
sync version in pyproject.toml (if pyproject.toml does not have version info, then version in package.json) with version in init.py
Install it
pip install sync-version
# or pip install git+https://github.com/ffreemt/sync-version
# poetry add git+https://github.com/ffreemt/sync-version
# git clone https://github.com/ffreemt/sync-version && cd sync-version
Use it
poetry version prerelease
sync-version # or python -m sync_version
poetry version patch
sync-version # or python -m sync_version
# dry-run
sync-version --dry-run
# debug and dry-run
sync-version --debug --dry-run
Typical workflow
poetry version prerelease
# yarn version --new-version 0.1.5ax, for example, if necessary
sync-version # update __version__ in module_name/__init__.py
git add . && git commit -m "Update ..."
git push
poetry build # or pdm build
poetry publish # or pdm publish --no-build or twine upload --skip=existing dist\*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sync-version-0.1.5a1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for sync_version-0.1.5a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3bbb0f5638a583961bc9a09263a485c23576c7e368545fc6d30dcaefa600b08 |
|
MD5 | 6710ac0d2eda6d5ce180128d07a41fea |
|
BLAKE2b-256 | 317dd613cd5de49144ce94bccd87a969a5c08a040852737df3dc0d73b3efba7d |