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

Use uv for GitPod, speedup the setup time #1972

Merged
merged 2 commits into from
Jul 8, 2024
Merged
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
11 changes: 6 additions & 5 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ tasks:
- name: backend
before: echo PIP_USER=no >> ~/.bashrc && export PIP_USER=no
init: |
pip install "pip==23.3.1" --user
pip install -r package/test_requirements.txt -r demo-project/src/docker_requirements.txt --user
pip install uv
uv pip install "pip==23.3.1" --system
uv pip install -r package/test_requirements.txt -r demo-project/src/docker_requirements.txt --system
# Install latest kedro and all its dependencies.
pip install https://github.com/kedro-org/kedro/archive/main.zip --user
uv pip install https://github.com/kedro-org/kedro/archive/main.zip --system
# force-reinstall kedro to ensure that the latest version from main is installed even when
# its version number is the same as that specified in docker_requirements.txt.
pip install https://github.com/kedro-org/kedro/archive/main.zip --user --force-reinstall --no-deps
uv pip install https://github.com/kedro-org/kedro/archive/main.zip --force-reinstall --no-deps --system
command: |
gp sync-await build_complete
pip install -e package --no-deps
uv pip install -e package --no-deps --system
gp sync-done kedro_installed
make run

Expand Down
Loading