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.
hatch-vcs
1 parent 1d161a3 commit cb2fe66Copy full SHA for cb2fe66
2 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]
@@ -40,7 +40,7 @@ Funding = "https://github.com/sponsors/pcisar"
40
Source = "https://github.com/FirebirdSQL/python3-driver"
41
42
[tool.hatch.version]
43
-path = "src/firebird/driver/__init__.py"
+source = "vcs"
44
45
[tool.hatch.build.targets.sdist]
46
include = ["src"]
src/firebird/driver/__init__.py
@@ -133,4 +133,8 @@
133
)
134
135
#: Current driver version, SEMVER string.
136
-__VERSION__ = '2.0.2'
+try:
137
+ from importlib.metadata import version as _get_version
138
+ __VERSION__ = _get_version('firebird-driver')
139
+except Exception:
140
+ __VERSION__ = 'unknown'
0 commit comments