|
There are many techniques to maintain a single source of truth for the version |
|
number of your project: |
|
|
|
#. Read the file in :file:`setup.py` and get the version. Example (from `pip setup.py |
states:
Read the file in ...
but it's not clear which file (there is no preceding discussion about a file).
The meaning can be somewhat guessed from the code snippet below it, but that limits the interpretation to package/__init__.py, while it could be applied to other options too (e.g. package/version.py)
packaging.python.org/source/guides/single-sourcing-package-version.rst
Lines 8 to 11 in 526ee6d
states:
but it's not clear which file (there is no preceding discussion about a file).
The meaning can be somewhat guessed from the code snippet below it, but that limits the interpretation to
package/__init__.py, while it could be applied to other options too (e.g.package/version.py)