Skip to content

Commit

Permalink
using uv
Browse files Browse the repository at this point in the history
- `--system` option is required when `uv pip install` with no venv.
  • Loading branch information
shimizukawa committed Jun 16, 2024
1 parent 134baa6 commit def42d1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/on_create_command.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# setup

pip install -U pip setuptools wheel
pip install -r dev-requires.txt
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install --system -r dev-requires.txt
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U tox
python -m pip install -U tox-uv
- run: tox -e ${{ matrix.linter }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools_scm build twine
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install -U setuptools_scm build twine
- name: Build package
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-examples-proj1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
- name: Install dependencies
working-directory: examples/proj1
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install psycopg2-binary
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install --system -r requirements.txt
uv pip install --system psycopg2-binary
- name: tests
working-directory: examples/proj1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install --system --upgrade tox-uv tox-gh-actions
- name: Tox tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion dev-requires.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setuptools
wheel
setuptools_scm
tox>=3.5
tox-uv
build
twine
-e ./

0 comments on commit def42d1

Please sign in to comment.