Skip to content

Commit

Permalink
🔨(invoke): dont sign release by default
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <ozi.project@outlook.com>
  • Loading branch information
rjdbcm committed Sep 8, 2024
1 parent c22767a commit 3f2c641
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ozi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,25 @@ def release(
sdist: bool = False,
draft: bool = False,
cibuildwheel: bool = True,
sign: bool = False,
) -> None:
"""Create releases for the current interpreter."""
draft_ = setup(c, suite='dist', draft=draft)
if draft_ and draft_.exited != 0:
return print('No release drafted.', file=sys.stderr)
if sdist:
c.run('python -m build --sdist')
c.run('sigstore sign --output-dir=sig dist/*.tar.gz')
if sign:
c.run('sigstore sign --output-dir=sig dist/*.tar.gz')
ext_wheel = (
c.run('cibuildwheel --prerelease-pythons --output-dir dist .')
if cibuildwheel
else None
)
if (ext_wheel and ext_wheel.exited != 0) or cibuildwheel:
c.run('python -m build --wheel')
c.run('sigstore sign --output-dir=sig dist/*.whl')
if sign:
c.run('sigstore sign --output-dir=sig dist/*.whl')


@task
Expand Down

0 comments on commit 3f2c641

Please sign in to comment.