Skip to content

Commit 9cb0192

Browse files
committed
chore: move to uv
1 parent 15d31d9 commit 9cb0192

25 files changed

+357
-821
lines changed

.flake8

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88

99
jobs:
@@ -32,35 +32,32 @@ jobs:
3232
strategy:
3333
matrix:
3434
python-version:
35-
- '3.6'
36-
- '3.8'
37-
- '3.9'
38-
- '3.10'
35+
- "3.8"
36+
- "3.9"
37+
- "3.10"
3938

4039
defaults:
4140
run:
42-
shell: bash
41+
shell: bash
4342
steps:
44-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v4
4544

46-
- uses: actions/setup-python@v2
47-
with:
48-
python-version: ${{ matrix.python-version }}
45+
- name: Install uv
46+
uses: astral-sh/setup-uv@v4
47+
with:
48+
enable-cache: true
49+
cache-dependency-glob: "uv.lock"
4950

50-
- name: Get full Python version
51-
id: full-python-version
52-
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
51+
- name: Set up Python ${{ matrix.python-version }}
52+
run: uv python install ${{ matrix.python-version }}
5353

54-
- uses: actions/cache@v2
55-
with:
56-
path: ~/.cache/pip
57-
key: ${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
54+
- name: Get full Python version
55+
id: full-python-version
56+
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
5857

59-
- name: Upgrade packaging tools
60-
run: python -m pip install --upgrade pip setuptools virtualenv wheel
58+
- name: Install the project
59+
run: uv sync --all-extras --dev
6160

62-
- name: Install dependencies
63-
run: python -m pip install --upgrade codecov tox tox-py
64-
65-
- name: Run tox targets for ${{ matrix.python-version }}
66-
run: tox --py current
61+
- name: Run tests
62+
# For example, using `pytest`
63+
run: uv run pytest tests

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Requirements
99
==============
1010

1111
* Postgres 9.5+
12-
* Python 3.6+
13-
* Django 3.2+
12+
* Python 3.8+
13+
* Django 4+
1414

1515

1616
Installation

0 commit comments

Comments
 (0)