Skip to main content

Tool for adding version from git to a python project without adding dependencies

Project description

Build Status Test coverage Latest PyPI version Documentation

VersionGit is a tool for managing the version number of Python modules, removing the need to update an embedded version string whenever a Git tag is made, and providing sensible development version numbers too. It does this by storing a single file in the source repo that reads the version from git describe or git archive keywords. At build time, this file is modified in the distribution to contain a static version number to be used in preference to this. This tool is inspired by versioneer, but has a vastly reduced feature set so that the code stored in each module is minimal.

Documentation

Full documentation is available at http://versiongit.readthedocs.org

Source Code

Available from https://github.com/dls-controls/versiongit

Installation

To install the latest release, type:

pip install versiongit

Changelog

See CHANGELOG

Contributing

See CONTRIBUTING

License

To make VersionGit easier to embed, all its code is dedicated to the public domain. The _version_git.py that it creates is also in the public domain. Specifically, both are released under the Creative Commons “Public Domain Dedication” license (CC0-1.0), as described in LICENSE

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

versiongit-0.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distributions

versiongit-0.5-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

versiongit-0.5-py2-none-any.whl (8.4 kB view details)

Uploaded Python 2

File details

Details for the file versiongit-0.5.tar.gz.

File metadata

  • Download URL: versiongit-0.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.15

File hashes

Hashes for versiongit-0.5.tar.gz
Algorithm Hash digest
SHA256 d2bd39c62272b3ea04abb9005135ec61b52c1e850b2c2b1781dffa8d48caf2be
MD5 64338698f2112ff2cb48eeacf5257dd5
BLAKE2b-256 11634a64fcd4c0d99dfd04777c935c3c21cec958ff09808e83d06a86089a3735

See more details on using hashes here.

File details

Details for the file versiongit-0.5-py3-none-any.whl.

File metadata

  • Download URL: versiongit-0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

File hashes

Hashes for versiongit-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4537aecf178ea09c774cc7942e49670c953e487d1c4d69ae026de5f46bfa4d9d
MD5 435bb009221e0bcec89bbca26e5f3955
BLAKE2b-256 a41955dc7892111ebf84bef46a71e604835c9d2dc323377b9841fe3203f66665

See more details on using hashes here.

File details

Details for the file versiongit-0.5-py2-none-any.whl.

File metadata

  • Download URL: versiongit-0.5-py2-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.15

File hashes

Hashes for versiongit-0.5-py2-none-any.whl
Algorithm Hash digest
SHA256 c0d23bb5bf922e3716a01aa69e5fee0efe76ce80ca316a0fa28062354d234cf8
MD5 fc71f3155d5a7553c64665d82d087dfd
BLAKE2b-256 8e6cf78da8aa48c4838f167ae3b977fbf5e6f7fbc536d452b9aadc7f72ba0ceb

See more details on using hashes here.

Supported by

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