GitXplorerGitXplorer
f

get_version

public
12 stars
2 forks
2 issues

Commits

List of commits on branch main.
Verified
a065c7685f04a6e80bde98e51efc3616ed704e79

[pre-commit.ci] pre-commit autoupdate (#88)

ppre-commit-ci[bot] committed 5 days ago
Verified
5a4df524c16d931d590667729e345f7d74b91251

[pre-commit.ci] pre-commit autoupdate (#87)

ppre-commit-ci[bot] committed 11 days ago
Verified
dc85e85d6e51fa14c716ba8e579f754d07ea332f

[pre-commit.ci] pre-commit autoupdate (#86)

ppre-commit-ci[bot] committed 23 days ago
Verified
8e9f97150edee629d2f970242f00edaba758f79d

[pre-commit.ci] pre-commit autoupdate (#85)

ppre-commit-ci[bot] committed a month ago
Verified
5e8f548ec54701b28ef83921d56d1c8e60bab549

[pre-commit.ci] pre-commit autoupdate (#84)

ppre-commit-ci[bot] committed a month ago
Verified
e8a13e44da92eb582e3baed12fabd3fe9c332abf

[pre-commit.ci] pre-commit autoupdate (#83)

ppre-commit-ci[bot] committed 2 months ago

README

The README file for this repository.

get_version |b-pypi| |b-conda| |b-ci| |b-cover|

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 importlib.metadata.

usage

Add the following into yourpackage.py (or __init__.py):

.. code-block:: python

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

.. |b-ci| image:: https://github.com/flying-sheep/get_version/actions/workflows/run_tests.yml/badge.svg :target: https://github.com/flying-sheep/get_version/actions/workflows/run_tests.yml .. |b-cover| image:: https://coveralls.io/repos/github/flying-sheep/get_version/badge.svg :target: https://coveralls.io/github/flying-sheep/get_version .. |b-pypi| image:: https://img.shields.io/pypi/v/get_version.svg :target: https://pypi.org/project/get_version .. |b-conda| image:: https://img.shields.io/conda/vn/conda-forge/get_version.svg :target: https://anaconda.org/conda-forge/get_version