Metadata-Version: 2.1
Name: get_version
Version: 3.5.5
Summary: A version helper in the spirit of versioneer.
Author-email: Philipp Angerer <phil.angerer@gmail.com>
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Requires-Dist: dunamai>=1.19.0
Requires-Dist: pytest>=6.2.5 ; extra == "test"
Requires-Dist: pytest-black ; extra == "test"
Requires-Dist: pytest-mypy ; extra == "test"
Requires-Dist: pygments ; extra == "test"
Project-URL: Homepage, https://github.com/flying-sheep/get_version
Provides-Extra: test

get_version |b-pypi| |b-conda| |b-ci| |b-cover| |b-black|
=========================================================
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

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

.. |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
.. |b-black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/ambv/black

.. |black| replace:: ``black .``
.. _black: https://black.readthedocs.io/en/stable/
.. |pre-commit| replace:: ``pre-commit install``
.. _pre-commit: https://pre-commit.com/

