Open wuch-g2v opened 1 year ago
When I was updating the Fedora package recently, I also encountered this.
As far as I can see, the version is only set dynamically when building a release with GitHub Actions: https://github.com/PyCQA/pydocstyle/blob/07f6707e2c5612960347f7c00125620457f490a7/.github/workflows/release.yml#L30-L31 It is set to the tag name which invoked the build.
This is not very practical for the downstream rebuilds. E.g., in Fedora RPM package, I needed to implement this work-around:
sed -r -i 's/(version = ")0.0.0-dev/\1%{version}/' pyproject.toml
Why not use poetry-dynamic-versioning
? 🤔
Looks like version in pyproject.toml is incorrect. https://github.com/PyCQA/pydocstyle/blob/07f6707e2c5612960347f7c00125620457f490a7/pyproject.toml#L3