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

Use --universal flag with uv pip compile #3032

Merged
merged 4 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
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
uv pip compile --universal --no-strip-markers --python-version=3.8 --upgrade test-requirements.in -o test-requirements.txt
uv pip compile --universal --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"
uv pip compile --no-strip-markers --python-version=3.8 test-requirements.in -o test-requirements.txt
uv pip compile --universal --no-strip-markers --python-version=3.8 test-requirements.in -o test-requirements.txt
CoolCat467 marked this conversation as resolved.
Show resolved Hide resolved
echo "::endgroup::"
echo "::group::Pip Compile - Docs"
uv pip compile --no-strip-markers --python-version=3.8 docs-requirements.in -o docs-requirements.txt
uv pip compile --universal --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
14 changes: 10 additions & 4 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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
# uv pip compile --universal --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 @@ -12,12 +12,18 @@ beautifulsoup4==4.12.3
# via sphinx-codeautolink
certifi==2024.7.4
# via requests
cffi==1.16.0 ; platform_python_implementation != 'PyPy'
# via cryptography
cffi==1.16.0 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
# via
# -r docs-requirements.in
# cryptography
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via towncrier
colorama==0.4.6 ; platform_system == 'Windows' or sys_platform == 'win32'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

# via
# click
# sphinx
cryptography==42.0.8
# via pyopenssl
docutils==0.20.1
Expand Down Expand Up @@ -51,7 +57,7 @@ outcome==1.3.0.post0
# via -r docs-requirements.in
packaging==24.1
# via sphinx
pycparser==2.22 ; platform_python_implementation != 'PyPy'
pycparser==2.22 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
# via cffi
pygments==2.18.0
# via sphinx
Expand Down
18 changes: 13 additions & 5 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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
# uv pip compile --universal --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,14 +18,22 @@ black==24.4.2 ; implementation_name == 'cpython'
# via -r test-requirements.in
certifi==2024.7.4
# via requests
cffi==1.17.0rc1 ; platform_python_implementation != 'PyPy'
# via cryptography
cffi==1.17.0rc1 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
# via
# -r test-requirements.in
# cryptography
charset-normalizer==3.3.2
# via requests
click==8.1.7 ; implementation_name == 'cpython'
# via black
codespell==2.3.0
# via -r test-requirements.in
colorama==0.4.6 ; sys_platform == 'win32' or (implementation_name == 'cpython' and platform_system == 'Windows')
# via
# click
# pylint
# pytest
# sphinx
coverage==7.5.4
# via -r test-requirements.in
cryptography==42.0.8
Expand All @@ -34,7 +42,7 @@ cryptography==42.0.8
# pyopenssl
# trustme
# types-pyopenssl
dill==0.3.8 ; python_version < '3.11'
dill==0.3.8
# via pylint
docutils==0.20.1
# via sphinx
Expand Down Expand Up @@ -89,7 +97,7 @@ platformdirs==4.2.2
# pylint
pluggy==1.5.0
# via pytest
pycparser==2.22 ; platform_python_implementation != 'PyPy'
pycparser==2.22 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
# via cffi
pygments==2.18.0
# via sphinx
Expand Down
Loading