-
-
Notifications
You must be signed in to change notification settings - Fork 339
Make invalid version info in pyproject.toml
less fatal
#2417
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
Conversation
According the spec: https://packaging.python.org/en/latest/specifications/pyproject-toml/#dynamic
the current behavior is spec compliant, change it to warn only may seem to resolve the error, it can resurface when user try to install a package from sdist (because wheel isn't avaiable for some reason), for eample when using |
…toml` (#2418) This PR implements the changes discussed in #2416 (comment) on top of #2417. Got this done faster than expected this morning, but won't have any time to incorporate feedback for the next ~ two days. Feel free to pull this in and butcher it any way you like. :) Thanks again for your fantastic work on maturin! 🍰 --------- Co-authored-by: messense <messense@icloud.com>
According to the schema of `pyproject.toml` [1] `project.version` must be specified or marked as dynamic. Maturin has started to nag (making "develop" fail) [2][3][4] if it's not the case. Since maturin gets the version from Cargo.toml anyway, mark it as dynamic. [1] https://json.schemastore.org/pyproject.json [2] PyO3/maturin#2417 [3] PyO3/maturin#2416 [4] PyO3/maturin#2418 Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
According to the schema of `pyproject.toml` [1] `project.version` must be specified or marked as dynamic. Maturin has started to nag [2][3][4] if it's not the case, making "maturin develop" executions fail. Since maturin gets the version from Cargo.toml anyway, mark it as dynamic. [1] https://json.schemastore.org/pyproject.json [2] PyO3/maturin#2417 [3] PyO3/maturin#2416 [4] PyO3/maturin#2418 Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
According to the schema of `pyproject.toml` [1] `project.version` must be specified or marked as dynamic. Maturin has started to nag [2][3][4] if it's not the case, making "maturin develop" executions fail. Since maturin gets the version from Cargo.toml anyway, mark it as dynamic. [1] https://json.schemastore.org/pyproject.json [2] PyO3/maturin#2417 [3] PyO3/maturin#2416 [4] PyO3/maturin#2418 Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
This PR is a simple fix #2416 by making invalid version information in
pyproject.toml
less fatal.Thank you for your great work on Maturin! 🍰