We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e6ec9f + 4d42b89 commit c06fb5eCopy full SHA for c06fb5e
noxfile.py
@@ -221,10 +221,10 @@ def build_release(session):
221
222
tmp_dist_paths = (build_dir / p for p in tmp_dists)
223
session.log(f"# Copying dists from {build_dir}")
224
- shutil.rmtree('dist', ignore_errors=True) # remove empty `dist/`
225
- for dist in tmp_dist_paths:
226
- session.log(f"# Copying {dist}")
227
- shutil.copy(dist, 'dist')
+ os.makedirs('dist', exist_ok=True)
+ for dist, final in zip(tmp_dist_paths, tmp_dists):
+ session.log(f"# Copying {dist} to {final}")
+ shutil.copy(dist, final)
228
229
230
def build_dists(session):
0 commit comments