diff --git a/querynator/__init__.py b/querynator/__init__.py index 35a0a61..0bef347 100644 --- a/querynator/__init__.py +++ b/querynator/__init__.py @@ -1,7 +1,9 @@ """Top-level package for querynator.""" +import importlib.metadata as importlib_metadata + __author__ = """Susanne Jodoin, Mark Polster & Niclas Grote""" __email__ = ( "susanne.jodoin@qbic.uni-tuebingen.de | mark.polster@uni-tuebingen.de | niclas.grote@student.uni-tuebingen.de" ) -__version__ = "0.5.1" +__version__ = importlib_metadata.version(__name__) diff --git a/setup.py b/setup.py index dbeb329..db5fd53 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,8 @@ from setuptools import find_packages, setup +VERSION = "0.5.2" + with open("README.rst") as readme_file: readme = readme_file.read() @@ -46,6 +48,6 @@ test_suite="tests", tests_require=test_requirements, url="https://github.com/qbic-pipelines/querynator", - version="0.5.1", + version=VERSION, zip_safe=False, )