GeezerVison is showing github.com — chore: Unbreak release-please. · jscheffl/python-aiplatform@68e84e9
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/release-please.yml +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | releaseType: python | 2 | 2 | handleGHRelease: true | | 3 | +manifest: true | 3 | 4 | # NOTE: this section is generated by synthtool.languages.python | 4 | 5 | # See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py | 5 | 6 | branches: | |
Collapse file Copy file name to clipboardExpand all lines: CONTRIBUTING.rst +5-5Lines changed: 5 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ In order to add a feature: | 22 | 22 | documentation. | 23 | 23 |
| 24 | 24 | - 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. | 26 | 26 |
| 27 | 27 | - The feature must not add unnecessary dependencies (where | 28 | 28 | "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. | 72 | 72 |
| 73 | 73 | - To run a single unit test:: | 74 | 74 |
| 75 | | - $ nox -s unit-3.11 -- -k <name of test> | | 75 | + $ nox -s unit-3.10 -- -k <name of test> | 76 | 76 |
| 77 | 77 |
| 78 | 78 | .. note:: | @@ -221,23 +221,23 @@ Supported Python Versions | 221 | 221 |
| 222 | 222 | We support: | 223 | 223 |
| | 224 | +- `Python 3.7`_ | 224 | 225 | - `Python 3.8`_ | 225 | 226 | - `Python 3.9`_ | 226 | 227 | - `Python 3.10`_ | 227 | | -- `Python 3.11`_ | 228 | 228 |
| | 229 | +.. _Python 3.7: https://docs.python.org/3.7/ | 229 | 230 | .. _Python 3.8: https://docs.python.org/3.8/ | 230 | 231 | .. _Python 3.9: https://docs.python.org/3.9/ | 231 | 232 | .. _Python 3.10: https://docs.python.org/3.10/ | 232 | | -.. _Python 3.11: https://docs.python.org/3.11/ | 233 | 233 |
| 234 | 234 |
| 235 | 235 | Supported versions can be found in our ``noxfile.py`` `config`_. | 236 | 236 |
| 237 | 237 | .. _config: https://github.com/googleapis/python-aiplatform/blob/main/noxfile.py | 238 | 238 |
| 239 | 239 |
| 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. | 241 | 241 | Reasons for this include: | 242 | 242 |
| 243 | 243 | - Encouraging use of newest versions of Python 3 | |
Collapse file Copy file name to clipboardExpand all lines: noxfile.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 32 | 32 |
| 33 | 33 | DEFAULT_PYTHON_VERSION = "3.8" | 34 | 34 |
| 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"] | 36 | 36 | UNIT_TEST_STANDARD_DEPENDENCIES = [ | 37 | 37 | "mock", | 38 | 38 | "asyncmock", | |
Collapse file Copy file name to clipboardExpand all lines: owlbot.py +13-13Lines changed: 13 additions & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 88 | 88 | # only run post processor when there are changes to the generated code | 89 | 89 | if has_generator_updates: | 90 | 90 |
| 91 | | - # ---------------------------------------------------------------------------- | 92 | | - # Add templated files | 93 | | - # ---------------------------------------------------------------------------- | | 91 | +# ---------------------------------------------------------------------------- | | 92 | +# Add templated files | | 93 | +# ---------------------------------------------------------------------------- | 94 | 94 |
| 95 | 95 | templated_files = common.py_library( | 96 | 96 | cov_level=98, | 97 | 97 | 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"], | 99 | 99 | unit_test_extras=["testing"], | 100 | 100 | system_test_extras=["testing"], | 101 | 101 | microgenerator=True, | | 118 | 118 | ".github/PULL_REQUEST_TEMPLATE.md", | 119 | 119 | ".github/workflows", # exclude gh actions as credentials are needed for tests | 120 | 120 | "README.rst", | | 121 | + ".github/release-please.yml", # use release please manifest | 121 | 122 | ], | 122 | 123 | ) # the microgenerator has a good coveragerc file | 123 | 124 |
| 124 | | - # commenting out this line to omit method deletion | 125 | | - # python.py_samples(skip_readmes=True) | | 125 | + python.py_samples(skip_readmes=True) | 126 | 126 |
| 127 | 127 | python.configure_previous_major_version_branches() | 128 | 128 |
| 129 | 129 | # Update samples config to use `ucaip-sample-tests` project | 130 | 130 | s.replace( | 131 | 131 | ".kokoro/samples/python3.*/common.cfg", | 132 | 132 | """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 | +\}""", | 136 | 136 | """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 | +}""", | 140 | 140 | ) | 141 | 141 |
| 142 | 142 | s.replace( | | 158 | 158 | "\"alabaster\",\n \"google-cloud-aiplatform[prediction]\"", | 159 | 159 | ) | 160 | 160 |
| 161 | | - s.shell.run(["nox", "-s", "blacken"], hide_output=False) | | 161 | + s.shell.run(["nox", "-s", "blacken"], hide_output=False) |
Collapse file Copy file name to clipboardExpand all lines: setup.py +3-6Lines changed: 3 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 59 | 59 | "pyarrow >= 6.0.1", | 60 | 60 | ] | 61 | 61 | pipelines_extra_require = [ | 62 | | - "pyyaml==5.3.1", | | 62 | + "pyyaml>=5.3,<7", | 63 | 63 | ] | 64 | 64 | 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", | 67 | 66 | ] | 68 | 67 |
| 69 | 68 | 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", | 72 | 70 | ] | 73 | 71 |
| 74 | 72 | prediction_extra_require = [ | | 172 | 170 | "Programming Language :: Python :: 3.8", | 173 | 171 | "Programming Language :: Python :: 3.9", | 174 | 172 | "Programming Language :: Python :: 3.10", | 175 | | - "Programming Language :: Python :: 3.11", | 176 | 173 | "Topic :: Internet", | 177 | 174 | "Topic :: Software Development :: Libraries :: Python Modules", | 178 | 175 | ], | |
Collapse file Copy file name to clipboardExpand all lines: tests/unit/aiplatform/test_explain_saved_model_metadata_builder_tf2_test.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -116,7 +116,6 @@ def call(self, inputs): | 116 | 116 | } | 117 | 117 | assert expected_md == generated_md | 118 | 118 |
| 119 | | - @pytest.mark.skip(reason="Failing for Python 3.11, tracked in b/293506827.") | 120 | 119 | def test_non_keras_model(self): | 121 | 120 | class CustomModuleWithOutputName(tf.Module): | 122 | 121 | def __init__(self): | |
|