Use version control tags to discover version numbers
Elevator pitch: you can write a setup.py with no version information
specified, and vcversioner will find a recent, properly-formatted
VCS tag and extract a version from it.
It’s much more convenient to be able to use your version control
system’s tagging mechanism to derive a version number than to have
to duplicate that information all over the place. I eventually ended
up copy-pasting the same code into a couple different setup.py files
just to avoid duplicating version information. But, copy-pasting is
dumb and unit testing setup.py files is hard. This code got factored
out into vcversioner.
- Links to openSUSE:Factory / python-vcversioner
- Has a link diff
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:python:backports/python-vcversioner && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
COPYING | 0000000753 753 Bytes | |
python-vcversioner-rpmlintrc | 0000000089 89 Bytes | |
python-vcversioner.changes | 0000001402 1.37 KB | |
python-vcversioner.spec | 0000002255 2.2 KB | |
test_vcversioner.py | 0000015113 14.8 KB | |
vcversioner-2.16.0.0.tar.gz | 0000009024 8.81 KB |
Latest Revision
Dirk Mueller (dirkmueller)
committed
(revision 1)
Comments 0