Commit a2dda2e
committed
Fix dynamic version resolution in pyproject.toml
setuptools resolves the dynamic version attr by reading geonode.__version__
directly. That attribute is a tuple (e.g. (5, 1, 0, 'final', 0)); setuptools
normalises a non-string attr by joining it with dots, producing an invalid
PEP 440 version like '5.1.0.final.0' and breaking the wheel build.
Expose a plain string attribute __version_str__ = get_version() in
geonode/__init__.py and point the dynamic version at it, so setuptools reads
an already-normalised version string (e.g. '5.1.0').1 parent 51d19cc commit a2dda2e
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
0 commit comments