Skip to content

Commit

Permalink
poetry: Export dependencies in new constraints format
Browse files Browse the repository at this point in the history
The format 'requirements.txt' is no longer compatible with pip contraints.
This change adapts the poetry export call to use the new
'constraints.txt' format.

see also: python-poetry/poetry-plugin-export#125
  • Loading branch information
pziggo committed Jan 19, 2023
1 parent a5467ae commit 5531b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def install_with_constraints(session: Session, *args: str, **kwargs: Any) -> Non
"poetry",
"export",
"--with", "dev",
"--format=requirements.txt",
"--format=constraints.txt",
"--without-hashes",
f"--output={requirements.name}",
external=True,
Expand Down Expand Up @@ -78,7 +78,7 @@ def safety(session: Session) -> None:
"poetry",
"export",
"--with", "dev",
"--format=requirements.txt",
"--format=constraints.txt",
"--without-hashes",
f"--output={requirements.name}",
external=True,
Expand Down

0 comments on commit 5531b03

Please sign in to comment.