Skip to content

Commit a16ec04

Browse files
authored
Merge pull request #42 from flask-extensions/uv
Replaces: `poetry` -> `uv`
2 parents 7cd9008 + 5267c4f commit a16ec04

File tree

5 files changed

+1217
-1887
lines changed

5 files changed

+1217
-1887
lines changed

.github/workflows/tests.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,18 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python: ["3.11", "3.10", "3.9", "3.8"]
11+
python: ["3.13", "3.12", "3.11", "3.10"]
1212

1313
steps:
14-
15-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v4
1615

1716
- name: Set up Python ${{ matrix.python }}
18-
uses: actions/setup-python@v1
17+
uses: actions/setup-python@v5
1918
with:
2019
python-version: ${{ matrix.python }}
2120

22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
python -m pip install --upgrade poetry
26-
poetry install
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v6
2723

2824
- name: Run tests
29-
run: |
30-
poetry run pytest
25+
run: uv run pytest

CONTRIBUTING.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
# Mini contribution guide
22

3-
The package uses `pyproject.toml` and [Poetry](https://python-poetry.org/). To install the dependencies:
4-
5-
```console
6-
$ poetry install --extras "docs"
7-
```
3+
The requires [`uv`](https://docs.astral.sh/uv/).
84

95
## Tests
106

117
To run tests with the current Python version:
128

139
```console
14-
$ poetry run pytest
10+
$ uv run pytest
1511
```
1612

1713
To run tests with all supported Python versions:
1814

1915
```console
20-
$ poetry run tox
16+
$ uv run tox
2117
```
2218

2319
## Docs
2420

2521
To build the docs, use [Sphinx](https://www.sphinx-doc.org/en/):
2622

2723
```console
28-
$ poetry run sphinx-build docs docs/_build
24+
$ uv run --group docs sphinx-build docs docs/_build
2925
```
3026

3127
Then, browse from `docs/_build/index.html`.

0 commit comments

Comments
 (0)