-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
python_version
constraint included in exported requirements.txt
#843
Comments
Can't reproduce this locally, can you make a reproducible example? |
I could reproduce it locally now only after |
Thank you for addressing it. (See the related test adjustment, which was done in the later commit: a32505d#diff-8b2ccaf13f2efef9c101b31c9926ba110343241d971d244ef11f4450cbc37c5c) Given that removing the cache before generating the export seemed to fix it (by adding the classifier), it seemed like it would use something wrong (without the classifier) from the cache. While not exporting the classifier unifies the result, are you sure that's the way to go? |
Yup, The exported requirements.txt is no longer cross-platform and cross-python and keeping the environment markers(the correct name for "classifiers") is meaningless. Just remove them to make it look consistent, like what |
I am seeing a difference in
requirements.txt
exported on CI:This constraint (
; python_version >= "3.10"
) does not show up in prod's requirements (viapdm export -f requirements -o "requirements/prod.txt.tmp" --prod -G :all
), but typing-extensions is included there also, (at least) via django-stubs-ext:It's likely via/caused by black, which is in "checkqa" dev-dependencies:
IIRC I've seen this diff/change before locally also, and it was fixed by removing
~/.cache/pdm
then.Both locally and on CI Python 3.10.1 is used.
Using pdm 1.12.2.
The text was updated successfully, but these errors were encountered: