We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ea8562 + 2515519 commit a990bb2Copy full SHA for a990bb2
3 files changed
pyproject.toml
@@ -1,5 +1,5 @@
1
[build-system]
2
-requires = ["hatchling"]
+requires = ["hatchling", "hatch-vcs"]
3
build-backend = "hatchling.build"
4
5
[project]
@@ -37,7 +37,7 @@ Issues = "https://github.com/nocomplexity/codeaudit/issues"
37
Source = "https://github.com/nocomplexity/codeaudit"
38
39
[tool.hatch.version]
40
-path = "src/codeaudit/__about__.py"
+source = "vcs"
41
42
43
[tool.hatch.build.targets.wheel]
src/codeaudit/__about__.py
src/codeaudit/__init__.py
@@ -1,4 +1,6 @@
# SPDX-FileCopyrightText: 2025-present Maikel Mardjan - https://nocomplexity.com/
#
# SPDX-License-Identifier: GPL-3.0-or-later
-from .__about__ import __version__
+from importlib.metadata import version
+
6
+__version__ = version("codeaudit")
0 commit comments