Skip to content

Commit fe60c74

Browse files
authored
Deprecate support for Python 3.6 (googleads#461)
1 parent d77073f commit fe60c74

5 files changed

Lines changed: 9 additions & 29 deletions

File tree

google/ads/googleads/v6/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import sys
2121

2222

23-
if sys.version_info < (3, 6):
24-
raise ImportError("This module requires Python 3.6 or later.")
23+
if sys.version_info < (3, 7):
24+
raise ImportError("This module requires Python 3.7 or later.")
2525

2626

2727
_lazy_type_to_package_map = {
@@ -1586,9 +1586,3 @@ def __getattr__(name): # Requires Python >= 3.7
15861586

15871587
def __dir__():
15881588
return globals().get("__all__") or __getattr__("__all__")
1589-
1590-
1591-
if not sys.version_info >= (3, 7):
1592-
from pep562 import Pep562
1593-
1594-
Pep562(__name__)

google/ads/googleads/v7/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import sys
1818

1919

20-
if sys.version_info < (3, 6):
21-
raise ImportError("This module requires Python 3.6 or later.")
20+
if sys.version_info < (3, 7):
21+
raise ImportError("This module requires Python 3.7 or later.")
2222

2323

2424
_lazy_type_to_package_map = {
@@ -1656,9 +1656,3 @@ def __getattr__(name): # Requires Python >= 3.7
16561656

16571657
def __dir__():
16581658
return globals().get("__all__") or __getattr__("__all__")
1659-
1660-
1661-
if not sys.version_info >= (3, 7):
1662-
from pep562 import Pep562
1663-
1664-
Pep562(__name__)

google/ads/googleads/v8/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import sys
1818

1919

20-
if sys.version_info < (3, 6):
21-
raise ImportError("This module requires Python 3.6 or later.")
20+
if sys.version_info < (3, 7):
21+
raise ImportError("This module requires Python 3.7 or later.")
2222

2323

2424
_lazy_type_to_package_map = {
@@ -1703,9 +1703,3 @@ def __getattr__(name): # Requires Python >= 3.7
17031703

17041704
def __dir__():
17051705
return globals().get("__all__") or __getattr__("__all__")
1706-
1707-
1708-
if not sys.version_info >= (3, 7):
1709-
from pep562 import Pep562
1710-
1711-
Pep562(__name__)

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import nox
22

33

4-
@nox.session(python=["3.6", "3.7"])
4+
@nox.session(python=["3.7"])
55
def tests(session):
66
session.install(".")
77
# modules for testing

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@
1717
import io
1818

1919
install_requires = [
20-
"dataclasses >= 0.6, < 1.0.0; python_version < '3.7'",
2120
"google-auth-oauthlib >= 0.3.0, < 1.0.0",
2221
"google-api-core >= 1.21.0, < 2.0.0",
2322
"googleapis-common-protos >= 1.5.8, < 2.0.0",
2423
"grpcio >= 1.33.2, < 2.0.0",
2524
"proto-plus >= 1.18.0, < 2.0.0",
2625
"PyYAML >= 5.1, < 6.0",
2726
"setuptools >= 40.3.0",
28-
"pep562 >= 1.0, < 2.0",
2927
"nox == 2020.12.31",
3028
]
3129

@@ -45,11 +43,11 @@
4543
"License :: OSI Approved :: Apache Software License",
4644
"Programming Language :: Python",
4745
"Programming Language :: Python :: 3",
48-
"Programming Language :: Python :: 3.6",
46+
"Programming Language :: Python :: 3.7",
4947
],
5048
description="Client library for the Google Ads API",
5149
include_package_data=True,
52-
python_requires=">=3.6",
50+
python_requires=">=3.7",
5351
long_description=long_description,
5452
install_requires=install_requires,
5553
license="Apache 2.0",

0 commit comments

Comments
 (0)