-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
223 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,9 @@ jobs: | |
permissions: | ||
id-token: write | ||
contents: write | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/vertex-deployer | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -48,20 +51,26 @@ jobs: | |
with: | ||
github_token: ${{ secrets.RELEASE_ACCESS_TOKEN }} | ||
|
||
# Publish to Pypi | ||
- name: Publish package distributions to PyPI | ||
if: steps.python-semantic-release.outputs.released == 'true' | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
# Publish to Google Artifact Registry | ||
- name: 'Authenticate to Google Cloud' | ||
if: ${{ steps.python-semantic-release.outputs.released == 'true' }} | ||
if: steps.python-semantic-release.outputs.released == 'true' | ||
uses: 'google-github-actions/auth@v2' | ||
with: | ||
token_format: 'access_token' | ||
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}' # e.g. - projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider | ||
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}' # e.g. - [email protected] | ||
|
||
- name: Install twine | ||
if: ${{ steps.python-semantic-release.outputs.released == 'true' }} | ||
if: steps.python-semantic-release.outputs.released == 'true' | ||
run: pip install twine keyrings.google-artifactregistry-auth | ||
|
||
- name: Upload dist to Google Artifact Registry | ||
if: ${{ steps.python-semantic-release.outputs.released == 'true' }} | ||
if: steps.python-semantic-release.outputs.released == 'true' | ||
run: | | ||
python3 -m twine upload \ | ||
--repository-url https://europe-west1-python.pkg.dev/data-sandbox-fr/artefactory \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
spec_version: 1 | ||
|
||
# Everyting in this file will be used to populate the catalog on skaff.artefact.com | ||
# It is also vectorized as is for the search, so make sure to provide relevant keywords | ||
|
||
name: Vertex Pipelines Deployer | ||
owner: [email protected] | ||
description: > | ||
Check, compile, upload, run and schedule Vertex Pipelines in a standardized manner. | ||
documentation_url: https://supreme-funicular-mzylwj5.pages.github.io/ | ||
|
||
type: deployable # deployable, knowldege pack | ||
lifecycle: production # prototype, production | ||
|
||
users: # DS, DA, DE | ||
- DS | ||
- DE | ||
|
||
clouds: # aws, gcp, azure, databricks | ||
- gcp | ||
|
||
technologies: # python, dbt, terraform, airbyte, ... | ||
- vertex | ||
- python | ||
|
||
expertises: # MMM, forecasting, ELT, release engineering, ... | ||
- MLEng | ||
- MLOps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<br /> | ||
<div align="center"> | ||
<h1 align="center">Vertex Pipelines Deployer</h1> | ||
<p align="center"> | ||
<a href="https://www.artefact.com/"> | ||
<img src="docs/assets/Artefact-AI-is-about-People-logo-1200x424.png" style="max-width:50%;height:auto;background-color:#111146;" alt="Artefact Logo"/> | ||
</a> | ||
</p> | ||
<h3 align="center">Deploy Vertex Pipelines within minutes</h3> | ||
<p align="center"> | ||
This tool is a wrapper around <a href="https://www.kubeflow.org/docs/components/pipelines/v2/hello-world/">kfp</a> and <a href="https://cloud.google.com/python/docs/reference/aiplatform/latest">google-cloud-aiplatform</a> that allows you to check, compile, upload, run, and schedule Vertex Pipelines in a standardized manner. | ||
|
@@ -57,9 +62,9 @@ | |
|
||
[Full CLI documentation](docs/CLI_REFERENCE.md) | ||
|
||
<!-- --8<-- [start:why] --> | ||
## ❓ Why this tool? | ||
|
||
## ❓ Why this tool? | ||
<!-- --8<-- [start:why] --> | ||
|
||
Three use cases: | ||
|
||
|
@@ -86,6 +91,11 @@ Two main commands: | |
|
||
## 📦 Installation | ||
<!-- --8<-- [start:installation] --> | ||
### From PyPI | ||
|
||
```bash | ||
pip install vertex-deployer | ||
``` | ||
|
||
### From git repo | ||
|
||
|
@@ -105,32 +115,6 @@ git clone [email protected]:artefactory/vertex-pipelines-deployer.git | |
poetry install | ||
cd example | ||
``` | ||
|
||
### From Artifact Registry (not available in PyPI yet) | ||
|
||
The package is available on a public Google Artifact Registry repo. You need to specify a | ||
[pip extra index url](https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-extra-index-url) to install it. | ||
|
||
Install latest version: | ||
```bash | ||
pip install --extra-index-url https://europe-west1-python.pkg.dev/data-sandbox-fr/artefactory/simple vertex-deployer | ||
``` | ||
|
||
!!! tip "Add to requirements" | ||
You can add the extra index URL to your `requirements.in` or `requirements.txt` file. | ||
```txt title="requirements.txt" | ||
--extra-index-url https://europe-west1-python.pkg.dev/data-sandbox-fr/artefactory/simple | ||
|
||
vertex-deployer==0.3.3 | ||
``` | ||
|
||
??? info "About extra index URL" | ||
You can add the extra index URL to your `pip.conf` file to avoid having to specify it every time. | ||
|
||
List available versions: | ||
```bash | ||
pip index versions --extra-index-url https://europe-west1-python.pkg.dev/data-sandbox-fr/artefactory/simple vertex-deployer | ||
``` | ||
<!-- --8<-- [end:installation] --> | ||
|
||
## 🚀 Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.