Adds a command to dynamically get the version from the VCS of choice
Project description
setuptools-version-command – get version from VCS
Instead of hardcoding the version in setup.py like this:
- setup(
name=’some-dist-name’, version=’1.0’, …)
This package allows specifying a VCS command like this:
- setup(
name=’some-dist-name’, version_command=’git describe’)
Which will then update the version into some-dist-name.egg-info/version.txt, so that the version can also be found if setup.py is being run from a sdist or something.
When it can find the version from either some-dist-name.egg-info/version.txt or the output of the version_command, it will update the version key that is normally used for the version, such as what’s used in the sdist filename and so on.
To use it, just do this:
pip install setuptools-version-command
With the pip of the global python.
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
Built Distribution
Hashes for setuptools-version-command-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613197dbd1ec0368ace03f8486a3d81769b34966f2c95be0aa463d0ca87a3f16 |
|
MD5 | f1ea73cc9e2b5083961f58aebca8d4b7 |
|
BLAKE2b-256 | b9b5c3a7e678e996afc32aad3f5022b1d0a59f225312abe4337d753420da70d4 |
Hashes for setuptools_version_command-1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fad584605e7a5b43f0a138f8ced27b20dedbf119b06463be46bf2653ab3d6f1 |
|
MD5 | 0cb637a47104c86d51fcfe6ca691f4bf |
|
BLAKE2b-256 | 45cc1785d46c7a666f2572e3540d893cf9d0f4c71d4c23228d752c0b20fc03a5 |