From f1a1cd0d8a6bcc679e1b60d460e338051c208d7f Mon Sep 17 00:00:00 2001 From: Alex Tomkins Date: Fri, 8 Nov 2024 19:06:55 +0000 Subject: [PATCH] Use tox-uv --- .github/workflows/ci.yml | 2 +- requirements/local.txt | 1 + {{cookiecutter.project_slug}}/.github/workflows/ci.yml | 2 +- {{cookiecutter.project_slug}}/requirements/local.txt | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c32a9ab..a279af9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,5 +37,5 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('.nvmrc', 'package.json', 'package-lock.json') }} - name: Run tests run: | - pip install $(grep "^tox==" requirements/local.txt) + pip install $(grep -E "^(tox|tox-uv)==" requirements/local.txt) tox -e ${{ matrix.testenv }} diff --git a/requirements/local.txt b/requirements/local.txt index 3cabe9a..9303029 100644 --- a/requirements/local.txt +++ b/requirements/local.txt @@ -1,3 +1,4 @@ -r testing.txt tox==4.23.2 +tox-uv==1.16.0 diff --git a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml index c3bfdd1..5feceb9 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml @@ -32,5 +32,5 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('.nvmrc', 'package.json', 'package-lock.json') }} - name: Run tests run: | - pip install $(grep "^tox==" requirements/local.txt) + pip install $(grep -E "^(tox|tox-uv)==" requirements/local.txt) tox diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 144eafd..e8a0301 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -2,3 +2,4 @@ ipdb==0.13.13 tox==4.23.2 +tox-uv==1.16.0