fix!: drop support for Python 2.7 (#778)
Drop use of 'six' wrapper library.
Drop 'u"' prefixes.
Drop support for app_engine 'classic' mode (Python 2.7-only).
Release-As: 2.0.0b1
Closes #777.
diff --git a/setup.py b/setup.py
index a9bfc97..54a2c90 100644
--- a/setup.py
+++ b/setup.py
@@ -20,23 +20,16 @@
DEPENDENCIES = (
- "cachetools>=2.0.0,<5.0",
- "pyasn1-modules>=0.2.1",
- # rsa==4.5 is the last version to support 2.7
- # https://github.com/sybrenstuvel/python-rsa/issues/152#issuecomment-643470233
- 'rsa<4.6; python_version < "3.6"',
- 'rsa>=3.1.4,<5; python_version >= "3.6"',
- "setuptools>=40.3.0",
- "six>=1.9.0",
+ "cachetools >= 2.0.0, < 5.0",
+ "pyasn1-modules >= 0.2.1",
+ "rsa >= 3.1.4, < 5",
+ "setuptools >= 40.3.0",
)
extras = {
- "aiohttp": [
- "aiohttp >= 3.6.2, < 4.0.0dev; python_version>='3.6'",
- "requests >= 2.20.0, < 3.0.0dev",
- ],
- "pyopenssl": "pyopenssl>=20.0.0",
- "reauth": "pyu2f>=0.1.5",
+ "aiohttp": ["aiohttp >= 3.6.2, < 4.0.0dev", "requests >= 2.20.0, < 3.0.0dev"],
+ "pyopenssl": "pyopenssl >= 20.0.0",
+ "reauth": "pyu2f >= 0.1.5",
}
with io.open("README.rst", "r") as fh:
@@ -61,12 +54,10 @@
namespace_packages=("google",),
install_requires=DEPENDENCIES,
extras_require=extras,
- python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*",
+ python_requires=">= 3.6",
license="Apache 2.0",
keywords="google auth oauth client",
classifiers=[
- "Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",