Fix copying distribution files from checkout

This commit is contained in:
Pradyun Gedam 2020-04-21 07:49:09 +05:30
parent 814c54f5d7
commit 4d42b89713
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
1 changed files with 4 additions and 4 deletions

View File

@ -221,10 +221,10 @@ def build_release(session):
tmp_dist_paths = (build_dir / p for p in tmp_dists)
session.log(f"# Copying dists from {build_dir}")
shutil.rmtree('dist', ignore_errors=True) # remove empty `dist/`
for dist in tmp_dist_paths:
session.log(f"# Copying {dist}")
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)
def build_dists(session):