Skip to content
Snippets Groups Projects
Commit 057e7a1b authored by Klaas Kliffen's avatar Klaas Kliffen :satellite:
Browse files

Merge branch 'main' into 'main'

Make __version__ global available for all supported python versions

See merge request templates/python-package!1
parents 9eec287c be074d84
No related branches found
No related tags found
1 merge request!1Make __version__ global available for all supported python versions
Pipeline #39010 passed with warnings
""" My Awesome Package """
try:
from importlib import metadata
except ImportError: # for Python<3.8
import importlib_metadata as metadata
__version__ = metadata.version("my-awseome-app")
......@@ -30,6 +30,7 @@ include_package_data = true
packages = find:
python_requires = >=3.7
install_requires =
importlib-metadata>=0.12;python_version<"3.8"
numpy
[flake8]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment