Skip to content

Add recipe for google-cloud-aiplatform #18014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions recipes/google-cloud-aiplatform/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{% set name = "google-cloud-aiplatform" %}
{% set version = "1.10.0" %}
{% set sha256 = "89d2936985eaf71a52152fe62bae9d7554dec6948032526b99ec05a049d1ee39" %}
{% set dev_url = "https://github.com/googleapis/python-aiplatform" %}
{% set doc_url = "https://cloud.google.com/python/docs/reference/aiplatform/latest" %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's just used once or twice it's better to have this hardcoded. Makes it easier for the bot as well. Please add these three directly instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would ask upstream to remove the empty scripts tag and make this noarch as that seems to be the only thing holding it up.

If that's currently not possible you can also just add a patch here removing it.

Ref: https://github.com/googleapis/python-aiplatform/blob/1c341544e9bd94c6ff0ee41177565c8c078673a3/setup.py#L114

Copy link
Contributor Author

@parthea parthea Feb 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this info! I've opened a PR upstream : googleapis/python-aiplatform#1014

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! If you're not sure how soon a new release with that will be cut, you can also include that as a patch here. Let me know if you need any help with that.

noarch: python
script: {{ PYTHON }} -m pip install . -vv

requirements:
host:
- python >=3.6
- pip
run:
- python >=3.6
- google-api-core-grpc >=1.26.0,<3.0.0dev
- proto-plus >=1.10.1
- packaging >=14.3
- google-cloud-storage >=1.32.0,<2.0.0dev
- google-cloud-bigquery >=1.15.0,<3.0.0dev

run_constrained:
- tensorflow >=2.3.0,<=2.7.0
- pandas >=1.0.0
- pyarrow >=6.0.1

test:
imports:
- google.api_core
- google.cloud.aiplatform
- google.cloud.aiplatform.hyperparameter_tuning
- google.cloud.aiplatform.initializer
- google.cloud.aiplatform.jobs
- google.cloud.aiplatform.models
- google.cloud.aiplatform.pipeline_jobs
- google.cloud.aiplatform.schema
- google.cloud.aiplatform.training_jobs
- google.cloud.aiplatform.version
- google.cloud.aiplatform_v1
- google.cloud.aiplatform_v1beta1
commands:
- pip check
requires:
- pip

about:
home: {{ dev_url }}
license: Apache-2.0
license_family: Apache
license_file: LICENSE
summary: Vertex AI SDK for Python
description: |
Google Vertex AI is an integrated suite of machine learning tools and services for building and using ML models
with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning
development lifecycle.
doc_url: {{ doc_url }}
dev_url: {{ dev_url }}

extra:
recipe-maintainers:
- parthea
- morgandu
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@morgandu Please confirm that you'd like to be added as a maintainer (as per checklist)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, please add me as maintainer.