Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to uv pip compile #2958

Merged
merged 35 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f71fe81
Switch to `uv pip compile`
CoolCat467 Feb 16, 2024
6738ce4
Apply `uv`'s changes
CoolCat467 Feb 16, 2024
76d8326
Fix two lines I missed
CoolCat467 Feb 16, 2024
9f597e0
Use `uv pip compile` for autodeps as well
CoolCat467 Feb 16, 2024
a20b4ce
Move uv to test-requirements and fix autodeps updateing
CoolCat467 Feb 16, 2024
6c8d62b
Bootstrap `uv` install
CoolCat467 Feb 16, 2024
876d6a5
Update `test-requrements.txt`
CoolCat467 Feb 16, 2024
69b5868
Remove manual pip install uv from autodeps as well
CoolCat467 Feb 16, 2024
7f211e5
Update uv version to 0.1.3
CoolCat467 Feb 17, 2024
a0a8b5a
Merge branch 'master' into pip-compile-switch-uv
CoolCat467 Feb 20, 2024
4225702
Update `uv` to `0.1.6`
CoolCat467 Feb 22, 2024
6747417
Apply `uv`'s changes
CoolCat467 Feb 22, 2024
383729f
Attempt not including version specifier
CoolCat467 Feb 22, 2024
72e3fbd
Merge branch 'master' into pip-compile-switch-uv
CoolCat467 Feb 22, 2024
e5277f0
Revert "Attempt not including version specifier"
CoolCat467 Feb 22, 2024
d75ef85
Update `uv` to `0.1.11`
CoolCat467 Feb 27, 2024
283e27b
Merge branch 'master' into pip-compile-switch-uv
CoolCat467 Feb 29, 2024
148a995
Merge branch 'master' into pip-compile-switch-uv
CoolCat467 Mar 3, 2024
1b95b71
Update to `uv 0.1.13`
CoolCat467 Mar 3, 2024
7759de8
Update to uv to 0.1.17
CoolCat467 Mar 11, 2024
199160e
Merge branch 'python-trio:master' into pip-compile-switch-uv
CoolCat467 Mar 11, 2024
bb73318
Merge branch 'master' into pip-compile-switch-uv
CoolCat467 Mar 29, 2024
42eceae
Update to uv `0.1.26`
CoolCat467 Mar 29, 2024
4f1438d
Merge branch 'master' into pip-compile-switch-uv
CoolCat467 Apr 13, 2024
1748ca9
Fix requirements files
CoolCat467 Apr 13, 2024
d1939e4
Merge branch 'master' into pip-compile-switch-uv
CoolCat467 Jun 26, 2024
db7a7fe
Update dependencies with new version of uv
CoolCat467 Jun 26, 2024
2c15691
Use latest commit of uv with `--no-strip-markers` support
CoolCat467 Jun 26, 2024
3a3778c
Require future version of uv that does not currently exist
CoolCat467 Jun 26, 2024
7255bd8
Update to uv `0.2.17`
CoolCat467 Jun 27, 2024
1b51930
Merge branch 'master' into pip-compile-switch-uv
CoolCat467 Jun 27, 2024
d51aae3
Fix cffi
CoolCat467 Jun 27, 2024
572891a
Merge branch 'main' into pip-compile-switch-uv
CoolCat467 Jul 7, 2024
dd5aa1a
Apply suggestions from code review
CoolCat467 Jul 7, 2024
96446a5
Trigger CI
CoolCat467 Jul 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/autodeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
run: |
python -m pip install -U pip pre-commit
python -m pip install -r test-requirements.txt
pip-compile -U test-requirements.in
pip-compile -U docs-requirements.in
uv pip compile --no-strip-markers --python-version=3.8 --upgrade test-requirements.in -o test-requirements.txt
uv pip compile --no-strip-markers --python-version=3.8 --upgrade docs-requirements.in -o docs-requirements.txt
pre-commit autoupdate --jobs 0
- name: Black
run: |
Expand Down
4 changes: 2 additions & 2 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ fi

# Check pip compile is consistent
echo "::group::Pip Compile - Tests"
pip-compile test-requirements.in
uv pip compile --no-strip-markers --python-version=3.8 test-requirements.in -o test-requirements.txt
echo "::endgroup::"
echo "::group::Pip Compile - Docs"
pip-compile docs-requirements.in
uv pip compile --no-strip-markers --python-version=3.8 docs-requirements.in -o docs-requirements.txt
echo "::endgroup::"

if git status --porcelain | grep -q "requirements.txt"; then
Expand Down
22 changes: 9 additions & 13 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile docs-requirements.in
#
# This file was autogenerated by uv via the following command:
# uv pip compile --no-strip-markers --python-version=3.8 docs-requirements.in -o docs-requirements.txt
alabaster==0.7.13
# via sphinx
attrs==23.2.0
Expand All @@ -16,7 +12,7 @@ beautifulsoup4==4.12.3
# via sphinx-codeautolink
certifi==2024.7.4
# via requests
cffi==1.16.0
cffi==1.16.0 ; platform_python_implementation != 'PyPy'
# via cryptography
charset-normalizer==3.3.2
# via requests
Expand All @@ -38,9 +34,9 @@ imagesize==1.4.1
# via sphinx
immutables==0.20
# via -r docs-requirements.in
importlib-metadata==8.0.0
importlib-metadata==8.0.0 ; python_version < '3.10'
# via sphinx
importlib-resources==6.4.0
importlib-resources==6.4.0 ; python_version < '3.10'
# via towncrier
incremental==22.10.0
# via towncrier
Expand All @@ -55,13 +51,13 @@ outcome==1.3.0.post0
# via -r docs-requirements.in
packaging==24.1
CoolCat467 marked this conversation as resolved.
Show resolved Hide resolved
# via sphinx
pycparser==2.22
pycparser==2.22 ; platform_python_implementation != 'PyPy'
# via cffi
pygments==2.18.0
# via sphinx
pyopenssl==24.1.0
# via -r docs-requirements.in
pytz==2024.1
pytz==2024.1 ; python_version < '3.9'
# via babel
requests==2.32.3
# via sphinx
Expand Down Expand Up @@ -106,13 +102,13 @@ sphinxcontrib-serializinghtml==1.1.5
# via sphinx
sphinxcontrib-trio==1.1.2
# via -r docs-requirements.in
tomli==2.0.1
tomli==2.0.1 ; python_version < '3.11'
# via towncrier
towncrier==23.11.0
# via -r docs-requirements.in
urllib3==2.2.2
# via requests
zipp==3.19.2
zipp==3.19.2 ; python_version < '3.10'
# via
# importlib-metadata
# importlib-resources
2 changes: 1 addition & 1 deletion test-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mypy; implementation_name == "cpython"
types-pyOpenSSL; implementation_name == "cpython" # and annotations
ruff >= 0.4.3
astor # code generation
pip-tools >= 6.13.0
uv >= 0.2.22
codespell

# https://github.com/python-trio/trio/pull/654#issuecomment-420518745
Expand Down
67 changes: 22 additions & 45 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile test-requirements.in
#
# This file was autogenerated by uv via the following command:
# uv pip compile --no-strip-markers --python-version=3.8 test-requirements.in -o test-requirements.txt
alabaster==0.7.13
# via sphinx
astor==0.8.1
Expand All @@ -18,20 +14,16 @@ attrs==23.2.0
# outcome
babel==2.15.0
# via sphinx
black==24.4.2 ; implementation_name == "cpython"
black==24.4.2 ; implementation_name == 'cpython'
# via -r test-requirements.in
CoolCat467 marked this conversation as resolved.
Show resolved Hide resolved
build==1.2.1
# via pip-tools
certifi==2024.7.4
# via requests
cffi==1.17.0rc1
cffi==1.17.0rc1 ; platform_python_implementation != 'PyPy'
CoolCat467 marked this conversation as resolved.
Show resolved Hide resolved
# via cryptography
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via
# black
# pip-tools
click==8.1.7 ; implementation_name == 'cpython'
# via black
codespell==2.3.0
# via -r test-requirements.in
coverage==7.5.4
Expand All @@ -42,11 +34,11 @@ cryptography==42.0.8
# pyopenssl
# trustme
# types-pyopenssl
dill==0.3.8
dill==0.3.8 ; python_version < '3.11'
# via pylint
docutils==0.20.1
# via sphinx
exceptiongroup==1.2.1 ; python_version < "3.11"
exceptiongroup==1.2.1 ; python_version < '3.11'
# via
# -r test-requirements.in
# pytest
Expand All @@ -57,10 +49,8 @@ idna==3.7
# trustme
imagesize==1.4.1
# via sphinx
importlib-metadata==8.0.0
# via
# build
# sphinx
importlib-metadata==8.0.0 ; python_version < '3.10'
# via sphinx
iniconfig==2.0.0
# via pytest
isort==5.13.2
Expand All @@ -73,9 +63,9 @@ markupsafe==2.1.5
# via jinja2
mccabe==0.7.0
# via pylint
mypy==1.10.1 ; implementation_name == "cpython"
mypy==1.10.1 ; implementation_name == 'cpython'
# via -r test-requirements.in
mypy-extensions==1.0.0 ; implementation_name == "cpython"
mypy-extensions==1.0.0 ; implementation_name == 'cpython'
# via
# -r test-requirements.in
# black
Expand All @@ -87,38 +77,31 @@ outcome==1.3.0.post0
packaging==24.1
# via
# black
# build
# pytest
# sphinx
parso==0.8.4
# via jedi
pathspec==0.12.1
pathspec==0.12.1 ; implementation_name == 'cpython'
# via black
pip-tools==7.4.1
# via -r test-requirements.in
platformdirs==4.2.2
CoolCat467 marked this conversation as resolved.
Show resolved Hide resolved
# via
# black
# pylint
pluggy==1.5.0
# via pytest
pycparser==2.22
pycparser==2.22 ; platform_python_implementation != 'PyPy'
# via cffi
pygments==2.18.0
# via sphinx
pylint==3.2.5
# via -r test-requirements.in
pyopenssl==24.1.0
# via -r test-requirements.in
pyproject-hooks==1.1.0
# via
# build
# pip-tools
pyright==1.1.370
# via -r test-requirements.in
pytest==8.2.2
# via -r test-requirements.in
pytz==2024.1
pytz==2024.1 ; python_version < '3.9'
# via babel
requests==2.32.3
# via sphinx
Expand All @@ -144,27 +127,25 @@ sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
tomli==2.0.1
tomli==2.0.1 ; python_version < '3.11' or (python_version < '3.11' and implementation_name == 'cpython')
# via
A5rocks marked this conversation as resolved.
Show resolved Hide resolved
# black
# build
# mypy
# pip-tools
# pylint
# pytest
tomlkit==0.12.5
# via pylint
trustme==1.1.0
# via -r test-requirements.in
types-cffi==1.16.0.20240331 ; implementation_name == "cpython"
types-cffi==1.16.0.20240331 ; implementation_name == 'cpython'
# via
# -r test-requirements.in
# types-pyopenssl
types-docutils==0.21.0.20240704
# via -r test-requirements.in
types-pyopenssl==24.1.0.20240425 ; implementation_name == "cpython"
types-pyopenssl==24.1.0.20240425 ; implementation_name == 'cpython'
# via -r test-requirements.in
types-setuptools==70.2.0.20240704
types-setuptools==70.2.0.20240704 ; implementation_name == 'cpython'
# via types-cffi
typing-extensions==4.12.2
# via
Expand All @@ -175,11 +156,7 @@ typing-extensions==4.12.2
# pylint
urllib3==2.2.2
# via requests
wheel==0.43.0
# via pip-tools
zipp==3.19.2
uv==0.2.22
# via -r test-requirements.in
zipp==3.19.2 ; python_version < '3.10'
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
Loading