Skip to content

Commit

Permalink
Start using uv instead of pip
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Oct 15, 2024
1 parent 44bc2f0 commit 97b383a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .config/requirements-test.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ coverage-enable-subprocess # see https://github.com/nedbat/coveragepy/issues/134
coverage[toml] >= 6.4.4
pytest >= 7.2.2
pytest-xdist >= 2.1.0
uv
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
cache-dependency-path: .config/requirements*.in
cache: pip
python-version: ${{ matrix.python_version }}
- run: pip3 install -U tox
- run: python3 -m pip install -U uv tox tox-uv
- run: "${{ matrix.command }}"
codeql:
name: codeql
Expand Down
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# spell-checker:ignore linkcheck basepython changedir envdir envlist envname envsitepackagesdir passenv setenv testenv toxinidir toxworkdir usedevelop doctrees envpython posargs minversion showlocals REQPASS PYTHONPYCACHEPREFIX PYTHONIOENCODING PYTHONBREAKPOINT
[tox]
minversion = 4.6.3
minversion = 4.21.2
envlist =
lint
py
isolated_build = true
skip_missing_interpreters = True
requires =
tox >= 4.6.3
tox >= 4.21.2
tox-extra >= 2.0.2
tox-uv >= 1.15.0
setuptools >= 65.3.0 # editable installs

[testenv]
Expand All @@ -18,7 +20,7 @@ extras =
commands_pre =
sh -c "rm -f {envdir}/.coverage.* 2>/dev/null || true"
# safety measure to assure we do not accidentally run tests with broken dependencies
{envpython} -m pip check
uv pip check
commands =
coverage run -m pytest {posargs:\
-v \
Expand Down

0 comments on commit 97b383a

Please sign in to comment.