Skip to content

Commit

Permalink
Merge pull request #1103 from OZI-Project/main
Browse files Browse the repository at this point in the history
🐛 set env var for CIBW build selection
  • Loading branch information
rjdbcm authored Sep 8, 2024
2 parents 3df81b1 + 5e0ffb6 commit 9d6adc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ozi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import annotations

import inspect
import os
import sys
from pathlib import Path
from typing import TYPE_CHECKING
Expand Down Expand Up @@ -94,7 +95,7 @@ def release(
ozi: bool = False,
) -> None:
"""Create releases for the current interpreter."""
version = f'cp{sys.version_info.major}{sys.version_info.minor}'
os.environ['CIBW_BUILD'] = 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 @@ -103,7 +104,7 @@ def release(
if sign:
c.run('sigstore sign --output-dir=sig dist/*.tar.gz')
ext_wheel = (
c.run(f'cibuildwheel --prerelease-pythons --only={version} --output-dir dist .')
c.run(f'cibuildwheel --prerelease-pythons --output-dir dist .')
if cibuildwheel
else None
)
Expand Down

0 comments on commit 9d6adc6

Please sign in to comment.