Skip to content

Commit 9e67afc

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

25 files changed

+354
-822
lines changed

.flake8

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

.github/workflows/ci.yml

Lines changed: 18 additions & 25 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,28 @@ 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: Install the project
55+
run: uv sync --all-extras --dev
5856

59-
- name: Upgrade packaging tools
60-
run: python -m pip install --upgrade pip setuptools virtualenv wheel
61-
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
57+
- name: Run tests
58+
# For example, using `pytest`
59+
run: uv run pytest test

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)