Closed niniack closed 9 months ago
Is it expected for the plugin not to perform substitution when running poetry build?
The plugin will modify them, but only temporarily, so that the modified versions are included in the sdist and wheel artifacts. After the build artifacts are produced, the plugin reverts the files in the repository.
If you'd like to leave the changes in place, then you can run the poetry dynamic-versioning
command.
Thanks for the quick response! Good to know
Description:
I am encountering an unexpected behavior when using poetry build in conjunction with the poetry-dynamic-versioning plugin. While the build process correctly outputs the project with the version based on my git tag, it does not update the version in the specified files (pyproject.toml, *_version.py), leaving them at the placeholder "0.0.0".
Steps to Reproduce:
Expected Behavior:
The specified files should have their version placeholders substituted with the correct version from the git tag.
Actual Behavior:
The version in the specified files remains at the placeholder "0.0.0".
Additional Information:
Here is my pyproject.toml file for reference:
Question:
Is it expected for the plugin not to perform substitution when running poetry build?
Environment: