Skip to content

Commit

Permalink
Try to get build dependency compilation test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoghlan committed Jul 8, 2024
1 parent ec585c5 commit bc3f17b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 10 additions & 1 deletion tests/test_cli_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3431,7 +3431,15 @@ def test_compile_recursive_extras_build_targets(runner, tmp_path, current_resolv
"""
)
)
(tmp_path / "constraints.txt").write_text("wheel<0.43")
version_constraints = [
"setuptools<70.1.0",
"wheel<0.43",
]
constraints_file = (tmp_path / "constraints.txt")
constraints_file.write_text("\n".join(version_constraints))
env = os.environ.copy() # Copy entire env to avoid Windows compatibility issues
# Work around https://github.com/jazzband/pip-tools/pull/1681/files#r1667748889
env["PIP_CONSTRAINT"] = str(constraints_file)
out = runner.invoke(
cli,
[
Expand All @@ -3451,6 +3459,7 @@ def test_compile_recursive_extras_build_targets(runner, tmp_path, current_resolv
"--output-file",
"-",
],
env=env,
)
expected = rf"""foo[footest] @ {tmp_path.as_uri()}
small-fake-a==0.2
Expand Down

0 comments on commit bc3f17b

Please sign in to comment.