Skip to content

Commit

Permalink
Merge pull request #1102 from OZI-Project/main
Browse files Browse the repository at this point in the history
🐛(invoke): use ``--only`` to target interpreter version in cibuil…
  • Loading branch information
rjdbcm authored Sep 8, 2024
2 parents 58cbae3 + b467c71 commit 122d0d4
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 122d0d4

Please sign in to comment.