incremental
incremental copied to clipboard
A library for versioning your Python projects.
As per README, one can import the version number from `__init__.py`, which makes it accessible after all packages have been installed. However, a problem arises when referencing my package's version...
It doesn't seem like incremental should mangle bytecode files: ``` ❯ .tox/twine/bin/python -m incremental.update --rc treq Updating codebase to 20.9.0rc1 Updating /home/twm/dev/treq/src/treq/__pycache__/api.cpython-37.pyc Updating /home/twm/dev/treq/src/treq/__pycache__/api.cpython-36.pyc ``` Observed with incremental 17.5.0
PEP 440 defines [local version identifiers](https://www.python.org/dev/peps/pep-0440/#local-version-identifiers) which can be used when applying local patches to upstream projects. For example, in Launchpad we occasionally have to backport fixes from later releases...
Trying to use incremental in my own project, but it failed. ``` $ pip install -e mypkg ERROR: Command errored out with exit status 1: command: /home/adam/venv/bin/python3.7 -c 'import sys,...
``` (BurdenOfCommand) W:\BurdenOfCommand>python -m incremental.update --newversion=0.6.0 --path hex_game burdenofcommand Updating codebase to 0.6.0 Updating W:\BurdenOfCommand\hex_game/_version.py (BurdenOfCommand) W:\BurdenOfCommand>python -m incremental.update --rc --path hex_game burdenofcommand Updating codebase to 20.1.0rc1 Updating W:\BurdenOfCommand\hex_game/_version.py (BurdenOfCommand)...
I tried the following with buildbot in a Python 3 virtual environment: ``` pip install "git+https://github.com/buildbot/buildbot#subdirectory=pkg" pip install "git+https://github.com/buildbot/buildbot#subdirectory=master" pip install "git+https://github.com/buildbot/buildbot#subdirectory=worker" pip install --upgrade "git+https://github.com/twisted/twisted" ``` I then ran...
When used in external projects, at first I was confused about the `use_incremental` argument for setup as I thought it was a standard setuptools argument, maybe it can be renamed...
for people who have no idea about python versioning standards
Twisted is pinned to incremental trunk for type checking. I think we were stuck doing a release because nobody had the keys for a little bit, but that has long...
Have we any way to bump major/minor number incremental? I dont find solution in `incremental.update` - only last number.