Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions publish_python/artifact/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def create_wheel(*, config):
print('\n-- Building sdist and bdist_wheel artifacts of package '
f"'{pkg.name}' {pkg.version} ...")

cmd = [sys.executable, 'setup.py', 'sdist', 'bdist_wheel']
cmd = [sys.executable, '-m', 'build']
print('$', *cmd)
subprocess.check_call(cmd)

tarball = f'dist/{pkg.name}-{pkg.version}.tar.gz'
tarball = f'dist/{pkg.name.replace("-", "_")}-{pkg.version}.tar.gz'
assert os.path.exists(tarball), \
f"Failed to generate source tarball '{tarball}'"

Expand Down