-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(python): drop python 3.6 (#1447)
- Loading branch information
Showing
14 changed files
with
159 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
synthtool/gcp/templates/python_library/.kokoro/samples/python3.6/common.cfg
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
synthtool/gcp/templates/python_library/.kokoro/samples/python3.6/continuous.cfg
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
synthtool/gcp/templates/python_library/.kokoro/samples/python3.6/periodic-head.cfg
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
synthtool/gcp/templates/python_library/.kokoro/samples/python3.6/periodic.cfg
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
synthtool/gcp/templates/python_library/.kokoro/samples/python3.6/presubmit.cfg
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
Python Client for {{ metadata['repo']['name_pretty'] }} API | ||
======================{% for i in range(metadata['repo']['name_pretty']|length) %}={% endfor %} | ||
|
||
|{{ metadata['repo']['release_level'] }}| |pypi| |versions| | ||
|
||
`{{ metadata['repo']['name_pretty'] }} API`_: {% if metadata['repo']['api_description'] %}{{metadata['repo']['api_description'] }}{% endif %} | ||
|
||
- `Client Library Documentation`_ | ||
- `Product Documentation`_ | ||
|
||
.. |{{ metadata['repo']['release_level'] }}| image:: https://img.shields.io/badge/support-{{ metadata['repo']['release_level'] }}-{% if metadata['repo']['release_level'] == 'stable' %}gold{% else %}orange{% endif %}.svg | ||
:target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels | ||
.. |pypi| image:: https://img.shields.io/pypi/v/{{ metadata['repo']['distribution_name'] }}.svg | ||
:target: https://pypi.org/project/{{ metadata['repo']['distribution_name'] }}/ | ||
.. |versions| image:: https://img.shields.io/pypi/pyversions/{{ metadata['repo']['distribution_name'] }}.svg | ||
:target: https://pypi.org/project/{{ metadata['repo']['distribution_name'] }}/ | ||
.. _{{ metadata['repo']['name_pretty'] }} API: {{ metadata['repo']['product_documentation'] }} | ||
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/{{ metadata['repo']['api_shortname'] }}/latest | ||
.. _Product Documentation: {{ metadata['repo']['product_documentation'] }} | ||
|
||
Quick Start | ||
----------- | ||
|
||
In order to use this library, you first need to go through the following steps: | ||
|
||
1. `Select or create a Cloud Platform project.`_ | ||
2. `Enable billing for your project.`_ | ||
3. `Enable the {{ metadata['repo']['name_pretty'] }} API.`_ | ||
4. `Setup Authentication.`_ | ||
|
||
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project | ||
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project | ||
.. _Enable the {{ metadata['repo']['name_pretty'] }} API.: {{ metadata['repo']['product_documentation'] }} | ||
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html | ||
|
||
Installation | ||
~~~~~~~~~~~~ | ||
|
||
Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to | ||
create isolated Python environments. The basic problem it addresses is one of | ||
dependencies and versions, and indirectly permissions. | ||
|
||
With `virtualenv`_, it's possible to install this library without needing system | ||
install permissions, and without clashing with the installed system | ||
dependencies. | ||
|
||
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ | ||
|
||
|
||
Code samples and snippets | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Code samples and snippets live in the `samples/` folder. | ||
|
||
|
||
Supported Python Versions | ||
^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Our client libraries are compatible with all current [active](https://devguide.python.org/devcycle/#in-development-main-branch) and [maintenance](https://devguide.python.org/devcycle/#maintenance-branches) versions of | ||
Python. | ||
|
||
Python >= 3.7 | ||
|
||
Unsupported Python Versions | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Python <= 3.6 | ||
|
||
If you are using an [end-of-life](https://devguide.python.org/devcycle/#end-of-life-branches) | ||
version of Python, we recommend that you update as soon as possible to an actively supported version. | ||
|
||
|
||
Mac/Linux | ||
^^^^^^^^^ | ||
|
||
.. code-block:: console | ||
pip install virtualenv | ||
virtualenv <your-env> | ||
source <your-env>/bin/activate | ||
<your-env>/bin/pip install {{ metadata['repo']['distribution_name'] }} | ||
Windows | ||
^^^^^^^ | ||
|
||
.. code-block:: console | ||
pip install virtualenv | ||
virtualenv <your-env> | ||
<your-env>\Scripts\activate | ||
<your-env>\Scripts\pip.exe install {{ metadata['repo']['distribution_name'] }} | ||
Next Steps | ||
~~~~~~~~~~ | ||
|
||
- Read the `Client Library Documentation`_ for {{ metadata['repo']['name_pretty'] }} API | ||
to see other available methods on the client. | ||
- Read the `{{ metadata['repo']['name_pretty'] }} API Product documentation`_ to learn | ||
more about the product and see How-to Guides. | ||
- View this `README`_ to see the full list of Cloud | ||
APIs that we cover. | ||
|
||
.. _{{ metadata['repo']['name_pretty'] }} API Product documentation: {{ metadata['repo']['product_documentation'] }} | ||
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ool/gcp/templates/python_notebooks_testing_pipeline/.cloud-build/cleanup/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
google-cloud-aiplatform==1.15.0 | ||
google-cloud-aiplatform==1.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters