Skip to content

Commit 9cb9f63

Browse files
authored
Document Python 2 deprecation (#6910)
1 parent dfb3458 commit 9cb9f63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+406
-5
lines changed

CONTRIBUTING.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,19 +286,18 @@ Supported Python Versions
286286

287287
We support:
288288

289-
- `Python 2.7`_
290289
- `Python 3.4`_
291290
- `Python 3.5`_
292291
- `Python 3.6`_
293292

294-
.. _Python 2.7: https://docs.python.org/2.7/
295293
.. _Python 3.4: https://docs.python.org/3.4/
296294
.. _Python 3.5: https://docs.python.org/3.5/
297295
.. _Python 3.6: https://docs.python.org/3.6/
298296

299-
Supported versions can be found in our ``nox.py`` `config`_.
300297

301-
.. _config: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/nox.py
298+
Supported versions can be found in our ``noxfile.py`` `config`_.
299+
300+
.. _config: https://github.com/googleapis/google-cloud-python/blob/master/noxfile.py
302301

303302
We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_
304303
and lack of continuous integration `support`_.
@@ -310,6 +309,8 @@ and lack of continuous integration `support`_.
310309
We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no
311310
longer supported by the core development team.
312311

312+
Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020.
313+
313314
We also explicitly decided to support Python 3 beginning with version
314315
3.4. Reasons for this include:
315316

@@ -321,7 +322,7 @@ We also explicitly decided to support Python 3 beginning with version
321322
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
322323
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
323324
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
324-
.. _dropped 2.6: https://github.com/GoogleCloudPlatform/google-cloud-python/issues/995
325+
.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995
325326

326327
**********
327328
Versioning

api_core/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ common helpers used by all Google API clients. For more information, see the
1212
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-api_core.svg
1313
:target: https://pypi.org/project/google-api_core/
1414
.. _documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/core/
15+
16+
17+
Supported Python Versions
18+
-------------------------
19+
Python >= 3.4
20+
21+
Deprecated Python Versions
22+
--------------------------
23+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.

api_core/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
namespace_packages=namespaces,
9494
install_requires=dependencies,
9595
extras_require=extras,
96+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
9697
include_package_data=True,
9798
zip_safe=False,
9899
)

asset/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ dependencies.
4747
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
4848

4949

50+
Supported Python Versions
51+
^^^^^^^^^^^^^^^^^^^^^^^^^
52+
Python >= 3.4
53+
54+
Deprecated Python Versions
55+
^^^^^^^^^^^^^^^^^^^^^^^^^^
56+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
57+
58+
5059
Mac/Linux
5160
^^^^^^^^^
5261

asset/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
packages=packages,
8181
namespace_packages=namespaces,
8282
install_requires=dependencies,
83+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
8384
include_package_data=True,
8485
zip_safe=False,
8586
)

automl/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ dependencies.
5050
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
5151

5252

53+
Supported Python Versions
54+
^^^^^^^^^^^^^^^^^^^^^^^^^
55+
Python >= 3.4
56+
57+
Deprecated Python Versions
58+
^^^^^^^^^^^^^^^^^^^^^^^^^^
59+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
60+
61+
5362
Mac/Linux
5463
^^^^^^^^^
5564

automl/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,15 @@
6161
'Programming Language :: Python :: 3.4',
6262
'Programming Language :: Python :: 3.5',
6363
'Programming Language :: Python :: 3.6',
64+
'Programming Language :: Python :: 3.7',
6465
'Operating System :: OS Independent',
6566
'Topic :: Internet',
6667
],
6768
platforms='Posix; MacOS X; Windows',
6869
packages=packages,
6970
namespace_packages=namespaces,
7071
install_requires=dependencies,
72+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
7173
include_package_data=True,
7274
zip_safe=False,
7375
)

bigquery/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ dependencies.
5050
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
5151

5252

53+
Supported Python Versions
54+
^^^^^^^^^^^^^^^^^^^^^^^^^
55+
Python >= 3.4
56+
57+
Deprecated Python Versions
58+
^^^^^^^^^^^^^^^^^^^^^^^^^^
59+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
60+
61+
5362
Mac/Linux
5463
^^^^^^^^^
5564

bigquery/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
namespace_packages=namespaces,
9191
install_requires=dependencies,
9292
extras_require=extras,
93+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
9394
include_package_data=True,
9495
zip_safe=False,
9596
)

bigquery_datatransfer/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ dependencies.
4646
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
4747

4848

49+
Supported Python Versions
50+
^^^^^^^^^^^^^^^^^^^^^^^^^
51+
Python >= 3.4
52+
53+
Deprecated Python Versions
54+
^^^^^^^^^^^^^^^^^^^^^^^^^^
55+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
56+
57+
4958
Mac/Linux
5059
^^^^^^^^^
5160

bigquery_datatransfer/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
'Programming Language :: Python :: 3.4',
7676
'Programming Language :: Python :: 3.5',
7777
'Programming Language :: Python :: 3.6',
78+
'Programming Language :: Python :: 3.7',
7879
'Operating System :: OS Independent',
7980
'Topic :: Internet',
8081
],
@@ -83,6 +84,7 @@
8384
namespace_packages=namespaces,
8485
install_requires=dependencies,
8586
extras_require=extras,
87+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
8688
include_package_data=True,
8789
zip_safe=False,
8890
)

bigquery_storage/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ dependencies.
4040
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
4141

4242

43+
Supported Python Versions
44+
^^^^^^^^^^^^^^^^^^^^^^^^^
45+
Python >= 3.4
46+
47+
Deprecated Python Versions
48+
^^^^^^^^^^^^^^^^^^^^^^^^^^
49+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
50+
51+
4352
Mac/Linux
4453
^^^^^^^^^
4554

bigquery_storage/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
namespace_packages=namespaces,
7676
install_requires=dependencies,
7777
extras_require=extras,
78+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
7879
include_package_data=True,
7980
zip_safe=False,
8081
)

bigtable/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ dependencies.
4949
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
5050

5151

52+
Supported Python Versions
53+
^^^^^^^^^^^^^^^^^^^^^^^^^
54+
Python >= 3.4
55+
56+
Deprecated Python Versions
57+
^^^^^^^^^^^^^^^^^^^^^^^^^^
58+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
59+
60+
5261
Mac/Linux
5362
^^^^^^^^^
5463

bigtable/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
'Programming Language :: Python :: 3.4',
7878
'Programming Language :: Python :: 3.5',
7979
'Programming Language :: Python :: 3.6',
80+
'Programming Language :: Python :: 3.7',
8081
'Operating System :: OS Independent',
8182
'Topic :: Internet',
8283
],
@@ -85,6 +86,7 @@
8586
namespace_packages=namespaces,
8687
install_requires=dependencies,
8788
extras_require=extras,
89+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
8890
include_package_data=True,
8991
zip_safe=False,
9092
)

container/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ dependencies.
4747
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
4848

4949

50+
Supported Python Versions
51+
^^^^^^^^^^^^^^^^^^^^^^^^^
52+
Python >= 3.4
53+
54+
Deprecated Python Versions
55+
^^^^^^^^^^^^^^^^^^^^^^^^^^
56+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
57+
58+
5059
Mac/Linux
5160
^^^^^^^^^
5261

container/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
'Programming Language :: Python :: 3.4',
7676
'Programming Language :: Python :: 3.5',
7777
'Programming Language :: Python :: 3.6',
78+
'Programming Language :: Python :: 3.7',
7879
'Operating System :: OS Independent',
7980
'Topic :: Internet',
8081
],
@@ -83,6 +84,7 @@
8384
namespace_packages=namespaces,
8485
install_requires=dependencies,
8586
extras_require=extras,
87+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
8688
include_package_data=True,
8789
zip_safe=False,
8890
)

core/README.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ to `Python Development Environment Setup Guide`_ for Google Cloud Platform.
2929

3030
.. _Python Development Environment Setup Guide: https://cloud.google.com/python/setup
3131

32+
33+
Supported Python Versions
34+
-------------------------
35+
Python >= 3.4
36+
37+
Deprecated Python Versions
38+
--------------------------
39+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.

core/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"Programming Language :: Python :: 3.4",
7373
"Programming Language :: Python :: 3.5",
7474
"Programming Language :: Python :: 3.6",
75+
'Programming Language :: Python :: 3.7',
7576
"Operating System :: OS Independent",
7677
"Topic :: Internet",
7778
],
@@ -80,6 +81,7 @@
8081
namespace_packages=namespaces,
8182
install_requires=dependencies,
8283
extras_require=extras,
84+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
8385
include_package_data=True,
8486
zip_safe=False,
8587
)

dataproc/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ dependencies.
4747
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
4848

4949

50+
Supported Python Versions
51+
^^^^^^^^^^^^^^^^^^^^^^^^^
52+
Python >= 3.4
53+
54+
Deprecated Python Versions
55+
^^^^^^^^^^^^^^^^^^^^^^^^^^
56+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
57+
58+
5059
Mac/Linux
5160
^^^^^^^^^
5261

dataproc/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
'Programming Language :: Python :: 3.4',
7676
'Programming Language :: Python :: 3.5',
7777
'Programming Language :: Python :: 3.6',
78+
'Programming Language :: Python :: 3.7',
7879
'Operating System :: OS Independent',
7980
'Topic :: Internet',
8081
],
@@ -83,6 +84,7 @@
8384
namespace_packages=namespaces,
8485
install_requires=dependencies,
8586
extras_require=extras,
87+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
8688
include_package_data=True,
8789
zip_safe=False,
8890
)

datastore/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ dependencies.
5151
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
5252

5353

54+
Supported Python Versions
55+
^^^^^^^^^^^^^^^^^^^^^^^^^
56+
Python >= 3.4
57+
58+
Deprecated Python Versions
59+
^^^^^^^^^^^^^^^^^^^^^^^^^^
60+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
61+
62+
5463
Mac/Linux
5564
^^^^^^^^^
5665

datastore/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
'Programming Language :: Python :: 3.4',
7777
'Programming Language :: Python :: 3.5',
7878
'Programming Language :: Python :: 3.6',
79+
'Programming Language :: Python :: 3.7',
7980
'Operating System :: OS Independent',
8081
'Topic :: Internet',
8182
],
@@ -84,6 +85,7 @@
8485
namespace_packages=namespaces,
8586
install_requires=dependencies,
8687
extras_require=extras,
88+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
8789
include_package_data=True,
8890
zip_safe=False,
8991
)

dlp/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ dependencies.
4949
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
5050

5151

52+
Supported Python Versions
53+
^^^^^^^^^^^^^^^^^^^^^^^^^
54+
Python >= 3.4
55+
56+
Deprecated Python Versions
57+
^^^^^^^^^^^^^^^^^^^^^^^^^^
58+
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
59+
60+
5261
Mac/Linux
5362
^^^^^^^^^
5463

dlp/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@
6363
'Programming Language :: Python :: 3.4',
6464
'Programming Language :: Python :: 3.5',
6565
'Programming Language :: Python :: 3.6',
66+
'Programming Language :: Python :: 3.7',
6667
'Operating System :: OS Independent',
6768
'Topic :: Internet',
6869
],
6970
platforms='Posix; MacOS X; Windows',
7071
packages=packages,
7172
namespace_packages=namespaces,
7273
install_requires=dependencies,
74+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
7375
include_package_data=True,
7476
zip_safe=False,
7577
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy