Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 set env var for CIBW build selection #1103

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading