Skip to content

Commit 353872f

Browse files
committed
Fix __version__
1 parent d0cffec commit 353872f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
requires = ["setuptools>=42"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.setuptools.packages.find]
6+
where = ["src"]
7+
include = ["guitares*"]
8+
59
[project]
610
name = "guitares"
7-
version = "0.0.9"
811
authors = [
912
{name = "Maarten van Ormondt", email = "[email protected]"},
1013
]
@@ -30,6 +33,10 @@ dependencies = [
3033
"spatialpandas",
3134
"pyogrio"
3235
]
36+
dynamic = ["version"]
37+
38+
[tool.setuptools.dynamic]
39+
version = { attr = "guitares.__version__" }
3340

3441
[tool.setuptools.package-data]
3542
"guitares.pyqt5.mapbox.server" = ["*.js", "*.html"]

src/guitares/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
55
@author: ormondt
66
"""
7+
8+
__version__ = "0.0.9"

0 commit comments

Comments
 (0)