From a9474b47af9be44ff199ec4cbb934f1a316cf2c9 Mon Sep 17 00:00:00 2001 From: Luca Visentin Date: Wed, 13 Nov 2024 12:32:30 +0100 Subject: [PATCH] fix: auto detect version from build config --- bioTea/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bioTea/__init__.py b/bioTea/__init__.py index 3835436..bbee25e 100644 --- a/bioTea/__init__.py +++ b/bioTea/__init__.py @@ -4,6 +4,7 @@ """ import collections import importlib.resources as pkg_resources +from importlib.metadata import version import logging import os from copy import copy @@ -20,7 +21,7 @@ init(autoreset=True) -__version__ = "1.1.0" +__version__ = version(__package__) # Set what is exported by the __init__ __all__ = ["__version__", "OPTIONS"]