Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9cb9f63

Browse filesBrowse files
authored
Document Python 2 deprecation (googleapis#6910)
1 parent dfb3458 commit 9cb9f63
Copy full SHA for 9cb9f63

76 files changed

+406-5Lines changed: 406 additions & 5 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎CONTRIBUTING.rst‎

Copy file name to clipboardExpand all lines: CONTRIBUTING.rst
+6-5Lines changed: 6 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
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
Collapse file

‎api_core/README.rst‎

Copy file name to clipboardExpand all lines: api_core/README.rst
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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.
Collapse file

‎api_core/setup.py‎

Copy file name to clipboardExpand all lines: api_core/setup.py
+1Lines 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
)
Collapse file

‎asset/README.rst‎

Copy file name to clipboardExpand all lines: asset/README.rst
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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

Collapse file

‎asset/setup.py‎

Copy file name to clipboardExpand all lines: asset/setup.py
+1Lines 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
)
Collapse file

‎automl/README.rst‎

Copy file name to clipboardExpand all lines: automl/README.rst
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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

Collapse file

‎automl/setup.py‎

Copy file name to clipboardExpand all lines: automl/setup.py
+2Lines 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
)
Collapse file

‎bigquery/README.rst‎

Copy file name to clipboardExpand all lines: bigquery/README.rst
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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

Collapse file

‎bigquery/setup.py‎

Copy file name to clipboardExpand all lines: bigquery/setup.py
+1Lines 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
)
Collapse file

‎bigquery_datatransfer/README.rst‎

Copy file name to clipboardExpand all lines: bigquery_datatransfer/README.rst
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.