From 4669afaea9a7234bc88ac4227c5d1dda9d53435f Mon Sep 17 00:00:00 2001 From: Andreas Motl <andreas.motl@crate.io> Date: Thu, 5 Dec 2024 23:16:37 +0100 Subject: [PATCH] Revert "CI and Sandbox: Temporarily remove use of `uv`" This reverts commit 76e649479f1941220479f62a1bcb74296ab4b546. --- .github/workflows/tests.yml | 5 ++++- DEVELOP.md | 10 +++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fe1e6af..0271117 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -78,10 +78,13 @@ jobs: requirements.txt requirements-dev.txt + - name: Set up uv + uses: astral-sh/setup-uv@v4 + - name: Set up project run: | # Install runtime and development requirements. - pip install --upgrade -r requirements.txt -r requirements-dev.txt + uv pip install --system --upgrade -r requirements.txt -r requirements-dev.txt - name: Run linter and software tests run: | diff --git a/DEVELOP.md b/DEVELOP.md index d6f5e3b..89a19cc 100644 --- a/DEVELOP.md +++ b/DEVELOP.md @@ -7,11 +7,15 @@ docker run --rm -it --name=cratedb \ --env=CRATE_HEAP_SIZE=2g crate:latest -Cdiscovery.type=single-node ``` +Install Python package and project manager [uv]. +```shell +{apt,brew,pip,zypper} install uv +``` + Set up Python environment and install requirements. ```shell -python3 -m venv .venv -source .venv/bin/activate -pip install --upgrade -r requirements.txt -r requirements-dev.txt +uv venv --python=python3.12 +uv pip install --upgrade -r requirements.txt -r requirements-dev.txt ``` Invoke linters and software tests.