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


Release history Release notifications

History Node

2.2

History Node

2.1a1

History Node

2.1a0

History Node

2.0

History Node

2.0a0

History Node

1.3.6

History Node

1.3.5

History Node

1.3.4

History Node

1.3.3

History Node

1.3.2

History Node

1.3.1

History Node

1.3

History Node

1.2

History Node

1.1

This version
History Node

1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
setuptools_version_command-1.0-py2-none-any.whl (3.9 kB) Copy SHA256 hash SHA256 Wheel py2 Jan 20, 2015
setuptools-version-command-1.0.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None Jan 20, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page