Skip to main content

A version helper in the spirit of versioneer.

Project description

Automatically use the latest “vX.X.X” Git tag as version in your Python package.

It also supports getting the version from Python source distributions (sdist) or, once your package is installed, via pkg_resources (part of setuptools).

usage

Add setuptools to the dependencies of your package, and the following into yourpackage.py (or __init__.py):

from get_version import get_version
__version__ = get_version(__file__)
del get_version

contributing

Use black . to ensure proper code style. In order to not forget you can use pre-commit install.

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

get_version-2.0.6.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

get_version-2.0.6-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file get_version-2.0.6.tar.gz.

File metadata

  • Download URL: get_version-2.0.6.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.1

File hashes

Hashes for get_version-2.0.6.tar.gz
Algorithm Hash digest
SHA256 89435a9c4e07b6e91e5683725561f705d6ff8be1c7fe15534e62000aed5ba86a
MD5 8693b077e1b2e2d6d74b67c40c70ee5e
BLAKE2b-256 3801c0f9714332523bc3aec416a9f9aadffc5e0d6ff8d3090cda4903a3dc5d66

See more details on using hashes here.

Provenance

File details

Details for the file get_version-2.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for get_version-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 437143718f704b035cb20fa44eae440618a1a2a806fa360ec5c3dc4e1094e41d
MD5 5ccc5acd6f2a5ffdc8fd488535b504c0
BLAKE2b-256 2d27610ef458455cb1bcc4b454cebab43de3579e43d080af872727b9ac3146c8

See more details on using hashes here.

Provenance

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