Skip to content

Commit

Permalink
Update to cibuildwheel 2.17
Browse files Browse the repository at this point in the history
cibuildwheel 2.17 doesn't need the "--platform" flag any more for
local builds, so get rid of that for simpler code
(pypa/cibuildwheel#1727).
  • Loading branch information
imphil committed Mar 13, 2024
1 parent fb75b7e commit 65ffd38
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import glob
import os
import shutil
import sys
from contextlib import suppress
from pathlib import Path
from typing import Dict, List, Optional, Tuple
Expand All @@ -27,7 +26,7 @@
]

# Version of the cibuildwheel package used to build wheels.
cibuildwheel_version = "2.15.0"
cibuildwheel_version = "2.17.0"

#
# Helpers for use within this file.
Expand Down Expand Up @@ -370,29 +369,14 @@ def release_build_bdist(session: nox.Session) -> None:
# Pin a version to ensure reproducible builds.
session.run("pip", "install", f"cibuildwheel=={cibuildwheel_version}")

# cibuildwheel only auto-detects the platform if it runs on a CI server.
# Do the auto-detect manually to enable local runs.
if sys.platform.startswith("linux"):
platform = "linux"
elif sys.platform == "darwin":
platform = "macos"
elif sys.platform == "win32":
platform = "windows"
else:
session.error(f"Unknown platform: {sys.platform!r}")

session.log("Building binary distribution (wheels)")
session.run(
"cibuildwheel",
"--platform",
platform,
"--output-dir",
dist_dir,
)

session.log(
f"Binary distribution in release mode for {platform!r} built into {dist_dir!r}"
)
session.log(f"Binary distribution in release mode built into {dist_dir!r}")


@nox.session
Expand Down

0 comments on commit 65ffd38

Please sign in to comment.