Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/bashlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/superset-app-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/superset-python-presto-hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 12 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading