Commit e42ff760 authored by Leon Merten Lohse's avatar Leon Merten Lohse
Browse files

Source version from dedicated module

parent a114998c
Pipeline #201761 failed with stages
in 2 minutes and 19 seconds
from .version import __version__
__version__ = "0.1"
......@@ -7,9 +7,14 @@ except ImportError:
' or you need to install the PEP 518 requirements in pyproject.toml yourself', file=sys.stderr)
raise
# following https://packaging.python.org/guides/single-sourcing-package-version/
version = {}
with open("fresnel/version.py") as fp:
exec(fp.read(), version)
setup(
name="fresnel",
version="0.1",
version=version['__version__'],
author='Leon M. Lohse',
author_email='llohse@uni-goettingen.de',
url='https://gitlab.gwdg.de/irp/fresnel',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment