Skip to main content

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

Project description

Code CI Docs CI Test Coverage Latest PyPI version CC0-1.0 License

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.

PyPI

pip install versiongit

Source code

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

Documentation

https://dls-controls.github.io/versiongit

Changelog

https://github.com/dls-controls/versiongit/blob/master/CHANGELOG.rst

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)

See https://dls-controls.github.io/versiongit for more detailed documentation.

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

Uploaded Source

Built Distribution

versiongit-2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: versiongit-2.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for versiongit-2.0.tar.gz
Algorithm Hash digest
SHA256 5083a5b48d7bfbec1ff993dc7dd2e1c0ba4c1cbd87d7d32c9f574627894cdd98
MD5 29d883d431a1ca17f3c70f65e6c0a819
BLAKE2b-256 bfca776852086f191998505cc212271e8060f31e69554a0ee20910b75a24cd28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: versiongit-2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for versiongit-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ad247606abc27fa003596704df94de02d7ebc0d4fcd803976e9fd9769d24ce4
MD5 a89e3bd82490d625e9006415ed95c55b
BLAKE2b-256 f8c44b64b859f2180ae26cba265b61e557cbb8052893f7cb1b89367b91f6f8b4

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