Skip to content

Commit bf406bf

Browse files
authored
fix: nox -s build fails if dist folder does not exist (#176)
1 parent 7a69014 commit bf406bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def build(session: nox.Session) -> str:
2929
session.run("python", "-m", "build", "--outdir", tmpdir, env=BUILD_ENV)
3030
(wheel_path,) = Path(tmpdir).glob("*.whl")
3131
(sdist_path,) = Path(tmpdir).glob("*.tar.gz")
32+
Path("dist").mkdir(exist_ok=True)
3233
wheel_path.rename(f"dist/{wheel_path.name}")
3334
sdist_path.rename(f"dist/{sdist_path.name}")
3435
built = wheel_path.name

0 commit comments

Comments
 (0)