-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry 2.0 compatibility #201
Comments
@dalito how did you declare the version? |
Hi! The plugin does support PEP-621 (at least based on a pre-release version of Poetry - I'll re-test with 2.0), but your pyproject.toml must:
|
There is a more general incompatibility issue:
Hardcoding 1.x version solves the issue:
|
I added poetry-dynamic-versioning to poetry 2.0.0 by injecting it with pipx. First, I still had a
My pyproject.toml is here: https://github.com/nfdi4cat/pid4cat-model/pull/36/files - @mtkennerly I think it matches the points you listed above. |
If I add a version under
It still a bit confusing. Which config would work without warning? |
Thanks for bringing that up. The master branch already uses
Looks like this changed since the beta versions of 2.0. I'll need to update the plugin to account for this logic 👍 |
This should be fixed now in 1.5.0: https://github.com/mtkennerly/poetry-dynamic-versioning/releases/tag/v1.5.0 I also added a section at the bottom of the README about the conditions for the plugin to use PEP 621 mode. Please let me know if you still run into any issues. |
Today poetry 2.0 came out and it seems that your plugin does not yet work with PEP-621
pyproject.toml
where for example the project name is in the[project]
section.I get an unbound local error with poetry-dynamic-versioning version 1.4.1:
The text was updated successfully, but these errors were encountered: