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 93bb608 commit fb6489a
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 @@ -21,7 +21,7 @@ def install_with_constraints(session: Session, *args: str, **kwargs: Any) -> Non
"export",
"--with",
"dev",
"--format=requirements.txt",
"--format=constraints.txt",
"--without-hashes",
f"--output={requirements.name}",
external=True,
Expand Down Expand Up @@ -80,7 +80,7 @@ def safety(session: Session) -> None:
"export",
"--with",
"dev",
"--format=requirements.txt",
"--format=constraints.txt",
"--without-hashes",
f"--output={requirements.name}",
external=True,
Expand Down

0 comments on commit fb6489a

Please sign in to comment.