-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Change --min-py-version
behavior & always set python_requires
#179
base: main
Are you sure you want to change the base?
Conversation
sorry it's been a while -- haven't gotten around to this. at the very least we'll need to keep the old option and have it be an alias to the new option (perhaps with a warning?) |
Perhaps we split this into multiple releases Release 1: Add a |
I think simpler would be to just remove the py2 code and make |
OK, so in cases where |
yep! intentionally removing any support for python 2.x packages |
OK. Same for tox.ini envlist & classifiers too? |
yep yep |
Dropping py2 support and enforcing that |
--min-py3-version
behavior--min-py-version
behavior
0ba5e64
to
9bf3653
Compare
--min-py-version
behavior--min-py-version
behavior & always set python_requires
'classifiers =\n' | ||
' Programming Language :: Python :: 3\n' | ||
' Programming Language :: Python :: 3 :: Only\n' | ||
' Programming Language :: Python :: 3.7\n' | ||
' Programming Language :: Python :: 3.8\n' | ||
' Programming Language :: Python :: 3.9\n' | ||
' Programming Language :: Python :: 3.10\n' | ||
' Programming Language :: Python :: 3.11\n' | ||
' Programming Language :: Python :: Implementation :: CPython\n' | ||
'\n' | ||
'[options]\n' | ||
'python_requires = >=3.10\n' | ||
'python_requires = >=3.7\n' | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one is not quite right -- I think the defaulting is happening too early so it's ignoring all the tox / etc. settings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah you're right the logic I have is "specify nothing: minimum is min(3.7, python_requires minimum, tox minimum, ...)" not "[...] max(3.7, [...]"
--min-py3-version
with--min-py-version
--min-py-version
as the source of truth if supplied, otherwise infer itpython_requires
Resolves #178