Skip to content
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

vdk-jupyter: publish image to pip registry #2407

Merged
merged 17 commits into from
Jul 14, 2023
22 changes: 22 additions & 0 deletions projects/vdk-plugins/vdk-jupyter/.plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,25 @@ build-vdk-jupyterlab-extension:
- if: '$CI_COMMIT_BRANCH == "main" || $CI_PIPELINE_SOURCE == "external_pull_request_event"'
changes:
- "projects/vdk-plugins/vdk-jupyter/**/*"


release-vdk-jupyter:
variables:
PLUGIN_NAME:
image: "python:3.10-alpine"
stage: release
before_script:
- export VDK_PATCH_VERSION=${CI_PIPELINE_ID}
script:
- cd projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ || exit 1
- apk --no-cache add npm rust cargo libffi-dev
- pip install -U pip setuptools wheel twine pre-commit build hatch jupyter
- hatch version 0.1.$VDK_PATCH_VERSION
- python -m build
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "main"'
changes:
- "projects/vdk-plugins/vdk-jupyter/**/*"
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,11 @@ for the frontend extension.
- Versatile Data Kit
- npm

## Install

To install the extension,first navigate to the project directory and then execute:
## Install and run

```bash
# Once in the project directory, use the npm ci command to install
# the exact versions of the dependencies specified in the package-lock.json
npm ci
# Install the extension
pip install vdk-jupyterlab-extension
jupyter lab
```

## Uninstall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"jupyter_server>=1.6,<3"
"jupyter_server>=1.6,<3",
"jupyterlab==3.6.3",
"vdk-control-cli",
"vdk-core"
]
dynamic = ["version", "description", "authors", "urls", "keywords"]

Expand Down

This file was deleted.