We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 832ff64 commit a6aefbfCopy full SHA for a6aefbf
.gitignore
@@ -90,3 +90,6 @@ ENV/
90
91
# pytest
92
.pytest_cache/
93
+
94
+# hatch-vcs
95
+src/*/_version.py
pyproject.toml
@@ -42,6 +42,9 @@ scripts.blurb = "blurb.blurb:main"
42
[tool.hatch]
43
version.source = "vcs"
44
45
+[tool.hatch.build.hooks.vcs]
46
+version-file = "src/blurb/_version.py"
47
48
[tool.hatch.version.raw-options]
49
local_scheme = "no-local-version"
50
src/blurb/__init__.py
@@ -1,3 +1 @@
1
-import importlib.metadata
2
-
3
-__version__ = importlib.metadata.version(__name__)
+from ._version import __version__
0 commit comments