Skip to content
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

removes older versions of python. #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

achapkowski
Copy link

removes earlier versions of python. Drops support for Python 2.7 and Python <3.7

@achapkowski
Copy link
Author

@pquentin I went ahead and dropped older versions of Python and fixed the tests.

Copy link
Contributor

@pquentin pquentin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you please:

  • Remove the Python 2 related code in requests/_compat.py?
  • Grep for Python 2 and sys.version_info and see what can be removed?
  • Run the test suite with Python 2 and Python 3 with coverage to see if you have missed anything? (We could even work on having a coverage check in GitHub first: https://hynek.me/articles/ditch-codecov-python/)

@achapkowski
Copy link
Author

@pquentin I'll wait till your PR you are working on is finished so we don't get merge conflicts.

install_requires=['requests>=2.0.1,<3.0.0'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can stay, and can also add:

'Programming Language :: Python :: 3 :: Only'

@@ -52,20 +52,17 @@ def get_version():
packages=packages,
package_data={'': ['LICENSE', 'AUTHORS.rst']},
include_package_data=True,
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
python_requires='>=3.7, <3.11',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't add an upper limit:

Suggested change
python_requires='>=3.7, <3.11',
python_requires='>=3.7',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants