Skip to content

Commit 047e0a8

Browse files
committed
Switch dependency management to uv and require Python 3.10
1 parent 88b2a32 commit 047e0a8

29 files changed

Lines changed: 2587 additions & 214 deletions

.github/actions/gh-action-pip-audit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ jobs:
377377
steps:
378378
- uses: actions/setup-python@v2
379379
with:
380-
python-version: 3.9 # change to your required version of Python
380+
python-version: 3.10 # change to your required version of Python
381381
382382
- name: 'Generate requirements.txt'
383383
run: |

.github/workflows/install-tests.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
python_version:
23-
- "3.6"
24-
- "3.7"
25-
- "3.8"
26-
- "3.9"
2723
- "3.10"
2824
- "3.11"
29-
- "pypy-3.7"
30-
- "pypy-3.8"
31-
- "pypy-3.9"
25+
- "3.12"
26+
- "3.13"
27+
- "pypy-3.10"
3228

3329
steps:
3430
- uses: actions/checkout@v6

.github/workflows/integration-tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,34 @@ jobs:
3030

3131
strategy:
3232
matrix:
33-
python_version: [ 3.9 ]
33+
python_version: [ 3.10 ]
3434

3535
steps:
3636
- uses: actions/checkout@v6
3737
- name: Use Python ${{ matrix.python_version }}
3838
uses: actions/setup-python@v6
3939
with:
4040
python-version: ${{ matrix.python_version }}
41+
- name: Install uv
42+
uses: astral-sh/setup-uv@v4
4143

4244
- name: Install OS / deb dependencies
4345
run: |
4446
sudo DEBIAN_FRONTEND=noninteractive apt-get update
4547
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq gcc libvirt-dev
4648
47-
- name: Cache Python Dependencies
49+
- name: Cache uv
4850
uses: actions/cache@v5
4951
with:
50-
path: ~/.cache/pip
51-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-tests.txt', 'integration/storage/requirements.txt') }}
52+
path: ~/.cache/uv
53+
key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
5254
restore-keys: |
53-
${{ runner.os }}-pip-
55+
${{ runner.os }}-uv-
5456
5557
- name: Install Python Dependencies
5658
run: |
57-
pip install -r requirements-ci.txt
59+
uv sync --extra ci
60+
echo "${GITHUB_WORKSPACE}/.venv/bin" >> "$GITHUB_PATH"
5861
5962
- name: Run tox target
6063
run: |

0 commit comments

Comments
 (0)