File tree Expand file tree Collapse file tree 12 files changed +3636
-4445
lines changed Expand file tree Collapse file tree 12 files changed +3636
-4445
lines changed Original file line number Diff line number Diff line change @@ -50,30 +50,27 @@ jobs:
50
50
- uses : actions/cache@v4
51
51
with :
52
52
path : ~/.cache/pip
53
- key : ${{ runner.os }}-pip-${{ hashFiles('**/poetry .lock') }}
53
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/uv .lock') }}
54
54
restore-keys : |
55
55
${{ runner.os }}-pip-
56
56
- uses : actions/checkout@v4
57
57
- uses : actions/setup-python@v5
58
58
with :
59
59
python-version : ${{ matrix.python-version }}
60
- - name : Install and configure Poetry
61
- run : |
62
- pip install -U pip poetry
63
- poetry config virtualenvs.create false
60
+ - uses : astral-sh/setup-uv@v6
64
61
- name : Install ODBC driver
65
62
run : |
66
63
curl -sSL -O https://packages.microsoft.com/config/ubuntu/$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2)/packages-microsoft-prod.deb
67
64
sudo dpkg -i packages-microsoft-prod.deb
68
65
sudo apt-get update
69
66
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
70
67
- name : Run ci
71
- run : make ci
68
+ run : uv run make ci
72
69
- name : Test FastAPI/Blacksheep Example
73
70
run : |
74
- PYTHONPATH=$DEST_FASTAPI pytest $PYTEST_ARGS $DEST_FASTAPI/_tests.py
75
- PYTHONPATH=$DEST_BLACKSHEEP pytest $PYTEST_ARGS $DEST_BLACKSHEEP/_tests.py
76
- PYTHONPATH=$DEST_SANIC pytest $PYTEST_ARGS $DEST_SANIC/_tests.py
71
+ PYTHONPATH=$DEST_FASTAPI uv run pytest $PYTEST_ARGS $DEST_FASTAPI/_tests.py
72
+ PYTHONPATH=$DEST_BLACKSHEEP uv run pytest $PYTEST_ARGS $DEST_BLACKSHEEP/_tests.py
73
+ PYTHONPATH=$DEST_SANIC uv run pytest $PYTEST_ARGS $DEST_SANIC/_tests.py
77
74
env :
78
75
DEST_FASTAPI : examples/fastapi
79
76
DEST_BLACKSHEEP : examples/blacksheep
Original file line number Diff line number Diff line change @@ -17,19 +17,16 @@ jobs:
17
17
- uses : actions/checkout@v4
18
18
- uses : actions/setup-python@v5
19
19
with :
20
- # 3.12 is the minimum reqquired version for profiling enabled
20
+ # 3.12 is the minimum required version for profiling enabled
21
21
python-version : " 3.12"
22
22
23
- - name : Install and configure Poetry
24
- run : |
25
- pip install -U pip poetry
26
- poetry config virtualenvs.create false
23
+ - uses : astral-sh/setup-uv@v6
27
24
28
- - name : Install dependencies
25
+ - name : Build dists
29
26
run : make build
30
27
31
28
- name : Run benchmarks
32
29
uses : CodSpeedHQ/action@v3
33
30
with :
34
31
token : ${{ secrets.CODSPEED_TOKEN }}
35
- run : pytest tests/benchmarks --codspeed
32
+ run : uv run pytest tests/benchmarks --codspeed
Original file line number Diff line number Diff line change 11
11
- uses : actions/setup-python@v5
12
12
with :
13
13
python-version : " 3.9"
14
- - name : Install and configure Poetry
15
- run : |
16
- pip install -U pip poetry
17
- poetry config virtualenvs.create false
14
+ - uses : astral-sh/setup-uv@v6
18
15
- name : Build docs
19
- run : make docs
16
+ run : uv run make docs
20
17
- name : Deploy release docs
21
18
uses : peaceiris/actions-gh-pages@v3
22
19
with :
Original file line number Diff line number Diff line change 12
12
- uses : actions/setup-python@v5
13
13
with :
14
14
python-version : " 3.9"
15
- - name : Install and configure Poetry
16
- run : |
17
- pip install -U pip poetry
18
- poetry config virtualenvs.create false
15
+ - uses : astral-sh/setup-uv@v6
19
16
- name : Build docs
20
- run : make docs
17
+ run : uv run make docs
21
18
- name : Deploy latest docs
22
19
uses : peaceiris/actions-gh-pages@v3
23
20
with :
Original file line number Diff line number Diff line change 11
11
- uses : actions/setup-python@v5
12
12
with :
13
13
python-version : ' 3.9'
14
- - name : Install and configure Poetry
15
- run : |
16
- pip install -U pip poetry
17
- poetry config virtualenvs.create false
18
- - name : Install requirements
19
- run : make deps
14
+ - uses : astral-sh/setup-uv@v6
20
15
- name : Build dists
21
16
run : make build
22
17
- name : Pypi Publish
Original file line number Diff line number Diff line change 110
110
111
111
# macos
112
112
.DS_Store
113
+
114
+ # pdm
115
+ .pdm-python
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ help:
21
21
@echo " lint Auto-formats the code and check type hints"
22
22
23
23
up :
24
- @poetry update
24
+ @uv lock --upgrade
25
25
26
26
deps :
27
- @poetry install --all-groups -E asyncpg -E accel -E psycopg -E asyncodbc -E aiomysql
27
+ @uv sync --all-groups --extra asyncpg --extra accel --extra psycopg --extra asyncodbc --extra aiomysql $( options )
28
28
29
29
deps_with_asyncmy :
30
- @poetry install --all-groups -E asyncpg -E accel -E psycopg -E asyncodbc -E asyncmy
30
+ @uv sync --all-groups --extra asyncpg --extra accel --extra psycopg --extra asyncodbc --extra asyncmy $( options )
31
31
32
32
check : build _check
33
33
_check :
@@ -99,7 +99,7 @@ docs: deps
99
99
100
100
build : deps
101
101
rm -fR dist/
102
- poetry build
102
+ uv build
103
103
104
104
publish : deps _build
105
105
twine upload dist/*
You can’t perform that action at this time.
0 commit comments