Skip to content

Commit

Permalink
Work around a Poetry bug
Browse files Browse the repository at this point in the history
Poetry does not include the src directory in the sdist archive, if a parent
directory of the project also contains a Poetry project. This is the case
because pytest-datadir copies the example project to a temporary directory,
and nox_poetry sets TMPDIR to a location under the session directory, via
session.create_tmp().
  • Loading branch information
cjolowicz committed Dec 2, 2020
1 parent bad7fb5 commit 8713037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def tests(session: Session) -> None:
session.install("dataclasses")

try:
session.env.pop("TMPDIR", None)
session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)
finally:
if session.interactive:
Expand Down

0 comments on commit 8713037

Please sign in to comment.