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-1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distributions

versiongit-1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

versiongit-1.0-py2-none-any.whl (10.7 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: versiongit-1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.15

File hashes

Hashes for versiongit-1.0.tar.gz
Algorithm Hash digest
SHA256 9a8dba1b281fdfde16038794494bcb2e3565cb98a5e353fe429505c890521e5d
MD5 bd8bc7e3eb8cf0924186b256fadb3bef
BLAKE2b-256 829fa53203e43ccd598e17aabcfa980d5e4fd80e99d0e9b22bec8db373173ace

See more details on using hashes here.

File details

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

File metadata

  • Download URL: versiongit-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.7

File hashes

Hashes for versiongit-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7963f558c57827dc90290881ae0e99a75737a303cc086e6b64338401a014bad7
MD5 2218743e457eef32f93d75baf1b47d68
BLAKE2b-256 969d198ba938a715771c9dd0b744b83ab9ba7e9b50649b96032162e048a3460e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: versiongit-1.0-py2-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.15

File hashes

Hashes for versiongit-1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 84943c0350fbe917c29f821a658d931440bbb24a124df5e797bead074b17c741
MD5 42c756a2ef4afc4e5109f6593d219ebe
BLAKE2b-256 f021624951225fe14fa7aa7517a35aa21aa44650baecee8d94e16cfc478e7449

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