Skip to content

Commit 68e84e9

Browse files
sasha-gitgcopybara-github
authored andcommitted
chore: Unbreak release-please.
PiperOrigin-RevId: 553233524
1 parent 2ce1330 commit 68e84e9

File tree

6 files changed

+23
-26
lines changed

6 files changed

+23
-26
lines changed

.github/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
releaseType: python
22
handleGHRelease: true
3+
manifest: true
34
# NOTE: this section is generated by synthtool.languages.python
45
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
56
branches:

CONTRIBUTING.rst

Lines changed: 5 additions & 5 deletions
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.8, 3.9, 3.10 and 3.11 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.11 -- -k <name of test>
75+
$ nox -s unit-3.10 -- -k <name of test>
7676

7777

7878
.. note::
@@ -221,23 +221,23 @@ Supported Python Versions
221221

222222
We support:
223223

224+
- `Python 3.7`_
224225
- `Python 3.8`_
225226
- `Python 3.9`_
226227
- `Python 3.10`_
227-
- `Python 3.11`_
228228

229+
.. _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/
231232
.. _Python 3.10: https://docs.python.org/3.10/
232-
.. _Python 3.11: https://docs.python.org/3.11/
233233

234234

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

237237
.. _config: https://github.com/googleapis/python-aiplatform/blob/main/noxfile.py
238238

239239

240-
We also explicitly decided to support Python 3 beginning with version 3.8.
240+
We also explicitly decided to support Python 3 beginning with version 3.7.
241241
Reasons for this include:
242242

243243
- Encouraging use of newest versions of Python 3

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
DEFAULT_PYTHON_VERSION = "3.8"
3434

35-
UNIT_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11"]
35+
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
3636
UNIT_TEST_STANDARD_DEPENDENCIES = [
3737
"mock",
3838
"asyncmock",

owlbot.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@
8888
# only run post processor when there are changes to the generated code
8989
if has_generator_updates:
9090

91-
# ----------------------------------------------------------------------------
92-
# Add templated files
93-
# ----------------------------------------------------------------------------
91+
# ----------------------------------------------------------------------------
92+
# Add templated files
93+
# ----------------------------------------------------------------------------
9494

9595
templated_files = common.py_library(
9696
cov_level=98,
9797
system_test_python_versions=["3.8"],
98-
unit_test_python_versions=["3.8", "3.9", "3.10", "3.11"],
98+
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10"],
9999
unit_test_extras=["testing"],
100100
system_test_extras=["testing"],
101101
microgenerator=True,
@@ -118,25 +118,25 @@
118118
".github/PULL_REQUEST_TEMPLATE.md",
119119
".github/workflows", # exclude gh actions as credentials are needed for tests
120120
"README.rst",
121+
".github/release-please.yml", # use release please manifest
121122
],
122123
) # the microgenerator has a good coveragerc file
123124

124-
# commenting out this line to omit method deletion
125-
# python.py_samples(skip_readmes=True)
125+
python.py_samples(skip_readmes=True)
126126

127127
python.configure_previous_major_version_branches()
128128

129129
# Update samples config to use `ucaip-sample-tests` project
130130
s.replace(
131131
".kokoro/samples/python3.*/common.cfg",
132132
"""env_vars: \{
133-
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
134-
value: "python-docs-samples-tests-.*?"
135-
\}""",
133+
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
134+
value: "python-docs-samples-tests-.*?"
135+
\}""",
136136
"""env_vars: {
137-
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
138-
value: "ucaip-sample-tests"
139-
}""",
137+
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
138+
value: "ucaip-sample-tests"
139+
}""",
140140
)
141141

142142
s.replace(
@@ -158,4 +158,4 @@
158158
"\"alabaster\",\n \"google-cloud-aiplatform[prediction]\"",
159159
)
160160

161-
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
161+
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,14 @@
5959
"pyarrow >= 6.0.1",
6060
]
6161
pipelines_extra_require = [
62-
"pyyaml==5.3.1",
62+
"pyyaml>=5.3,<7",
6363
]
6464
datasets_extra_require = [
65-
"pyarrow >= 3.0.0, < 8.0dev; python_version<'3.11'",
66-
"pyarrow >= 10.0.1; python_version>='3.11'",
65+
"pyarrow >= 3.0.0, < 8.0dev",
6766
]
6867

6968
vizier_extra_require = [
70-
"google-vizier==0.0.4; python_version<'3.11'",
71-
"google-vizier>=0.1.6; python_version>='3.11'",
69+
"google-vizier==0.0.4",
7270
]
7371

7472
prediction_extra_require = [
@@ -172,7 +170,6 @@
172170
"Programming Language :: Python :: 3.8",
173171
"Programming Language :: Python :: 3.9",
174172
"Programming Language :: Python :: 3.10",
175-
"Programming Language :: Python :: 3.11",
176173
"Topic :: Internet",
177174
"Topic :: Software Development :: Libraries :: Python Modules",
178175
],

tests/unit/aiplatform/test_explain_saved_model_metadata_builder_tf2_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def call(self, inputs):
116116
}
117117
assert expected_md == generated_md
118118

119-
@pytest.mark.skip(reason="Failing for Python 3.11, tracked in b/293506827.")
120119
def test_non_keras_model(self):
121120
class CustomModuleWithOutputName(tf.Module):
122121
def __init__(self):

0 commit comments

Comments
 (0)