Skip to content

Commit a3e8665

Browse files
authored
Use --universal flag with uv pip compile (#3032)
* Use `--universal` flag with uv pip compile * Upgrade to uv `0.2.26`, fixed astral-sh/uv#4885 * Update uv and remove `--no-strip-markers` Apparently `--universal` implies `--no-strip-markers`
1 parent 0c88bc7 commit a3e8665

File tree

5 files changed

+30
-16
lines changed

5 files changed

+30
-16
lines changed

.github/workflows/autodeps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
run: |
2929
python -m pip install -U pip pre-commit
3030
python -m pip install -r test-requirements.txt
31-
uv pip compile --no-strip-markers --python-version=3.8 --upgrade test-requirements.in -o test-requirements.txt
32-
uv pip compile --no-strip-markers --python-version=3.8 --upgrade docs-requirements.in -o docs-requirements.txt
31+
uv pip compile --universal --python-version=3.8 --upgrade test-requirements.in -o test-requirements.txt
32+
uv pip compile --universal --python-version=3.8 --upgrade docs-requirements.in -o docs-requirements.txt
3333
pre-commit autoupdate --jobs 0
3434
- name: Black
3535
run: |

check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ fi
7878

7979
# Check pip compile is consistent
8080
echo "::group::Pip Compile - Tests"
81-
uv pip compile --no-strip-markers --python-version=3.8 test-requirements.in -o test-requirements.txt
81+
uv pip compile --universal --python-version=3.8 test-requirements.in -o test-requirements.txt
8282
echo "::endgroup::"
8383
echo "::group::Pip Compile - Docs"
84-
uv pip compile --no-strip-markers --python-version=3.8 docs-requirements.in -o docs-requirements.txt
84+
uv pip compile --universal --python-version=3.8 docs-requirements.in -o docs-requirements.txt
8585
echo "::endgroup::"
8686

8787
if git status --porcelain | grep -q "requirements.txt"; then

docs-requirements.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile --no-strip-markers --python-version=3.8 docs-requirements.in -o docs-requirements.txt
2+
# uv pip compile --universal --python-version=3.8 docs-requirements.in -o docs-requirements.txt
33
alabaster==0.7.13
44
# via sphinx
55
attrs==23.2.0
@@ -12,12 +12,18 @@ beautifulsoup4==4.12.3
1212
# via sphinx-codeautolink
1313
certifi==2024.7.4
1414
# via requests
15-
cffi==1.16.0 ; platform_python_implementation != 'PyPy'
16-
# via cryptography
15+
cffi==1.16.0 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
16+
# via
17+
# -r docs-requirements.in
18+
# cryptography
1719
charset-normalizer==3.3.2
1820
# via requests
1921
click==8.1.7
2022
# via towncrier
23+
colorama==0.4.6 ; platform_system == 'Windows' or sys_platform == 'win32'
24+
# via
25+
# click
26+
# sphinx
2127
cryptography==42.0.8
2228
# via pyopenssl
2329
docutils==0.20.1
@@ -51,7 +57,7 @@ outcome==1.3.0.post0
5157
# via -r docs-requirements.in
5258
packaging==24.1
5359
# via sphinx
54-
pycparser==2.22 ; platform_python_implementation != 'PyPy'
60+
pycparser==2.22 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
5561
# via cffi
5662
pygments==2.18.0
5763
# via sphinx

test-requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mypy; implementation_name == "cpython"
1515
types-pyOpenSSL; implementation_name == "cpython" # and annotations
1616
ruff >= 0.4.3
1717
astor # code generation
18-
uv >= 0.2.22
18+
uv >= 0.2.24
1919
codespell
2020

2121
# https://github.com/python-trio/trio/pull/654#issuecomment-420518745

test-requirements.txt

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile --no-strip-markers --python-version=3.8 test-requirements.in -o test-requirements.txt
2+
# uv pip compile --universal --python-version=3.8 test-requirements.in -o test-requirements.txt
33
alabaster==0.7.13
44
# via sphinx
55
astor==0.8.1
@@ -18,14 +18,22 @@ black==24.4.2 ; implementation_name == 'cpython'
1818
# via -r test-requirements.in
1919
certifi==2024.7.4
2020
# via requests
21-
cffi==1.17.0rc1 ; platform_python_implementation != 'PyPy'
22-
# via cryptography
21+
cffi==1.17.0rc1 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
22+
# via
23+
# -r test-requirements.in
24+
# cryptography
2325
charset-normalizer==3.3.2
2426
# via requests
2527
click==8.1.7 ; implementation_name == 'cpython'
2628
# via black
2729
codespell==2.3.0
2830
# via -r test-requirements.in
31+
colorama==0.4.6 ; sys_platform == 'win32' or (implementation_name == 'cpython' and platform_system == 'Windows')
32+
# via
33+
# click
34+
# pylint
35+
# pytest
36+
# sphinx
2937
coverage==7.5.4
3038
# via -r test-requirements.in
3139
cryptography==42.0.8
@@ -34,7 +42,7 @@ cryptography==42.0.8
3442
# pyopenssl
3543
# trustme
3644
# types-pyopenssl
37-
dill==0.3.8 ; python_version < '3.11'
45+
dill==0.3.8
3846
# via pylint
3947
docutils==0.20.1
4048
# via sphinx
@@ -89,7 +97,7 @@ platformdirs==4.2.2
8997
# pylint
9098
pluggy==1.5.0
9199
# via pytest
92-
pycparser==2.22 ; platform_python_implementation != 'PyPy'
100+
pycparser==2.22 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
93101
# via cffi
94102
pygments==2.18.0
95103
# via sphinx
@@ -127,7 +135,7 @@ sphinxcontrib-qthelp==1.0.3
127135
# via sphinx
128136
sphinxcontrib-serializinghtml==1.1.5
129137
# via sphinx
130-
tomli==2.0.1 ; python_version < '3.11' or (python_version < '3.11' and implementation_name == 'cpython')
138+
tomli==2.0.1 ; python_version < '3.11'
131139
# via
132140
# black
133141
# mypy
@@ -156,7 +164,7 @@ typing-extensions==4.12.2
156164
# pylint
157165
urllib3==2.2.2
158166
# via requests
159-
uv==0.2.22
167+
uv==0.2.26
160168
# via -r test-requirements.in
161169
zipp==3.19.2 ; python_version < '3.10'
162170
# via importlib-metadata

0 commit comments

Comments
 (0)