Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

setuptools-version-command-1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

setuptools_version_command-1.0-py2-none-any.whl (3.9 kB view details)

Uploaded Python 2

File details

Details for the file setuptools-version-command-1.0.tar.gz.

File metadata

File hashes

Hashes for setuptools-version-command-1.0.tar.gz
Algorithm Hash digest
SHA256 613197dbd1ec0368ace03f8486a3d81769b34966f2c95be0aa463d0ca87a3f16
MD5 f1ea73cc9e2b5083961f58aebca8d4b7
BLAKE2b-256 b9b5c3a7e678e996afc32aad3f5022b1d0a59f225312abe4337d753420da70d4

See more details on using hashes here.

File details

Details for the file setuptools_version_command-1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for setuptools_version_command-1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 9fad584605e7a5b43f0a138f8ced27b20dedbf119b06463be46bf2653ab3d6f1
MD5 0cb637a47104c86d51fcfe6ca691f4bf
BLAKE2b-256 45cc1785d46c7a666f2572e3540d893cf9d0f4c71d4c23228d752c0b20fc03a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page