GeezerVison is showing github.com — feat: add services to aiplatform_v1beta1 (#367) · jcwchen/python-aiplatform@beb4032
File treeExpand file treeCollapse file tree Open diff view settings featurestore_online_serving_service
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .coveragerc +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | branch = True | 3 | 3 |
| 4 | 4 | [report] | 5 | | -fail_under = 99 | | 5 | +fail_under = 100 | 6 | 6 | show_missing = True | 7 | 7 | omit = | 8 | | - .nox/* | | 8 | + google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py | 9 | 9 | exclude_lines = | 10 | 10 | # Re-enable the standard pragma | 11 | 11 | pragma: NO COVER | @@ -15,4 +15,4 @@ exclude_lines = | 15 | 15 | # This is added at the module level as a safeguard for if someone | 16 | 16 | # generates the code and tries to run it without pip installing. This | 17 | 17 | # makes it virtually impossible to test properly. | 18 | | - except pkg_resources.DistributionNotFound | | 18 | + except pkg_resources.DistributionNotFound |
Collapse file Copy file name to clipboardExpand all lines: .github/header-checker-lint.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | {"allowedCopyrightHolders": ["Google LLC"], | 2 | 2 | "allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"], | 3 | | - "ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt"], | | 3 | + "ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/__init__.py", "samples/**/constraints.txt", "samples/**/constraints-test.txt"], | 4 | 4 | "sourceFileExtensions": [ | 5 | 5 | "ts", | 6 | 6 | "js", | |
Collapse file Copy file name to clipboardExpand all lines: .gitignore -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,6 @@ pip-log.txt | 26 | 26 |
| 27 | 27 | # Unit test / coverage reports | 28 | 28 | .coverage | 29 | | -.coverage.* | 30 | 29 | .nox | 31 | 30 | .cache | 32 | 31 | .pytest_cache | |
Collapse file Copy file name to clipboardExpand all lines: .kokoro/release.sh +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ python3 -m pip install --upgrade twine wheel setuptools | 26 | 26 | export PYTHONUNBUFFERED=1 | 27 | 27 |
| 28 | 28 | # Move into the package, build the distribution and upload. | 29 | | -TWINE_PASSWORD=$(cat "${KOKORO_KEYSTORE_DIR}/73713_google_cloud_pypi_password") | | 29 | +TWINE_PASSWORD=$(cat "${KOKORO_GFILE_DIR}/secret_manager/google-cloud-pypi-token") | 30 | 30 | cd github/python-aiplatform | 31 | 31 | python3 setup.py sdist bdist_wheel | 32 | | -twine upload --username gcloudpypi --password "${TWINE_PASSWORD}" dist/* | | 32 | +twine upload --username __token__ --password "${TWINE_PASSWORD}" dist/* |
Collapse file Copy file name to clipboardExpand all lines: .kokoro/release/common.cfg +2-12Lines changed: 2 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -23,18 +23,8 @@ env_vars: { | 23 | 23 | value: "github/python-aiplatform/.kokoro/release.sh" | 24 | 24 | } | 25 | 25 |
| 26 | | -# Fetch PyPI password | 27 | | -before_action { | 28 | | - fetch_keystore { | 29 | | - keystore_resource { | 30 | | - keystore_config_id: 73713 | 31 | | - keyname: "google_cloud_pypi_password" | 32 | | - } | 33 | | - } | 34 | | -} | 35 | | - | 36 | 26 | # Tokens needed to report release status back to GitHub | 37 | 27 | env_vars: { | 38 | 28 | key: "SECRET_MANAGER_KEYS" | 39 | | - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" | 40 | | -} | | 29 | + value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem,google-cloud-pypi-token" | | 30 | +} |
Collapse file Copy file name to clipboardExpand all lines: .pre-commit-config.yaml +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# Copyright 2021 Google LLC | | 2 | +# | | 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); | | 4 | +# you may not use this file except in compliance with the License. | | 5 | +# You may obtain a copy of the License at | | 6 | +# | | 7 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 8 | +# | | 9 | +# Unless required by applicable law or agreed to in writing, software | | 10 | +# distributed under the License is distributed on an "AS IS" BASIS, | | 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | | 12 | +# See the License for the specific language governing permissions and | | 13 | +# limitations under the License. | | 14 | +# | 1 | 15 | # See https://pre-commit.com for more information | 2 | 16 | # See https://pre-commit.com/hooks.html for more hooks | 3 | 17 | repos: | | 12 | 26 | hooks: | 13 | 27 | - id: black | 14 | 28 | - repo: https://gitlab.com/pycqa/flake8 | 15 | | - rev: 3.8.4 | | 29 | + rev: 3.9.1 | 16 | 30 | hooks: | 17 | 31 | - id: flake8 |
Collapse file Copy file name to clipboardExpand all lines: CONTRIBUTING.rst +1-15Lines changed: 1 addition & 15 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -160,21 +160,7 @@ Running System Tests | 160 | 160 | auth settings and change some configuration in your project to | 161 | 161 | run all the tests. | 162 | 162 |
| 163 | | -- System tests will be run against an actual project and | 164 | | - so you'll need to provide some environment variables to facilitate | 165 | | - authentication to your project: | 166 | | - | 167 | | - - ``GOOGLE_APPLICATION_CREDENTIALS``: The path to a JSON key file; | 168 | | - Such a file can be downloaded directly from the developer's console by clicking | 169 | | - "Generate new JSON key". See private key | 170 | | - `docs <https://cloud.google.com/storage/docs/authentication#generating-a-private-key>`__ | 171 | | - for more details. | 172 | | - | 173 | | -- Once you have downloaded your json keys, set the environment variable | 174 | | - ``GOOGLE_APPLICATION_CREDENTIALS`` to the absolute path of the json file:: | 175 | | - | 176 | | - $ export GOOGLE_APPLICATION_CREDENTIALS="/Users/<your_username>/path/to/app_credentials.json" | 177 | | - | | 163 | +- System tests will be run against an actual project. You should use local credentials from gcloud when possible. See `Best practices for application authentication <https://cloud.google.com/docs/authentication/best-practices-applications#local_development_and_testing_with_the>`__. Some tests require a service account. For those tests see `Authenticating as a service account <https://cloud.google.com/docs/authentication/production>`__. | 178 | 164 |
| 179 | 165 | ************* | 180 | 166 | Test Coverage | |
Collapse file Copy file name to clipboard +12-1Lines changed: 12 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | div#python2-eol { | 2 | 2 | border-color: red; | 3 | 3 | border-width: medium; | 4 | | -} | | 4 | +} | 5 | 5 |
| 6 | 6 | /* Ensure minimum width for 'Parameters' / 'Returns' column */ | 7 | 7 | dl.field-list > dt { | 8 | 8 | min-width: 100px | 9 | 9 | } | | 10 | + | | 11 | +/* Insert space between methods for readability */ | | 12 | +dl.method { | | 13 | + padding-top: 10px; | | 14 | + padding-bottom: 10px | | 15 | +} | | 16 | + | | 17 | +/* Insert empty space between classes */ | | 18 | +dl.class { | | 19 | + padding-bottom: 50px | | 20 | +} |
Collapse file Copy file name to clipboard +6Lines changed: 6 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +FeaturestoreOnlineServingService | | 2 | +-------------------------------------------------- | | 3 | + | | 4 | +.. automodule:: google.cloud.aiplatform_v1beta1.services.featurestore_online_serving_service | | 5 | + :members: | | 6 | + :inherited-members: |
Collapse file Copy file name to clipboard +11Lines changed: 11 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +FeaturestoreService | | 2 | +------------------------------------- | | 3 | + | | 4 | +.. automodule:: google.cloud.aiplatform_v1beta1.services.featurestore_service | | 5 | + :members: | | 6 | + :inherited-members: | | 7 | + | | 8 | + | | 9 | +.. automodule:: google.cloud.aiplatform_v1beta1.services.featurestore_service.pagers | | 10 | + :members: | | 11 | + :inherited-members: |
|