Skip to content

Commit

Permalink
0.0.21: normalize project name for filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
rjdbcm committed Jun 16, 2024
1 parent 7c849e2 commit 2cbbb69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ozi_build/buildapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ def build_sdist(sdist_directory, config_settings=None):
fileobj=gz,
format=tarfile.PAX_FORMAT,
) as tf:
tf.add(tf_dir, recursive=True)
tf.add(tf_dir, arcname='{}-{}'.format(config['module'].replace(
'.', '_', 1).replace('.', '').replace('-', '_', 1).replace('-', '_'), config['version']), recursive=True)
pkginfo_path = Path(installdir) / tf_dir / 'PKG-INFO'
if not pkginfo_path.exists():
with open(pkginfo_path, mode='w') as fpkginfo:
Expand Down

0 comments on commit 2cbbb69

Please sign in to comment.