From 4623fe25f1d907555065337bdcf84791d240fab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Balajti?= Date: Wed, 13 Nov 2024 11:29:18 +0100 Subject: [PATCH] update versioning --- htsinfer/__init__.py | 2 -- htsinfer/cli.py | 6 ++---- htsinfer/version.py | 3 +++ setup.py | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 htsinfer/version.py diff --git a/htsinfer/__init__.py b/htsinfer/__init__.py index 6137c408..de38280e 100644 --- a/htsinfer/__init__.py +++ b/htsinfer/__init__.py @@ -1,5 +1,3 @@ """HTSinfer project root""" from htsinfer.htsinfer import HtsInfer # noqa:F401 - -__version__ = "1.0.0" diff --git a/htsinfer/cli.py b/htsinfer/cli.py index 68506000..b0723f96 100644 --- a/htsinfer/cli.py +++ b/htsinfer/cli.py @@ -10,10 +10,8 @@ import sys import tempfile -from htsinfer import ( - HtsInfer, - __version__, -) +from htsinfer import HtsInfer +from htsinfer.version import __version__ from htsinfer.models import ( CleanupRegimes, LogLevels, diff --git a/htsinfer/version.py b/htsinfer/version.py new file mode 100644 index 00000000..257c5c63 --- /dev/null +++ b/htsinfer/version.py @@ -0,0 +1,3 @@ +"""Single source of truth for package version.""" + +__version__ = "1.0.0-rc.1" diff --git a/setup.py b/setup.py index ed2144a3..b8b915a4 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ """HTSinfer package definition""" -from setuptools import setup, find_packages +from setuptools import (setup, find_packages) -from htsinfer import __version__ +from htsinfer.version import __version__ # Read long description from file with open("README.md", "r", encoding="utf-8") as fh: