Metadata-Version: 2.1
Name: get_version
Version: 3.5.4
Summary: A version helper in the spirit of versioneer.
Home-page: https://github.com/flying-sheep/get_version
Author: Philipp Angerer
Author-email: phil.angerer@gmail.com
Requires-Python: >=3.7
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
Requires-Dist: importlib_metadata; python_version < "3.8"
Requires-Dist: typing_extensions; python_version < "3.8"
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"
Provides-Extra: test

get_version |b-pypi| |b-conda| |b-travis| |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-travis| image:: https://travis-ci.com/flying-sheep/get_version.svg?branch=master
   :target: https://travis-ci.com/flying-sheep/get_version
.. |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/

