Setup bumpversion#1062
Setup bumpversion#1062webyneter wants to merge 7 commits intocookiecutter:masterfrom webyneter:setup-bumpversion
Conversation
- Create `use_bumpversion` cookiecutter option.
- Require `bumpversion==0.5.3` locally.
- Refactor version resolution in `./docs/conf.py`: Now, there's a single 'source of truth', the `release` variable representing 'the full version, including alpha/beta/rc tags', allowing the `version` to be derived dynamically from itself.
- Provide bumpversion config file pinpointing project version in `./package.json` (the `version` attribute), `./{{cookiecutter.project_slug}}/__init__.py` (the `__version__` variable), and ./docs/conf.py (the `release` variable).
N.B. The whole point of refactoring `./docs/conf.py` was indeed to faciilitate seamless version bumping.
|
For now,
|
- Create `use_bumpversion` cookiecutter option.
- Require `bumpversion==0.5.3` locally.
- Refactor version resolution in `./docs/conf.py`: Now, there's a single 'source of truth', the `release` variable representing 'the full version, including alpha/beta/rc tags', allowing the `version` to be derived dynamically from itself.
- Provide bumpversion config file pinpointing project version in `./package.json` (the `version` attribute), `./{{cookiecutter.project_slug}}/__init__.py` (the `__version__` variable), and ./docs/conf.py (the `release` variable).
N.B. The whole point of refactoring `./docs/conf.py` was indeed to faciilitate seamless version bumping.
|
Apparently, That said, there is this fork https://github.com/c4urself/bump2version but I've never used it. |
|
@luzfcb, I see, you're right. I'm closing the PR. |
|
I am +1 to add any actively maintained library and that does something similar to bumpversion and a minimum documentation of how to use. |
use_bumpversioncookiecutter option.bumpversion==0.5.3locally../docs/conf.py: Now, there's a single 'source of truth', thereleasevariable representing 'the full version, including alpha/beta/rc tags', allowing theversionto be derived dynamically from itself../package.json(theversionattribute),./{{cookiecutter.project_slug}}/__init__.py(the__version__variable), and ./docs/conf.py (thereleasevariable).N.B. The whole point of refactoring
./docs/conf.pywas indeed to faciilitate seamless version bumping.