From 361a9e1b284b23b7b40c7aa11949b79bd79a26b1 Mon Sep 17 00:00:00 2001 From: Karlson Pfannschmidt Date: Sat, 26 Jun 2021 19:27:08 +0200 Subject: [PATCH] Use importlib to fetch the version in __init__ --- tune/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tune/__init__.py b/tune/__init__.py index 65f0930..42ec6e2 100644 --- a/tune/__init__.py +++ b/tune/__init__.py @@ -1,8 +1,9 @@ """Top-level package for Chess Tuning Tools.""" +from importlib.metadata import version __author__ = """Karlson Pfannschmidt""" __email__ = "kiudee@mail.upb.de" -__version__ = "0.7.2" +__version__ = version(__name__) from tune.io import InitStrings, load_tuning_config, parse_ranges from tune.local import (