From eb0bd6fc74e5689f69059ab8c88e153dcdb43a73 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 1 Aug 2021 10:44:46 +0200 Subject: [PATCH] fix: `nox -s build` fails if `dist` folder does not exist --- noxfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/noxfile.py b/noxfile.py index b3bd19e07..b53ee041e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -29,6 +29,7 @@ def build(session: nox.Session) -> str: session.run("python", "-m", "build", "--outdir", tmpdir, env=BUILD_ENV) (wheel_path,) = Path(tmpdir).glob("*.whl") (sdist_path,) = Path(tmpdir).glob("*.tar.gz") + Path("dist").mkdir(exist_ok=True) wheel_path.rename(f"dist/{wheel_path.name}") sdist_path.rename(f"dist/{sdist_path.name}") built = wheel_path.name