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

Uploaded Source

Built Distribution

get_version-2.0.5-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for get_version-2.0.5.tar.gz
Algorithm Hash digest
SHA256 76262c619db458640fa55d0c5ce262a70e8058fd41e6c75aa06f34f521ebc180
MD5 122f6fa1116a001a337afc5c58063b6a
BLAKE2b-256 a71905b796cf7ac77384c045975e1c966aff3c3ebb8dc2dbb355c8d674ecdaa9

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for get_version-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 429a887efe4ffecdb89324c3758dac096f987c3b87027ecc7c9a6293c19eb834
MD5 57cfc5f54c6ab93a7f570c821120f38c
BLAKE2b-256 a462f742cc9c19bb8a5107443d289a7ed0777aabbfde61ba28aaf105df2e7765

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