Skip to content

Commit

Permalink
feat: adding Python 3.10 support + updating google-vizier version (#1644
Browse files Browse the repository at this point in the history
)

* feat: adding Python 3.10 support

* adding related files for 3.10 support

* 3.9 => 3.10 edit

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* adding pytype dependency

* changing google-vizier from 0.0.3a to 0.0.4

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Rosie Zou <rosiezou@users.noreply.github.com>
  • Loading branch information
4 people committed Sep 12, 2022
1 parent 2bc9b2b commit f4766dc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In order to add a feature:
documentation.

- The feature must work fully on the following CPython versions:
3.7, 3.8 and 3.9 on both UNIX and Windows.
3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows.

- The feature must not add unnecessary dependencies (where
"unnecessary" is of course subjective, but new dependencies should
Expand Down Expand Up @@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.

- To run a single unit test::

$ nox -s unit-3.9 -- -k <name of test>
$ nox -s unit-3.10 -- -k <name of test>


.. note::
Expand Down Expand Up @@ -224,10 +224,12 @@ We support:
- `Python 3.7`_
- `Python 3.8`_
- `Python 3.9`_
- `Python 3.10`_

.. _Python 3.7: https://docs.python.org/3.7/
.. _Python 3.8: https://docs.python.org/3.8/
.. _Python 3.9: https://docs.python.org/3.9/
.. _Python 3.10: https://docs.python.org/3.10/


Supported versions can be found in our ``noxfile.py`` `config`_.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/vizier/pyvizier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
except ImportError:
raise ImportError(
"Google-vizier is not installed, and is required to use Vizier client."
'Please install the SDK using "pip install google-vizier==0.0.3a"'
'Please install the SDK using "pip install google-vizier==0.0.4"'
)

from google.cloud.aiplatform.vizier.pyvizier.proto_converters import TrialConverter
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

DEFAULT_PYTHON_VERSION = "3.8"

UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9"]
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
UNIT_TEST_STANDARD_DEPENDENCIES = [
"mock",
"asyncmock",
Expand Down
2 changes: 1 addition & 1 deletion owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
templated_files = common.py_library(
cov_level=98,
system_test_python_versions=["3.8"],
unit_test_python_versions=["3.7", "3.8", "3.9"],
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10"],
unit_test_extras=["testing"],
system_test_extras=["testing"],
microgenerator=True,
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"portpicker==1.3.1",
"googleapis-common-protos==1.56.0",
"google-api-python-client==1.12.8",
"google-vizier==0.0.3a",
"google-vizier==0.0.4",
]

prediction_extra_require = [
Expand Down Expand Up @@ -161,6 +161,7 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down

0 comments on commit f4766dc

Please sign in to comment.