Skip to content

Commit

Permalink
chore: use UV_CUSTOM_COMPILE_COMMAND
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Mar 21, 2024
1 parent 4514b43 commit bb1f0d2
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cibuildwheel/resources/constraints-python310.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 --python-version=3.10 cibuildwheel/resources/constraints.in --output-file=cibuildwheel/resources/constraints-python310.txt
# nox -s update_constraints
build==1.1.1
delocate==0.10.7
distlib==0.3.8
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/resources/constraints-python311.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 --python-version=3.11 cibuildwheel/resources/constraints.in --output-file=cibuildwheel/resources/constraints-python311.txt
# nox -s update_constraints
build==1.1.1
delocate==0.10.7
distlib==0.3.8
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/resources/constraints-python312.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 --python-version=3.12 cibuildwheel/resources/constraints.in --output-file=cibuildwheel/resources/constraints-python312.txt
# nox -s update_constraints
build==1.1.1
delocate==0.10.7
distlib==0.3.8
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/resources/constraints-python37.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 --python-version=3.7 cibuildwheel/resources/constraints.in --output-file=cibuildwheel/resources/constraints-python37.txt
# nox -s update_constraints
build==1.1.1
delocate==0.10.7
distlib==0.3.8
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/resources/constraints-python38.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 --python-version=3.8 cibuildwheel/resources/constraints.in --output-file=cibuildwheel/resources/constraints-python38.txt
# nox -s update_constraints
build==1.1.1
delocate==0.10.7
distlib==0.3.8
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/resources/constraints-python39.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 --python-version=3.9 cibuildwheel/resources/constraints.in --output-file=cibuildwheel/resources/constraints-python39.txt
# nox -s update_constraints
build==1.1.1
delocate==0.10.7
distlib==0.3.8
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/resources/constraints.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 --python-version=3.12 cibuildwheel/resources/constraints.in --output-file=cibuildwheel/resources/constraints-python312.txt
# nox -s update_constraints
build==1.1.1
delocate==0.10.7
distlib==0.3.8
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ def update_constraints(session: nox.Session) -> None:
"""

if getattr(session.virtualenv, "venv_backend", "") != "uv":
session.install("uv")
session.install("uv>=0.1.23")

for minor_version in range(7, 13):
python_version = f"3.{minor_version}"
env = os.environ.copy()
# CUSTOM_COMPILE_COMMAND is a pip-compile option that tells users how to
# regenerate the constraints files
env["CUSTOM_COMPILE_COMMAND"] = f"nox -s {session.name}"
env["UV_CUSTOM_COMPILE_COMMAND"] = f"nox -s {session.name}"
session.run(
"uv",
"pip",
Expand Down

0 comments on commit bb1f0d2

Please sign in to comment.