-
Notifications
You must be signed in to change notification settings - Fork 29
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
Can we remember and encode the python-version flag #75
Comments
PEP 496 -- Environment Markers definitely has an example for this:
(PEP 496 is not all about python versions but also about other stuff such as So if the The PEP 496 lingo is that of Another option that @mythmon mentioned is to use comments. E.g. comments specifically from
So if the user used (Note, the default algorithm is |
Here's an example that Pyup uses Note that that example has a comment inside the special Pyup comment. Smart feature to have. |
Imagine...
Day 1
A developer creates the project and knows with confidence that this project is only going to use Python 3.6. So he installs the latest
psycopg2
when creating the project:the output from that
cat
is as follows:Cool. It only has binary wheels for CPython 3.6 and it includes Windows wheels if another developer wants to join and dev on her Windows computer.
Day 2
Apparently there's a new version out! Let's upgrade to that. This time, another entity attempts to upgrade the version and the
requirements.txt
. (I say "entity" because it could be a human or some sort of bot that useshashin
). They run:The output of that
cat
is:Now we get all those wheels for all other versions of Python. Gross!
Can we avoid that and "continue" to stick to CPython 3.6 like the original developer did?
The text was updated successfully, but these errors were encountered: