File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" hatchling" ]
2+ requires = [" hatchling" , " hatch-vcs " ]
33build-backend = " hatchling.build"
44
55[project ]
@@ -40,7 +40,7 @@ Funding = "https://github.com/sponsors/pcisar"
4040Source = " https://github.com/FirebirdSQL/python3-driver"
4141
4242[tool .hatch .version ]
43- path = " src/firebird/driver/__init__.py "
43+ source = " vcs "
4444
4545[tool .hatch .build .targets .sdist ]
4646include = [" src" ]
Original file line number Diff line number Diff line change 133133)
134134
135135#: Current driver version, SEMVER string.
136- __VERSION__ = '2.0.2'
136+ try :
137+ from importlib .metadata import version as _get_version
138+ __VERSION__ = _get_version ('firebird-driver' )
139+ except Exception :
140+ __VERSION__ = 'unknown'
You can’t perform that action at this time.
0 commit comments