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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools-version-command-1.0.tar.gz.
File metadata
- Download URL: setuptools-version-command-1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
613197dbd1ec0368ace03f8486a3d81769b34966f2c95be0aa463d0ca87a3f16
|
|
| MD5 |
f1ea73cc9e2b5083961f58aebca8d4b7
|
|
| BLAKE2b-256 |
b9b5c3a7e678e996afc32aad3f5022b1d0a59f225312abe4337d753420da70d4
|
File details
Details for the file setuptools_version_command-1.0-py2-none-any.whl.
File metadata
- Download URL: setuptools_version_command-1.0-py2-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fad584605e7a5b43f0a138f8ced27b20dedbf119b06463be46bf2653ab3d6f1
|
|
| MD5 |
0cb637a47104c86d51fcfe6ca691f4bf
|
|
| BLAKE2b-256 |
45cc1785d46c7a666f2572e3540d893cf9d0f4c71d4c23228d752c0b20fc03a5
|