Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
1,509 changes: 663 additions & 846 deletions cypress-tests/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions cypress-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"cypress": "^12.17.1",
"cypress-localstorage-commands": "^2.2.3",
"typescript": "^4.8.4",
"uuid": "^9.0.0"
"uuid": "^14.0.0"
},
"devDependencies": {
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@typescript-eslint/eslint-plugin": "^8.62.1",
"@typescript-eslint/parser": "^8.62.1",
"eslint": "^8.28.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-cypress": "^2.12.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ There are multiple ways you can define a python environment for your Renku sessi
- [Miniconda (`environment.yml`) (recommended)](#miniconda-environmentyml-recommended)
- [Pip (`requirements.txt`)](#pip-requirementstxt)
- [Poetry (`pyproject.toml`)](#poetry-pyprojecttoml)
- [uv (`pyproject.toml` and `uv.lock`)](#uv-pyprojecttoml-and-uvlock)

See below for more details on how to use each of these systems.

Expand Down Expand Up @@ -139,6 +140,38 @@ Note that poetry version `1.8.3` will be used.

</details>

#### uv (`pyproject.toml` and `uv.lock`)

Include a `pyproject.toml` file and a `uv.lock` file at the root (top level) of your code repository. The buildpack will invoke `uv` to install the dependencies recorded in `uv.lock`.

If you do not have a `uv.lock` file yet, you can generate one by running `uv lock` in your local project.

:::info

Renku sets the environment variable `UV_PROJECT_ENVIRONMENT` to `$RENKU_WORKING_DIR/.venv` in the session. This means the regular `python` command has access to everything installed with `uv add`, and you do not need to pass the `--active` flag to `uv` commands.

:::

<details>
<summary>Here is an example `pyproject.toml`:</summary>

```toml
[project]
name = "my-renku-project"
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"numpy>=2.2.2",
"pandas>=2.2.3",
"jupyterlab>=4.3.5",
"scipy>=1.15.1",
]
```

</details>

### Defining an R Environment with renv

Renku can build an R environment from an [`renv`](https://rstudio.github.io/renv/) lockfile.
Expand Down
6 changes: 3 additions & 3 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,498 changes: 749 additions & 749 deletions global-images/datascience/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions global-images/datascience/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ package-mode = false

[tool.poetry.dependencies]
python = ">=3.12,<3.14"
pandas = "^2.3.3"
pandas = ">=2.3.3,<4.0.0"
numpy = "^2.4.0"
scipy = "^1.16.3"
scikit-learn = "^1.8.0"
plotly = "^6.5.0"
transformers = "^4.57.3"
transformers = ">=4.57.3,<6.0.0"
matplotlib = "^3.10.8"
seaborn = "^0.13.2"

Expand Down
9 changes: 5 additions & 4 deletions helm-chart/renku/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

## Global variables
## Shared values/secrets
# TODO
global:
## YAML string that contains all application level Renku configuration options.
platformConfig: |
Expand Down Expand Up @@ -1281,17 +1282,17 @@ dataService:
pullPrivateSecretName: "renku-pull-private-docker-secret"

## The builder image (see https://buildpacks.io/docs/for-platform-operators/concepts/builder/)
builderImage: "ghcr.io/swissdatasciencecenter/renku-frontend-buildpacks/selector:0.8.0"
builderImage: "ghcr.io/swissdatasciencecenter/renku-frontend-buildpacks/selector:0.9.0"
## The run image (see https://buildpacks.io/docs/for-platform-operators/concepts/base-images/)
runImage: "ghcr.io/swissdatasciencecenter/renku-frontend-buildpacks/run-image:0.8.0"
runImage: "ghcr.io/swissdatasciencecenter/renku-frontend-buildpacks/run-image:0.9.0"
## The name of the BuildStrategy to use for image builds.
strategyName: renku-buildpacks-v3
## Configuration overrides for specific target platforms
platformOverrides:
{}
# linux/arm64:
# builderImage: "ghcr.io/swissdatasciencecenter/renku-frontend-buildpacks/cuda-selector:0.8.0"
# runImage: "ghcr.io/swissdatasciencecenter/renku-frontend-buildpacks/cuda-run-image:0.8.0"
# builderImage: "ghcr.io/swissdatasciencecenter/renku-frontend-buildpacks/cuda-selector:0.9.0"
# runImage: "ghcr.io/swissdatasciencecenter/renku-frontend-buildpacks/cuda-run-image:0.9.0"
# strategyName: renku-buildpacks-v3
# nodeSelector:
# kubernetes.io/arch: arm64
Expand Down
2 changes: 1 addition & 1 deletion scripts/init-db/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
psycopg2-binary==2.9.6
tenacity==8.2.2
requests==2.31.0
requests==2.32.4
kubernetes==24.2.0
2 changes: 1 addition & 1 deletion scripts/platform-init/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kubernetes==29.0.0
cryptography==42.0.5
cryptography==46.0.6
pyyaml==6.0.1
Loading