Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Python 2 deprecation #6910

Merged
11 changes: 6 additions & 5 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -286,19 +286,18 @@ Supported Python Versions

We support:

- `Python 2.7`_
- `Python 3.4`_
- `Python 3.5`_
- `Python 3.6`_

.. _Python 2.7: https://docs.python.org/2.7/
crwilcox marked this conversation as resolved.
Show resolved Hide resolved
.. _Python 3.4: https://docs.python.org/3.4/
.. _Python 3.5: https://docs.python.org/3.5/
.. _Python 3.6: https://docs.python.org/3.6/

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

.. _config: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/nox.py
Supported versions can be found in our ``noxfile.py`` `config`_.

.. _config: https://github.com/googleapis/google-cloud-python/blob/master/noxfile.py

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

Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020.

We also explicitly decided to support Python 3 beginning with version
3.4. Reasons for this include:

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

**********
Versioning
Expand Down
9 changes: 9 additions & 0 deletions api_core/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ common helpers used by all Google API clients. For more information, see the
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-api_core.svg
:target: https://pypi.org/project/google-api_core/
.. _documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/core/


Supported Python Versions
-------------------------
Python >= 3.4

Deprecated Python Versions
--------------------------
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
1 change: 1 addition & 0 deletions api_core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions asset/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


crwilcox marked this conversation as resolved.
Show resolved Hide resolved
Mac/Linux
^^^^^^^^^

Expand Down
1 change: 1 addition & 0 deletions asset/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
packages=packages,
namespace_packages=namespaces,
install_requires=dependencies,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions automl/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions automl/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
crwilcox marked this conversation as resolved.
Show resolved Hide resolved
'Operating System :: OS Independent',
'Topic :: Internet',
],
platforms='Posix; MacOS X; Windows',
packages=packages,
namespace_packages=namespaces,
install_requires=dependencies,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions bigquery/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
1 change: 1 addition & 0 deletions bigquery/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions bigquery_datatransfer/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions bigquery_datatransfer/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Topic :: Internet',
],
Expand All @@ -83,6 +84,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions bigquery_storage/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
1 change: 1 addition & 0 deletions bigquery_storage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions bigtable/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions bigtable/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Topic :: Internet',
],
Expand All @@ -85,6 +86,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions container/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions container/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Topic :: Internet',
],
Expand All @@ -83,6 +84,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
8 changes: 8 additions & 0 deletions core/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ to `Python Development Environment Setup Guide`_ for Google Cloud Platform.

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


Supported Python Versions
-------------------------
Python >= 3.4

Deprecated Python Versions
--------------------------
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
2 changes: 2 additions & 0 deletions core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
'Programming Language :: Python :: 3.7',
"Operating System :: OS Independent",
"Topic :: Internet",
],
Expand All @@ -80,6 +81,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions dataproc/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions dataproc/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Topic :: Internet',
],
Expand All @@ -83,6 +84,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions datastore/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions datastore/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Topic :: Internet',
],
Expand All @@ -84,6 +85,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
9 changes: 9 additions & 0 deletions dlp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ dependencies.
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.4

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.


Mac/Linux
^^^^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions dlp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,15 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Topic :: Internet',
],
crwilcox marked this conversation as resolved.
Show resolved Hide resolved
platforms='Posix; MacOS X; Windows',
packages=packages,
namespace_packages=namespaces,
install_requires=dependencies,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
include_package_data=True,
zip_safe=False,
)
Loading