skip to navigation
skip to content

Not Logged In

setuptools-version-command 1.0

Adds a command to dynamically get the version from the VCS of choice

Latest Version: 2.0a0

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.

 
File Type Py Version Uploaded on Size
setuptools-version-command-1.0.tar.gz (md5) Source 2015-01-20 1KB
setuptools_version_command-1.0-py2-none-any.whl (md5) Python Wheel py2 2015-01-20 3KB
  • Downloads (All Versions):
  • 64 downloads in the last day
  • 568 downloads in the last week
  • 1997 downloads in the last month