From 0d92d0dbb7366537bd45084cd1e7f68c7bc7f328 Mon Sep 17 00:00:00 2001 From: Mehmet Salih Yavuz Date: Sat, 20 Jun 2026 06:56:25 +0300 Subject: [PATCH] =?UTF-8?q?chore(deps):=20finish=20pip=E2=86=92uv=20swap?= =?UTF-8?q?=20in=20Makefile=20and=20CI=20(#41197)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bashlib.sh | 4 ++-- .github/workflows/superset-app-cli.yml | 2 +- .../workflows/superset-python-presto-hive.yml | 2 +- Makefile | 17 ++++++++++++----- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bashlib.sh b/.github/workflows/bashlib.sh index b7be35f7585..e1b622b6afa 100644 --- a/.github/workflows/bashlib.sh +++ b/.github/workflows/bashlib.sh @@ -114,7 +114,7 @@ testdata() { say "::group::Load test data" # must specify PYTHONPATH to make `tests.superset_test_config` importable export PYTHONPATH="$GITHUB_WORKSPACE" - pip install -e . + uv pip install --system -e . superset db upgrade superset load_test_users superset load_examples --load-test-data @@ -127,7 +127,7 @@ playwright_testdata() { say "::group::Load all examples for Playwright tests" # must specify PYTHONPATH to make `tests.superset_test_config` importable export PYTHONPATH="$GITHUB_WORKSPACE" - pip install -e . + uv pip install --system -e . superset db upgrade superset load_test_users superset load_examples diff --git a/.github/workflows/superset-app-cli.yml b/.github/workflows/superset-app-cli.yml index 8ebb2e6539c..e08cea4a4fb 100644 --- a/.github/workflows/superset-app-cli.yml +++ b/.github/workflows/superset-app-cli.yml @@ -61,7 +61,7 @@ jobs: - name: superset init if: steps.check.outputs.python run: | - pip install -e . + uv pip install --system -e . superset db upgrade superset load_test_users - name: superset load_examples diff --git a/.github/workflows/superset-python-presto-hive.yml b/.github/workflows/superset-python-presto-hive.yml index ee797119866..b91122e6b16 100644 --- a/.github/workflows/superset-python-presto-hive.yml +++ b/.github/workflows/superset-python-presto-hive.yml @@ -149,7 +149,7 @@ jobs: run: celery-worker - name: Python unit tests (PostgreSQL) run: | - pip install -e .[hive] + uv pip install --system -e .[hive] ./scripts/python_tests.sh -m 'chart_data_flow or sql_json_flow' - name: Upload code coverage uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 diff --git a/Makefile b/Makefile index 3c35fb4c60d..b1db1d6bf9c 100644 --- a/Makefile +++ b/Makefile @@ -23,11 +23,14 @@ PYTHON=`command -v python3.11 || command -v python3.10` install: superset pre-commit superset: + # Bootstrap uv (the project's installer) into the active environment + pip install uv + # Install external dependencies - pip install -r requirements/development.txt + uv pip install -r requirements/development.txt # Install Superset in editable (development) mode - pip install -e . + uv pip install -e . # Create an admin user in your metadata database superset fab create-admin \ @@ -52,11 +55,14 @@ superset: update: update-py update-js update-py: + # Bootstrap uv (the project's installer) into the active environment + pip install uv + # Install external dependencies - pip install -r requirements/development.txt + uv pip install -r requirements/development.txt # Install Superset in editable (development) mode - pip install -e . + uv pip install -e . # Initialize the database superset db upgrade @@ -79,7 +85,8 @@ activate: pre-commit: # setup pre commit dependencies - pip3 install -r requirements/development.txt + pip install uv + uv pip install -r requirements/development.txt pre-commit install format: py-format js-format