File tree Expand file tree Collapse file tree 8 files changed +1032
-17
lines changed
Expand file tree Collapse file tree 8 files changed +1032
-17
lines changed Original file line number Diff line number Diff line change 77 "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
88 "ghcr.io/devcontainers/features/git:1" : {},
99 "ghcr.io/devcontainers/features/github-cli:1" : {},
10- "ghcr.io/va-h/devcontainers-features/uv:1" : {},
11- "ghcr.io/devcontainers-contrib/features/act:1" : {},
12- "ghcr.io/devcontainers-contrib/features/ruff:1" : {}
10+ "ghcr.io/devcontainers-contrib/features/act:1" : {}
1311 },
1412
1513 // Use 'forwardPorts' to make a list of ports inside the container available locally.
3230 ],
3331 // Set *default* container specific settings.json values on container create.
3432 "settings" : {
35- "ruff.path" : [" /usr/local/py-utils/bin/ruff" ]
33+ "editor.codeActionsOnSave" : {
34+ "source.fixAll" : " explicit"
35+ },
36+ "[python]" : {
37+ "editor.defaultFormatter" : " charliermarsh.ruff"
38+ },
39+ "python.defaultInterpreterPath" : " /usr/local/bin/python"
3640 }
3741 }
3842 },
Original file line number Diff line number Diff line change 11# setup
2+ set -ex
23
3- pip install -r dev-requires.txt
4+ curl -LsSf https://astral.sh/uv/install.sh | sh
5+ . $HOME /.cargo/env
6+ uv tool install -U ruff
7+ uv tool install -U tox --with tox-uv
8+ uv sync --extra psycopg2-binary
Original file line number Diff line number Diff line change @@ -23,10 +23,11 @@ jobs:
2323 - name : Install dependencies
2424 run : |
2525 curl -LsSf https://astral.sh/uv/install.sh | sh
26- uv pip install --system -U setuptools_scm build twine
26+ uv sync
2727
2828 - name : Build package
2929 run : |
30+ . .venv/bin/activate
3031 python -m build --version
3132 python -m build
3233 twine check dist/*
Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ jobs:
4747 - name : Install dependencies
4848 run : |
4949 curl -LsSf https://astral.sh/uv/install.sh | sh
50- uv pip install --system --upgrade tox-uv tox-gh-actions
50+ uv sync
5151
5252 - name : Tox tests
5353 run : |
54- tox -v
54+ .venv/bin/ tox -v
5555 env :
5656 DJANGO : ${{ matrix.django-version }}
5757 TEST_WITH_POSTGRES : 1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ Setup development environment
2020* Requires supported Python version
2121* do setup under django-redshift-backend.git repository root as::
2222
23- $ pip install -U pip setuptools
24- $ pip install -r dev-requires.txt
23+ $ pip install uv
24+ $ uv sync
2525
2626Testing
2727=======
Original file line number Diff line number Diff line change @@ -64,3 +64,19 @@ local_scheme = "no-local-version"
6464
6565[tool .ruff ]
6666exclude = [" django_redshift_backend/_vendor" ]
67+
68+ [tool .uv ]
69+ dev-dependencies = [
70+ " setuptools>=73.0.1" ,
71+ " wheel>=0.44.0" ,
72+ " setuptools-scm>=8.1.0" ,
73+ " tox-uv>=1.11.2" ,
74+ " build>=1.2.1" ,
75+ " twine>=5.1.1" ,
76+ " django-redshift-backend" ,
77+ " ruff>=0.6.2" ,
78+ " tox-gh-actions>=3.2.0" ,
79+ ]
80+
81+ [tool .uv .sources ]
82+ django-redshift-backend = { workspace = true }
You can’t perform that action at this time.
0 commit comments