Skip to main content

Use version control tags to discover version numbers

Project description

https://travis-ci.org/habnabit/vcversioner.png

vcversioner

In-depth documentation: https://vcversioner.readthedocs.org/en/latest/

To quote myself:

It’s much more convenient to be able to use your version control system’s tagging mechanism to derive a version number than to have to duplicate that information all over the place.

I ended up copy-pasting the same code into a couple different setup.py files just to avoid duplicating version information. But, copy-pasting is dumb and unit testing setup.py files is hard. Thus: vcversioner.

Basic use

vcversioner installs itself as a distutils hook, which makes its use exceedingly simple:

from setuptools import setup

setup(
    # [...]
    setup_requires=['vcversioner'],
    vcversioner={},
)

The presence of a vcversioner argument automagically activates vcversioner and updates the project’s version. In most cases, the following line should also be added to MANIFEST.in:

include version.txt

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

vcversioner-0.13.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file vcversioner-0.13.0.tar.gz.

File metadata

  • Download URL: vcversioner-0.13.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vcversioner-0.13.0.tar.gz
Algorithm Hash digest
SHA256 b0f13b26f7142047d514a83f6d20d4e3282706090f341c9730fe26fb65d5b22a
MD5 3a3eb170400fc7bc29231ec811a87bda
BLAKE2b-256 268dcb1bd2f9c4c44ddd5824aa0b536d054e7a8898db44188002a43f375bf3a7

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