Skip to content

Commit

Permalink
🐛(invoke): use --only to target interpreter version in cibuildwhe…
Browse files Browse the repository at this point in the history
…el release

Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Sep 8, 2024
1 parent b31a9d2 commit b467c71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ozi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def release(
ozi: bool = False,
) -> None:
"""Create releases for the current interpreter."""
version = f'cp{sys.version_info.major}{sys.version_info.minor}'
draft_ = setup(c, suite='dist', draft=draft, ozi=ozi)
if draft_ and draft_.exited != 0:
return print('No release drafted.', file=sys.stderr)
Expand All @@ -102,7 +103,7 @@ def release(
if sign:
c.run('sigstore sign --output-dir=sig dist/*.tar.gz')
ext_wheel = (
c.run('cibuildwheel --prerelease-pythons --output-dir dist .')
c.run(f'cibuildwheel --prerelease-pythons --only={version} --output-dir dist .')
if cibuildwheel
else None
)
Expand Down

0 comments on commit b467c71

Please sign in to comment.