Skip to content

Commit

Permalink
Fix CI. (#2128)
Browse files Browse the repository at this point in the history
The April 19th release of virtualenv 20.22 breaks the resolve of
poetry 1.3.2.
  • Loading branch information
jsirois committed Apr 21, 2023
1 parent ab8ee66 commit ff6ac43
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/integration/test_issue_2038.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@
def test_wheel_file_url_dep(tmpdir):
# type: (Any) -> None

constraints = os.path.join(str(tmpdir), "constraints.txt")
with open(constraints, "w") as fp:
# The 20.22 release introduces a change that breaks resolution od poetry 1.3.2; so we pin
# low.
fp.write("virtualenv<20.22")

poetry = os.path.join(str(tmpdir), "poetry.pex")
run_pex_command(args=["poetry==1.3.2", "-c", "poetry", "-o", poetry]).assert_success()
run_pex_command(
args=["poetry==1.3.2", "--constraints", constraints, "-c", "poetry", "-o", poetry]
).assert_success()

corelibrary = os.path.join(str(tmpdir), "corelibrary")
touch(os.path.join(corelibrary, "README.md"))
Expand Down

0 comments on commit ff6ac43

Please sign in to comment.