Skip to content

Commit f4766dc

Browse files
nayaknishantpartheagcf-owl-bot[bot]rosiezou
authored
feat: adding Python 3.10 support + updating google-vizier version (#1644)
* 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 <[email protected]> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Rosie Zou <[email protected]>
1 parent 2bc9b2b commit f4766dc

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

CONTRIBUTING.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

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

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

7373
- To run a single unit test::
7474

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

7777

7878
.. note::
@@ -224,10 +224,12 @@ We support:
224224
- `Python 3.7`_
225225
- `Python 3.8`_
226226
- `Python 3.9`_
227+
- `Python 3.10`_
227228

228229
.. _Python 3.7: https://docs.python.org/3.7/
229230
.. _Python 3.8: https://docs.python.org/3.8/
230231
.. _Python 3.9: https://docs.python.org/3.9/
232+
.. _Python 3.10: https://docs.python.org/3.10/
231233

232234

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

google/cloud/aiplatform/vizier/pyvizier/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
except ImportError:
3434
raise ImportError(
3535
"Google-vizier is not installed, and is required to use Vizier client."
36-
'Please install the SDK using "pip install google-vizier==0.0.3a"'
36+
'Please install the SDK using "pip install google-vizier==0.0.4"'
3737
)
3838

3939
from google.cloud.aiplatform.vizier.pyvizier.proto_converters import TrialConverter

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
DEFAULT_PYTHON_VERSION = "3.8"
3333

34-
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9"]
34+
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
3535
UNIT_TEST_STANDARD_DEPENDENCIES = [
3636
"mock",
3737
"asyncmock",

owlbot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
templated_files = common.py_library(
8989
cov_level=98,
9090
system_test_python_versions=["3.8"],
91-
unit_test_python_versions=["3.7", "3.8", "3.9"],
91+
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10"],
9292
unit_test_extras=["testing"],
9393
system_test_extras=["testing"],
9494
microgenerator=True,

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"portpicker==1.3.1",
6969
"googleapis-common-protos==1.56.0",
7070
"google-api-python-client==1.12.8",
71-
"google-vizier==0.0.3a",
71+
"google-vizier==0.0.4",
7272
]
7373

7474
prediction_extra_require = [
@@ -161,6 +161,7 @@
161161
"Programming Language :: Python :: 3.7",
162162
"Programming Language :: Python :: 3.8",
163163
"Programming Language :: Python :: 3.9",
164+
"Programming Language :: Python :: 3.10",
164165
"Topic :: Internet",
165166
"Topic :: Software Development :: Libraries :: Python Modules",
166167
],

0 commit comments

Comments
 (0)