-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[BUG] requires-python invalid value - pyproject.toml #21335
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
Comments
@srydz-aiclearing thanks for reporting the issue did try setting the option cc @4c0n |
Ah right I guess Poetry is ok with that syntax, but other tools may not be. I guess we could change "^3.9" to ">3.8", which does not mean the same, but won't be a problem until Python 4.0. Or go for ">3.8,<4". Which constraint would you prefer? Also, yes for now you could use the "poetry1" fallback or the previous version of the generator as a workaround. |
We experienced the same issue with the caret (^) notation within an
We applied a quick/dirty patch in Dockerfile to replace '^' with '>=':
We also encountered a closely related issue with project license name, also attributed to setuptools ≥ 80, which is now validating every PEP-621 field:
Again, temporarily patched in Dockerfile with
|
@adsmith144 The license name is taken from the openapi spec, that is where the problem lies. So if the openapi spec provides a valid SPDX identifier, all is well, if it isn't you might see a validation error, not sure what we could do to resolve that situation on the generator's end. |
I made a PR to solve the issue with the |
Description
This commit breaks our pipelines where we are using openapitools/openapi-generator-cli:latest image to generate some artifacts and later build package (Sorry for watered-down issue details, I don't have time)
openapi-generator version
docker image latest
Error we get:
Steps to reproduce
try building package from artifacts with python>= 3.11?
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/pull/21268/files#diff-1f30eb8ed63b755ee7e2bdee645631802bee0f57d71e8650dcde554dd91a3368R46
Suggest a fix
change syntax
The text was updated successfully, but these errors were encountered: