Skip to content

Commit 9cb9f63

Browse files
authored
Document Python 2 deprecation (googleapis#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

0 commit comments

Comments
 (0)