Skip to content

Commit

Permalink
🔨 add --ozi option for building OZI itself
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Sep 8, 2024
1 parent 7fb56fa commit 2c2a961
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ozi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ def release(
draft: bool = False,
cibuildwheel: bool = True,
sign: bool = False,
ozi: bool = False,
) -> None:
"""Create releases for the current interpreter."""
draft_ = setup(c, suite='dist', draft=draft)
draft_ = setup(c, suite='dist', draft=draft, ozi=ozi)
if draft_ and draft_.exited != 0:
return print('No release drafted.', file=sys.stderr)
if sdist:
Expand All @@ -118,8 +119,9 @@ def provenance(c: Context) -> None:


@task
def publish(c: Context) -> None:
def publish(c: Context, ozi: bool = False) -> None:
"""Publishes a release tag"""
setup(c, suite='dist', ozi=ozi)
c.run('psr publish')
c.run('twine check dist/*')
c.run('twine upload dist/*')

0 comments on commit 2c2a961

Please sign in to comment.