Skip to content

Commit

Permalink
Don't dynamically generate the version
Browse files Browse the repository at this point in the history
  • Loading branch information
sjagoe committed Dec 5, 2023
1 parent 13d770e commit fe3229c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions haas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ packages = [
"haas.plugins.tests",
]

[tool.setuptools.dynamic]
version = {attr = "haas.__version__"}

[project.scripts]
haas = "haas.main:main"

Expand All @@ -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"

0 comments on commit fe3229c

Please sign in to comment.