diff --git a/haas/__init__.py b/haas/__init__.py index 9166c6b..ef68dde 100644 --- a/haas/__init__.py +++ b/haas/__init__.py @@ -8,10 +8,7 @@ import logging -try: - from haas._version import version as __version__ -except ImportError: # pragma: no cover - __version__ = 'notset' +__version__ = '0.10.0.dev1' class NullHandler(logging.Handler): # pragma: no cover diff --git a/pyproject.toml b/pyproject.toml index c65c84a..438e211 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,9 @@ packages = [ "haas.plugins.tests", ] +[tool.setuptools.dynamic] +version = {attr = "haas.__version__"} + [project.scripts] haas = "haas.main:main" @@ -67,8 +70,5 @@ verbose = "haas.plugins.result_handler:VerboseTestResultHandler" timing = "haas.plugins.result_handler:TimingResultHandler" [build-system] -requires = ["setuptools", "setuptools-scm >= 8.0"] +requires = ["setuptools"] build-backend = "setuptools.build_meta" - -[tool.setuptools_scm] -version_file = "haas/_version.py"