Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf078b0954 | ||
|
|
b9f1942e8d | ||
|
|
2d6c328457 | ||
|
|
0e8f4f777d | ||
|
|
7e099863cd |
@@ -62,14 +62,15 @@ repos:
|
|||||||
name: Disallow improper capitalization
|
name: Disallow improper capitalization
|
||||||
language: pygrep
|
language: pygrep
|
||||||
entry: PyBind|Numpy|Cmake|Github|PyTest
|
entry: PyBind|Numpy|Cmake|Github|PyTest
|
||||||
types:
|
types: [markdown]
|
||||||
- markdown
|
|
||||||
exclude: ^docs/working-examples\.md$ # Autogenerated
|
exclude: ^docs/working-examples\.md$ # Autogenerated
|
||||||
- id: update-readme-changelog
|
- id: cog
|
||||||
name: Update README changelog
|
name: Cog the README
|
||||||
language: python
|
language: python
|
||||||
entry: bin/update_readme_changelog.py
|
pass_filenames: false
|
||||||
files: ^docs/changelog.md$
|
entry: cog -c -P -r -I ./bin README.md
|
||||||
|
files: '^(README\.md|docs/changelog\.md|docs/options\.md|bin/readme.*)$'
|
||||||
|
additional_dependencies: [cogapp]
|
||||||
|
|
||||||
- repo: https://github.com/codespell-project/codespell
|
- repo: https://github.com/codespell-project/codespell
|
||||||
rev: v2.4.1
|
rev: v2.4.1
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
|
||||||
- name: Install cibuildwheel
|
- name: Install cibuildwheel
|
||||||
run: python -m pip install cibuildwheel==3.0.0b3
|
run: python -m pip install cibuildwheel==3.0.0b4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: python -m cibuildwheel --output-dir wheelhouse
|
run: python -m cibuildwheel --output-dir wheelhouse
|
||||||
@@ -124,35 +124,47 @@ The following diagram summarises the steps that cibuildwheel takes on each platf
|
|||||||
|
|
||||||
<sup>Explore an interactive version of this diagram [in the docs](https://cibuildwheel.pypa.io/en/stable/#how-it-works).</sup>
|
<sup>Explore an interactive version of this diagram [in the docs](https://cibuildwheel.pypa.io/en/stable/#how-it-works).</sup>
|
||||||
|
|
||||||
Options
|
|
||||||
-------
|
<!--[[[cog from readme_options_table import get_table; print(get_table()) ]]]-->
|
||||||
|
|
||||||
|
<!-- This table is auto-generated from docs/options.md by bin/readme_options_table.py -->
|
||||||
|
|
||||||
| | Option | Description |
|
| | Option | Description |
|
||||||
|---|--------|-------------|
|
|---|---|---|
|
||||||
| **Build selection** | [`CIBW_PLATFORM`](https://cibuildwheel.pypa.io/en/stable/options/#platform) | Override the auto-detected target platform |
|
| **Build selection** | [`platform`](https://cibuildwheel.pypa.io/en/stable/options/#platform) | Override the auto-detected target platform |
|
||||||
| | [`CIBW_BUILD`](https://cibuildwheel.pypa.io/en/stable/options/#build-skip) <br> [`CIBW_SKIP`](https://cibuildwheel.pypa.io/en/stable/options/#build-skip) | Choose the Python versions to build |
|
| | [`build`<br>`skip`](https://cibuildwheel.pypa.io/en/stable/options/#build-skip) | Choose the Python versions to build |
|
||||||
| | [`CIBW_ARCHS`](https://cibuildwheel.pypa.io/en/stable/options/#archs) | Change the architectures built on your machine by default. |
|
| | [`archs`](https://cibuildwheel.pypa.io/en/stable/options/#archs) | Change the architectures built on your machine by default. |
|
||||||
| | [`CIBW_PROJECT_REQUIRES_PYTHON`](https://cibuildwheel.pypa.io/en/stable/options/#requires-python) | Manually set the Python compatibility of your project |
|
| | [`project-requires-python`](https://cibuildwheel.pypa.io/en/stable/options/#requires-python) | Manually set the Python compatibility of your project |
|
||||||
| | [`CIBW_PRERELEASE_PYTHONS`](https://cibuildwheel.pypa.io/en/stable/options/#prerelease-pythons) | Enable building with pre-release versions of Python if available |
|
| | [`enable`](https://cibuildwheel.pypa.io/en/stable/options/#enable) | Enable building with extra categories of selectors present. |
|
||||||
| **Build customization** | [`CIBW_BUILD_FRONTEND`](https://cibuildwheel.pypa.io/en/stable/options/#build-frontend) | Set the tool to use to build, either "pip" (default for now) or "build" |
|
| | [`allow-empty`](https://cibuildwheel.pypa.io/en/stable/options/#allow-empty) | Suppress the error code if no wheels match the specified build identifiers |
|
||||||
| | [`CIBW_ENVIRONMENT`](https://cibuildwheel.pypa.io/en/stable/options/#environment) | Set environment variables needed during the build |
|
| **Build customization** | [`build-frontend`](https://cibuildwheel.pypa.io/en/stable/options/#build-frontend) | Set the tool to use to build, either "build" (default), "build\[uv\]", or "pip" |
|
||||||
| | [`CIBW_ENVIRONMENT_PASS_LINUX`](https://cibuildwheel.pypa.io/en/stable/options/#environment-pass) | Set environment variables on the host to pass-through to the container during the build. |
|
| | [`config-settings`](https://cibuildwheel.pypa.io/en/stable/options/#config-settings) | Specify config-settings for the build backend. |
|
||||||
| | [`CIBW_BEFORE_ALL`](https://cibuildwheel.pypa.io/en/stable/options/#before-all) | Execute a shell command on the build system before any wheels are built. |
|
| | [`environment`](https://cibuildwheel.pypa.io/en/stable/options/#environment) | Set environment variables |
|
||||||
| | [`CIBW_BEFORE_BUILD`](https://cibuildwheel.pypa.io/en/stable/options/#before-build) | Execute a shell command preparing each wheel's build |
|
| | [`environment-pass`](https://cibuildwheel.pypa.io/en/stable/options/#environment-pass) | Set environment variables on the host to pass-through to the container. |
|
||||||
| | [`CIBW_XBUILD_TOOLS`](https://cibuildwheel.pypa.io/en/stable/options/#xbuild-tools) | Binaries on the path that should be included in an isolated cross-build environment. |
|
| | [`before-all`](https://cibuildwheel.pypa.io/en/stable/options/#before-all) | Execute a shell command on the build system before any wheels are built. |
|
||||||
| | [`CIBW_REPAIR_WHEEL_COMMAND`](https://cibuildwheel.pypa.io/en/stable/options/#repair-wheel-command) | Execute a shell command to repair each built wheel |
|
| | [`before-build`](https://cibuildwheel.pypa.io/en/stable/options/#before-build) | Execute a shell command preparing each wheel's build |
|
||||||
| | [`CIBW_MANYLINUX_*_IMAGE`<br/>`CIBW_MUSLLINUX_*_IMAGE`](https://cibuildwheel.pypa.io/en/stable/options/#linux-image) | Specify alternative manylinux / musllinux Docker images |
|
| | [`xbuild-tools`](https://cibuildwheel.pypa.io/en/stable/options/#xbuild-tools) | Binaries on the path that should be included in an isolated cross-build environment. |
|
||||||
| | [`CIBW_CONTAINER_ENGINE`](https://cibuildwheel.pypa.io/en/stable/options/#container-engine) | Specify which container engine to use when building Linux wheels |
|
| | [`repair-wheel-command`](https://cibuildwheel.pypa.io/en/stable/options/#repair-wheel-command) | Execute a shell command to repair each built wheel |
|
||||||
| | [`CIBW_DEPENDENCY_VERSIONS`](https://cibuildwheel.pypa.io/en/stable/options/#dependency-versions) | Specify how cibuildwheel controls the versions of the tools it uses |
|
| | [`manylinux-*-image`<br>`musllinux-*-image`](https://cibuildwheel.pypa.io/en/stable/options/#linux-image) | Specify manylinux / musllinux container images |
|
||||||
| **Testing** | [`CIBW_TEST_COMMAND`](https://cibuildwheel.pypa.io/en/stable/options/#test-command) | Execute a shell command to test each built wheel |
|
| | [`container-engine`](https://cibuildwheel.pypa.io/en/stable/options/#container-engine) | Specify the container engine to use when building Linux wheels |
|
||||||
| | [`CIBW_BEFORE_TEST`](https://cibuildwheel.pypa.io/en/stable/options/#before-test) | Execute a shell command before testing each wheel |
|
| | [`dependency-versions`](https://cibuildwheel.pypa.io/en/stable/options/#dependency-versions) | Control the versions of the tools cibuildwheel uses |
|
||||||
| | [`CIBW_TEST_SOURCES`](https://cibuildwheel.pypa.io/en/stable/options/#test-sources) | Files and folders from the source tree that are copied into an isolated tree before running the tests |
|
| | [`pyodide-version`](https://cibuildwheel.pypa.io/en/stable/options/#pyodide-version) | Specify the Pyodide version to use for `pyodide` platform builds |
|
||||||
| | [`CIBW_TEST_REQUIRES`](https://cibuildwheel.pypa.io/en/stable/options/#test-requires) | Install Python dependencies before running the tests |
|
| **Testing** | [`test-command`](https://cibuildwheel.pypa.io/en/stable/options/#test-command) | The command to test each built wheel |
|
||||||
| | [`CIBW_TEST_EXTRAS`](https://cibuildwheel.pypa.io/en/stable/options/#test-extras) | Install your wheel for testing using extras_require |
|
| | [`before-test`](https://cibuildwheel.pypa.io/en/stable/options/#before-test) | Execute a shell command before testing each wheel |
|
||||||
| | [`CIBW_TEST_SKIP`](https://cibuildwheel.pypa.io/en/stable/options/#test-skip) | Skip running tests on some builds |
|
| | [`test-sources`](https://cibuildwheel.pypa.io/en/stable/options/#test-sources) | Files and folders from the source tree that are copied into an isolated tree before running the tests |
|
||||||
| **Other** | [`CIBW_BUILD_VERBOSITY`](https://cibuildwheel.pypa.io/en/stable/options/#build-verbosity) | Increase/decrease the output of pip wheel |
|
| | [`test-requires`](https://cibuildwheel.pypa.io/en/stable/options/#test-requires) | Install Python dependencies before running the tests |
|
||||||
|
| | [`test-extras`](https://cibuildwheel.pypa.io/en/stable/options/#test-extras) | Install your wheel for testing using `extras_require` |
|
||||||
|
| | [`test-groups`](https://cibuildwheel.pypa.io/en/stable/options/#test-groups) | Specify test dependencies from your project's `dependency-groups` |
|
||||||
|
| | [`test-skip`](https://cibuildwheel.pypa.io/en/stable/options/#test-skip) | Skip running tests on some builds |
|
||||||
|
| | [`test-environment`](https://cibuildwheel.pypa.io/en/stable/options/#test-environment) | Set environment variables for the test environment |
|
||||||
|
| **Debugging** | [`debug-keep-container`](https://cibuildwheel.pypa.io/en/stable/options/#debug-keep-container) | Keep the container after running for debugging. |
|
||||||
|
| | [`debug-traceback`](https://cibuildwheel.pypa.io/en/stable/options/#debug-traceback) | Print full traceback when errors occur. |
|
||||||
|
| | [`build-verbosity`](https://cibuildwheel.pypa.io/en/stable/options/#build-verbosity) | Increase/decrease the output of the build |
|
||||||
|
|
||||||
These options can be specified in a pyproject.toml file, as well; see [configuration](https://cibuildwheel.pypa.io/en/stable/options/#configuration).
|
|
||||||
|
<!--[[[end]]] (checksum: 4d6a8418630e9ed43251973d93798a1b) -->
|
||||||
|
|
||||||
|
These options can be specified in a pyproject.toml file, or as environment variables, see [configuration docs](https://cibuildwheel.pypa.io/en/latest/configuration/).
|
||||||
|
|
||||||
Working examples
|
Working examples
|
||||||
----------------
|
----------------
|
||||||
@@ -213,9 +225,7 @@ This is similar to static linking, so it might have some license implications. C
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
<!-- START bin/update_readme_changelog.py -->
|
<!-- [[[cog from readme_changelog import mini_changelog; print(mini_changelog()) ]]] -->
|
||||||
|
|
||||||
<!-- this section was generated by bin/update_readme_changelog.py -- do not edit manually -->
|
|
||||||
|
|
||||||
### v3.0.0
|
### v3.0.0
|
||||||
|
|
||||||
@@ -229,6 +239,14 @@ If you've used previous versions of the beta:
|
|||||||
|
|
||||||
#### v3.0.0b3
|
#### v3.0.0b3
|
||||||
|
|
||||||
|
_29 May 2025_
|
||||||
|
|
||||||
|
- 🛠 Dependency updates, including Python 3.14.0b2 (#2371)
|
||||||
|
- 🛠 Remove the addition of `PYTHONSAFEPATH` to `test-environment`. (#2429)
|
||||||
|
- 📚 README table now matches docs and auto-updates. (#2427, #2428)
|
||||||
|
|
||||||
|
#### v3.0.0b3
|
||||||
|
|
||||||
_28 May 2025_
|
_28 May 2025_
|
||||||
|
|
||||||
- 🛠 Reverts the test working dir (when test-sources isn't set) to a temporary dir, rather than the project. (#2420)
|
- 🛠 Reverts the test working dir (when test-sources isn't set) to a temporary dir, rather than the project. (#2420)
|
||||||
@@ -263,13 +281,7 @@ _19 May 2025_
|
|||||||
- ⚠️ Dropped official support for Appveyor. If it was working for you before, it will probably continue to do so, but we can't be sure, because our CI doesn't run there anymore. (#2386)
|
- ⚠️ Dropped official support for Appveyor. If it was working for you before, it will probably continue to do so, but we can't be sure, because our CI doesn't run there anymore. (#2386)
|
||||||
- 📚 A reorganisation of the docs, and numerous updates (#2280)
|
- 📚 A reorganisation of the docs, and numerous updates (#2280)
|
||||||
|
|
||||||
### v2.23.3
|
<!-- [[[end]]] (checksum: 1e79ae989c2c03ebaf8fa9fc77de7612) -->
|
||||||
|
|
||||||
_26 April 2025_
|
|
||||||
|
|
||||||
- 🛠 Dependency updates, including Python 3.13.3 (#2371)
|
|
||||||
|
|
||||||
<!-- END bin/update_readme_changelog.py -->
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Executable
+23
@@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import re
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
PROJECT_ROOT = Path(__file__).parent / ".."
|
||||||
|
CHANGELOG_FILE = PROJECT_ROOT / "docs" / "changelog.md"
|
||||||
|
|
||||||
|
# https://regexr.com/622ds
|
||||||
|
FIRST_5_CHANGELOG_ENTRIES_REGEX = re.compile(r"""(^###.*?(?=###)){5}""", re.DOTALL | re.MULTILINE)
|
||||||
|
|
||||||
|
|
||||||
|
def mini_changelog() -> str:
|
||||||
|
changelog_text = CHANGELOG_FILE.read_text()
|
||||||
|
|
||||||
|
mini_changelog_match = FIRST_5_CHANGELOG_ENTRIES_REGEX.search(changelog_text)
|
||||||
|
assert mini_changelog_match, "Failed to find the first few changelog entries"
|
||||||
|
|
||||||
|
return f"\n{mini_changelog_match.group(0).strip()}\n"
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
print(mini_changelog())
|
||||||
Executable
+68
@@ -0,0 +1,68 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import dataclasses
|
||||||
|
import re
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Final
|
||||||
|
|
||||||
|
DIR: Final[Path] = Path(__file__).parent.parent.resolve()
|
||||||
|
OPTIONS_MD: Final[Path] = DIR / "docs" / "options.md"
|
||||||
|
|
||||||
|
SECTION_HEADER_REGEX = re.compile(r"^## (?P<name>.*?)$", re.MULTILINE)
|
||||||
|
|
||||||
|
# https://regexr.com/8f1ff
|
||||||
|
OPTION_HEADER_REGEX = re.compile(
|
||||||
|
r"^### (?P<name>.*?){.*#(?P<id>\S+).*}\n+> ?(?P<desc>.*)$", re.MULTILINE
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@dataclasses.dataclass(kw_only=True)
|
||||||
|
class Option:
|
||||||
|
name: str
|
||||||
|
id: str
|
||||||
|
desc: str
|
||||||
|
section: str
|
||||||
|
|
||||||
|
|
||||||
|
def get_table() -> str:
|
||||||
|
options_md = OPTIONS_MD.read_text(encoding="utf-8")
|
||||||
|
|
||||||
|
sections = SECTION_HEADER_REGEX.split(options_md)[1:]
|
||||||
|
|
||||||
|
options = []
|
||||||
|
|
||||||
|
for section_name, section_content in zip(sections[0::2], sections[1::2], strict=True):
|
||||||
|
for match in OPTION_HEADER_REGEX.finditer(section_content):
|
||||||
|
option = Option(
|
||||||
|
name=match.group("name").strip(),
|
||||||
|
id=match.group("id").strip(),
|
||||||
|
desc=match.group("desc").strip(),
|
||||||
|
section=section_name.strip(),
|
||||||
|
)
|
||||||
|
options.append(option)
|
||||||
|
|
||||||
|
table_md = "\n<!-- This table is auto-generated from docs/options.md by bin/readme_options_table.py -->\n\n"
|
||||||
|
table_md += "| | Option | Description |\n"
|
||||||
|
table_md += "|---|---|---|\n"
|
||||||
|
last_section: str | None = None
|
||||||
|
|
||||||
|
for option in options:
|
||||||
|
cells: list[str] = []
|
||||||
|
|
||||||
|
cells.append(f"**{option.section}**" if option.section != last_section else "")
|
||||||
|
last_section = option.section
|
||||||
|
|
||||||
|
url = f"https://cibuildwheel.pypa.io/en/stable/options/#{option.id}"
|
||||||
|
name = option.name.replace(", ", "<br>") # Replace commas with line breaks
|
||||||
|
cells.append(f"[{name}]({url})")
|
||||||
|
|
||||||
|
cells.append(option.desc)
|
||||||
|
|
||||||
|
table_md += "| " + " | ".join(cells) + " |\n"
|
||||||
|
table_md += "\n"
|
||||||
|
|
||||||
|
return table_md
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
print(get_table())
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
PROJECT_ROOT = Path(__file__).parent / ".."
|
|
||||||
CHANGELOG_FILE = PROJECT_ROOT / "docs" / "changelog.md"
|
|
||||||
README_FILE = PROJECT_ROOT / "README.md"
|
|
||||||
|
|
||||||
# https://regexr.com/622ds
|
|
||||||
FIRST_5_CHANGELOG_ENTRIES_REGEX = re.compile(r"""(^###.*?(?=###)){5}""", re.DOTALL | re.MULTILINE)
|
|
||||||
|
|
||||||
# https://regexr.com/622e5
|
|
||||||
README_CHANGELOG_SECTION = re.compile(
|
|
||||||
r"""(?<=<!-- START bin\/update_readme_changelog.py -->\n).*(?=<!-- END bin\/update_readme_changelog.py -->)""",
|
|
||||||
re.DOTALL,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
|
||||||
changelog_text = CHANGELOG_FILE.read_text()
|
|
||||||
readme_text = README_FILE.read_text()
|
|
||||||
|
|
||||||
mini_changelog_match = FIRST_5_CHANGELOG_ENTRIES_REGEX.search(changelog_text)
|
|
||||||
assert mini_changelog_match, "Failed to find the first few changelog entries"
|
|
||||||
|
|
||||||
mini_changelog = "\n".join(
|
|
||||||
[
|
|
||||||
"",
|
|
||||||
"<!-- this section was generated by bin/update_readme_changelog.py -- do not edit manually -->",
|
|
||||||
"",
|
|
||||||
mini_changelog_match.group(0).strip(),
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
if not re.search(README_CHANGELOG_SECTION, readme_text):
|
|
||||||
sys.exit("Changelog section not found in README")
|
|
||||||
|
|
||||||
readme_text = re.sub(README_CHANGELOG_SECTION, mini_changelog, readme_text)
|
|
||||||
README_FILE.write_text(readme_text)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
@@ -1 +1 @@
|
|||||||
__version__ = "3.0.0b3"
|
__version__ = "3.0.0b4"
|
||||||
|
|||||||
@@ -361,7 +361,6 @@ def build_in_container(
|
|||||||
virtualenv_env = env.copy()
|
virtualenv_env = env.copy()
|
||||||
virtualenv_env["PATH"] = f"{venv_dir / 'bin'}:{virtualenv_env['PATH']}"
|
virtualenv_env["PATH"] = f"{venv_dir / 'bin'}:{virtualenv_env['PATH']}"
|
||||||
virtualenv_env["VIRTUAL_ENV"] = str(venv_dir)
|
virtualenv_env["VIRTUAL_ENV"] = str(venv_dir)
|
||||||
virtualenv_env["PYTHONSAFEPATH"] = "1"
|
|
||||||
virtualenv_env = build_options.test_environment.as_dictionary(
|
virtualenv_env = build_options.test_environment.as_dictionary(
|
||||||
prev_environment=virtualenv_env
|
prev_environment=virtualenv_env
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -648,9 +648,6 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
|
|
||||||
virtualenv_env["MACOSX_DEPLOYMENT_TARGET"] = get_test_macosx_deployment_target()
|
virtualenv_env["MACOSX_DEPLOYMENT_TARGET"] = get_test_macosx_deployment_target()
|
||||||
|
|
||||||
# see https://github.com/pypa/cibuildwheel/issues/2358 for discussion
|
|
||||||
virtualenv_env["PYTHONSAFEPATH"] = "1"
|
|
||||||
|
|
||||||
virtualenv_env = build_options.test_environment.as_dictionary(
|
virtualenv_env = build_options.test_environment.as_dictionary(
|
||||||
prev_environment=virtualenv_env
|
prev_environment=virtualenv_env
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -484,8 +484,6 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
)
|
)
|
||||||
virtualenv_env["VIRTUAL_ENV"] = str(venv_dir)
|
virtualenv_env["VIRTUAL_ENV"] = str(venv_dir)
|
||||||
|
|
||||||
virtualenv_env["PYTHONSAFEPATH"] = "1"
|
|
||||||
|
|
||||||
virtualenv_env = build_options.test_environment.as_dictionary(
|
virtualenv_env = build_options.test_environment.as_dictionary(
|
||||||
prev_environment=virtualenv_env
|
prev_environment=virtualenv_env
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -553,9 +553,6 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
pip_version=pip_version,
|
pip_version=pip_version,
|
||||||
)
|
)
|
||||||
|
|
||||||
# see https://github.com/pypa/cibuildwheel/issues/2358 for discussion
|
|
||||||
virtualenv_env["PYTHONSAFEPATH"] = "1"
|
|
||||||
|
|
||||||
virtualenv_env = build_options.test_environment.as_dictionary(
|
virtualenv_env = build_options.test_environment.as_dictionary(
|
||||||
prev_environment=virtualenv_env
|
prev_environment=virtualenv_env
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -165,12 +165,12 @@ python_configurations = [
|
|||||||
{ identifier = "cp313t-macosx_x86_64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.3/python-3.13.3-macos11.pkg" },
|
{ identifier = "cp313t-macosx_x86_64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.3/python-3.13.3-macos11.pkg" },
|
||||||
{ identifier = "cp313t-macosx_arm64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.3/python-3.13.3-macos11.pkg" },
|
{ identifier = "cp313t-macosx_arm64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.3/python-3.13.3-macos11.pkg" },
|
||||||
{ identifier = "cp313t-macosx_universal2", version = "3.13", url = "https://www.python.org/ftp/python/3.13.3/python-3.13.3-macos11.pkg" },
|
{ identifier = "cp313t-macosx_universal2", version = "3.13", url = "https://www.python.org/ftp/python/3.13.3/python-3.13.3-macos11.pkg" },
|
||||||
{ identifier = "cp314-macosx_x86_64", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b1-macos11.pkg" },
|
{ identifier = "cp314-macosx_x86_64", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b2-macos11.pkg" },
|
||||||
{ identifier = "cp314-macosx_arm64", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b1-macos11.pkg" },
|
{ identifier = "cp314-macosx_arm64", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b2-macos11.pkg" },
|
||||||
{ identifier = "cp314-macosx_universal2", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b1-macos11.pkg" },
|
{ identifier = "cp314-macosx_universal2", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b2-macos11.pkg" },
|
||||||
{ identifier = "cp314t-macosx_x86_64", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b1-macos11.pkg" },
|
{ identifier = "cp314t-macosx_x86_64", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b2-macos11.pkg" },
|
||||||
{ identifier = "cp314t-macosx_arm64", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b1-macos11.pkg" },
|
{ identifier = "cp314t-macosx_arm64", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b2-macos11.pkg" },
|
||||||
{ identifier = "cp314t-macosx_universal2", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b1-macos11.pkg" },
|
{ identifier = "cp314t-macosx_universal2", version = "3.14", url = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b2-macos11.pkg" },
|
||||||
{ identifier = "pp38-macosx_x86_64", version = "3.8", url = "https://downloads.python.org/pypy/pypy3.8-v7.3.11-macos_x86_64.tar.bz2" },
|
{ identifier = "pp38-macosx_x86_64", version = "3.8", url = "https://downloads.python.org/pypy/pypy3.8-v7.3.11-macos_x86_64.tar.bz2" },
|
||||||
{ identifier = "pp38-macosx_arm64", version = "3.8", url = "https://downloads.python.org/pypy/pypy3.8-v7.3.11-macos_arm64.tar.bz2" },
|
{ identifier = "pp38-macosx_arm64", version = "3.8", url = "https://downloads.python.org/pypy/pypy3.8-v7.3.11-macos_arm64.tar.bz2" },
|
||||||
{ identifier = "pp39-macosx_x86_64", version = "3.9", url = "https://downloads.python.org/pypy/pypy3.9-v7.3.16-macos_x86_64.tar.bz2" },
|
{ identifier = "pp39-macosx_x86_64", version = "3.9", url = "https://downloads.python.org/pypy/pypy3.9-v7.3.16-macos_x86_64.tar.bz2" },
|
||||||
@@ -199,18 +199,18 @@ python_configurations = [
|
|||||||
{ identifier = "cp313t-win32", version = "3.13.3", arch = "32" },
|
{ identifier = "cp313t-win32", version = "3.13.3", arch = "32" },
|
||||||
{ identifier = "cp313-win_amd64", version = "3.13.3", arch = "64" },
|
{ identifier = "cp313-win_amd64", version = "3.13.3", arch = "64" },
|
||||||
{ identifier = "cp313t-win_amd64", version = "3.13.3", arch = "64" },
|
{ identifier = "cp313t-win_amd64", version = "3.13.3", arch = "64" },
|
||||||
{ identifier = "cp314-win32", version = "3.14.0-b1", arch = "32" },
|
{ identifier = "cp314-win32", version = "3.14.0-b2", arch = "32" },
|
||||||
{ identifier = "cp314t-win32", version = "3.14.0-b1", arch = "32" },
|
{ identifier = "cp314t-win32", version = "3.14.0-b2", arch = "32" },
|
||||||
{ identifier = "cp314-win_amd64", version = "3.14.0-b1", arch = "64" },
|
{ identifier = "cp314-win_amd64", version = "3.14.0-b2", arch = "64" },
|
||||||
{ identifier = "cp314t-win_amd64", version = "3.14.0-b1", arch = "64" },
|
{ identifier = "cp314t-win_amd64", version = "3.14.0-b2", arch = "64" },
|
||||||
{ identifier = "cp39-win_arm64", version = "3.9.10", arch = "ARM64" },
|
{ identifier = "cp39-win_arm64", version = "3.9.10", arch = "ARM64" },
|
||||||
{ identifier = "cp310-win_arm64", version = "3.10.11", arch = "ARM64" },
|
{ identifier = "cp310-win_arm64", version = "3.10.11", arch = "ARM64" },
|
||||||
{ identifier = "cp311-win_arm64", version = "3.11.9", arch = "ARM64" },
|
{ identifier = "cp311-win_arm64", version = "3.11.9", arch = "ARM64" },
|
||||||
{ identifier = "cp312-win_arm64", version = "3.12.10", arch = "ARM64" },
|
{ identifier = "cp312-win_arm64", version = "3.12.10", arch = "ARM64" },
|
||||||
{ identifier = "cp313-win_arm64", version = "3.13.3", arch = "ARM64" },
|
{ identifier = "cp313-win_arm64", version = "3.13.3", arch = "ARM64" },
|
||||||
{ identifier = "cp313t-win_arm64", version = "3.13.3", arch = "ARM64" },
|
{ identifier = "cp313t-win_arm64", version = "3.13.3", arch = "ARM64" },
|
||||||
{ identifier = "cp314-win_arm64", version = "3.14.0-b1", arch = "ARM64" },
|
{ identifier = "cp314-win_arm64", version = "3.14.0-b2", arch = "ARM64" },
|
||||||
{ identifier = "cp314t-win_arm64", version = "3.14.0-b1", arch = "ARM64" },
|
{ identifier = "cp314t-win_arm64", version = "3.14.0-b2", arch = "ARM64" },
|
||||||
{ identifier = "pp38-win_amd64", version = "3.8", arch = "64", url = "https://downloads.python.org/pypy/pypy3.8-v7.3.11-win64.zip" },
|
{ identifier = "pp38-win_amd64", version = "3.8", arch = "64", url = "https://downloads.python.org/pypy/pypy3.8-v7.3.11-win64.zip" },
|
||||||
{ identifier = "pp39-win_amd64", version = "3.9", arch = "64", url = "https://downloads.python.org/pypy/pypy3.9-v7.3.16-win64.zip" },
|
{ identifier = "pp39-win_amd64", version = "3.9", arch = "64", url = "https://downloads.python.org/pypy/pypy3.9-v7.3.16-win64.zip" },
|
||||||
{ identifier = "pp310-win_amd64", version = "3.10", arch = "64", url = "https://downloads.python.org/pypy/pypy3.10-v7.3.19-win64.zip" },
|
{ identifier = "pp310-win_amd64", version = "3.10", arch = "64", url = "https://downloads.python.org/pypy/pypy3.10-v7.3.19-win64.zip" },
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ shellingham==1.5.4
|
|||||||
# via typer
|
# via typer
|
||||||
sniffio==1.3.1
|
sniffio==1.3.1
|
||||||
# via anyio
|
# via anyio
|
||||||
typer==0.15.4
|
typer==0.16.0
|
||||||
# via
|
# via
|
||||||
# auditwheel-emscripten
|
# auditwheel-emscripten
|
||||||
# pyodide-build
|
# pyodide-build
|
||||||
|
|||||||
@@ -30,5 +30,5 @@ typing-extensions==4.13.2
|
|||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.31.2
|
virtualenv==20.31.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
zipp==3.21.0
|
zipp==3.22.0
|
||||||
# via importlib-metadata
|
# via importlib-metadata
|
||||||
|
|||||||
@@ -30,5 +30,5 @@ typing-extensions==4.13.2
|
|||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.31.2
|
virtualenv==20.31.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
zipp==3.21.0
|
zipp==3.22.0
|
||||||
# via importlib-metadata
|
# via importlib-metadata
|
||||||
|
|||||||
@@ -1,47 +1,47 @@
|
|||||||
[x86_64]
|
[x86_64]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2025.05.24-1
|
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2025.05.28-1
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2025.05.24-1
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2025.05.28-1
|
||||||
manylinux_2_34 = quay.io/pypa/manylinux_2_34_x86_64:2025.05.24-1
|
manylinux_2_34 = quay.io/pypa/manylinux_2_34_x86_64:2025.05.28-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_x86_64:2025.05.24-1
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_x86_64:2025.05.28-1
|
||||||
|
|
||||||
[i686]
|
[i686]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2025.05.24-1
|
manylinux2014 = quay.io/pypa/manylinux2014_i686:2025.05.28-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_i686:2025.05.24-1
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_i686:2025.05.28-1
|
||||||
|
|
||||||
[aarch64]
|
[aarch64]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2025.05.24-1
|
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2025.05.28-1
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2025.05.24-1
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2025.05.28-1
|
||||||
manylinux_2_34 = quay.io/pypa/manylinux_2_34_aarch64:2025.05.24-1
|
manylinux_2_34 = quay.io/pypa/manylinux_2_34_aarch64:2025.05.28-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_aarch64:2025.05.24-1
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_aarch64:2025.05.28-1
|
||||||
|
|
||||||
[ppc64le]
|
[ppc64le]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2025.05.24-1
|
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2025.05.28-1
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_ppc64le:2025.05.24-1
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_ppc64le:2025.05.28-1
|
||||||
manylinux_2_34 = quay.io/pypa/manylinux_2_34_ppc64le:2025.05.24-1
|
manylinux_2_34 = quay.io/pypa/manylinux_2_34_ppc64le:2025.05.28-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_ppc64le:2025.05.24-1
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_ppc64le:2025.05.28-1
|
||||||
|
|
||||||
[s390x]
|
[s390x]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2025.05.24-1
|
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2025.05.28-1
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_s390x:2025.05.24-1
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_s390x:2025.05.28-1
|
||||||
manylinux_2_34 = quay.io/pypa/manylinux_2_34_s390x:2025.05.24-1
|
manylinux_2_34 = quay.io/pypa/manylinux_2_34_s390x:2025.05.28-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_s390x:2025.05.24-1
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_s390x:2025.05.28-1
|
||||||
|
|
||||||
[pypy_x86_64]
|
[pypy_x86_64]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2025.05.24-1
|
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2025.05.28-1
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2025.05.24-1
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2025.05.28-1
|
||||||
manylinux_2_34 = quay.io/pypa/manylinux_2_34_x86_64:2025.05.24-1
|
manylinux_2_34 = quay.io/pypa/manylinux_2_34_x86_64:2025.05.28-1
|
||||||
|
|
||||||
[pypy_i686]
|
[pypy_i686]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2025.05.24-1
|
manylinux2014 = quay.io/pypa/manylinux2014_i686:2025.05.28-1
|
||||||
|
|
||||||
[pypy_aarch64]
|
[pypy_aarch64]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2025.05.24-1
|
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2025.05.28-1
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2025.05.24-1
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2025.05.28-1
|
||||||
manylinux_2_34 = quay.io/pypa/manylinux_2_34_aarch64:2025.05.24-1
|
manylinux_2_34 = quay.io/pypa/manylinux_2_34_aarch64:2025.05.28-1
|
||||||
|
|
||||||
[armv7l]
|
[armv7l]
|
||||||
manylinux_2_31 = quay.io/pypa/manylinux_2_31_armv7l:2025.05.24-1
|
manylinux_2_31 = quay.io/pypa/manylinux_2_31_armv7l:2025.05.28-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_armv7l:2025.05.24-1
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_armv7l:2025.05.28-1
|
||||||
|
|
||||||
[riscv64]
|
[riscv64]
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,14 @@ If you've used previous versions of the beta:
|
|||||||
|
|
||||||
#### v3.0.0b3
|
#### v3.0.0b3
|
||||||
|
|
||||||
|
_29 May 2025_
|
||||||
|
|
||||||
|
- 🛠 Dependency updates, including Python 3.14.0b2 (#2371)
|
||||||
|
- 🛠 Remove the addition of `PYTHONSAFEPATH` to `test-environment`. (#2429)
|
||||||
|
- 📚 README table now matches docs and auto-updates. (#2427, #2428)
|
||||||
|
|
||||||
|
#### v3.0.0b3
|
||||||
|
|
||||||
_28 May 2025_
|
_28 May 2025_
|
||||||
|
|
||||||
- 🛠 Reverts the test working dir (when test-sources isn't set) to a temporary dir, rather than the project. (#2420)
|
- 🛠 Reverts the test working dir (when test-sources isn't set) to a temporary dir, rather than the project. (#2420)
|
||||||
|
|||||||
+3
-3
@@ -60,7 +60,7 @@ There are two suggested methods for keeping cibuildwheel up to date that instead
|
|||||||
If you use GitHub Actions for builds, you can use cibuildwheel as an action:
|
If you use GitHub Actions for builds, you can use cibuildwheel as an action:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: pypa/cibuildwheel@v3.0.0b3
|
uses: pypa/cibuildwheel@v3.0.0b4
|
||||||
```
|
```
|
||||||
|
|
||||||
This is a composite step that just runs cibuildwheel using pipx. You can set command-line options as `with:` parameters, and use `env:` as normal.
|
This is a composite step that just runs cibuildwheel using pipx. You can set command-line options as `with:` parameters, and use `env:` as normal.
|
||||||
@@ -82,7 +82,7 @@ The second option, and the only one that supports other CI systems, is using a `
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# requirements-cibw.txt
|
# requirements-cibw.txt
|
||||||
cibuildwheel==3.0.0b3
|
cibuildwheel==3.0.0b4
|
||||||
```
|
```
|
||||||
|
|
||||||
Then your install step would have `python -m pip install -r requirements-cibw.txt` in it. Your `.github/dependabot.yml` file could look like this:
|
Then your install step would have `python -m pip install -r requirements-cibw.txt` in it. Your `.github/dependabot.yml` file could look like this:
|
||||||
@@ -247,7 +247,7 @@ Solutions to this vary, but the simplest is to use pipx:
|
|||||||
# most runners have pipx preinstalled, but in case you don't
|
# most runners have pipx preinstalled, but in case you don't
|
||||||
python3 -m pip install pipx
|
python3 -m pip install pipx
|
||||||
|
|
||||||
pipx run cibuildwheel==3.0.0b3 --output-dir wheelhouse
|
pipx run cibuildwheel==3.0.0b4 --output-dir wheelhouse
|
||||||
pipx run twine upload wheelhouse/*.whl
|
pipx run twine upload wheelhouse/*.whl
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+4
-44
@@ -1604,12 +1604,6 @@ A space-separated list of environment variables to set in the test environment.
|
|||||||
|
|
||||||
The syntax is the same as for [`environment`](#environment).
|
The syntax is the same as for [`environment`](#environment).
|
||||||
|
|
||||||
cibuildwheel sets the variable
|
|
||||||
[`PYTHONSAFEPATH`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONSAFEPATH)
|
|
||||||
to avoid picking up in-tree dependencies when running the tests - we want to
|
|
||||||
test the installed wheel, not the in-tree version. However, this can be
|
|
||||||
overridden by setting `PYTHONSAFEPATH` to an empty string.
|
|
||||||
|
|
||||||
Platform-specific environment variables are also available:<br/>
|
Platform-specific environment variables are also available:<br/>
|
||||||
`CIBW_TEST_ENVIRONMENT_MACOS` | `CIBW_TEST_ENVIRONMENT_WINDOWS` | `CIBW_TEST_ENVIRONMENT_LINUX` | `CIBW_TEST_ENVIRONMENT_IOS` | `CIBW_TEST_ENVIRONMENT_PYODIDE`
|
`CIBW_TEST_ENVIRONMENT_MACOS` | `CIBW_TEST_ENVIRONMENT_WINDOWS` | `CIBW_TEST_ENVIRONMENT_LINUX` | `CIBW_TEST_ENVIRONMENT_IOS` | `CIBW_TEST_ENVIRONMENT_PYODIDE`
|
||||||
|
|
||||||
@@ -1622,8 +1616,8 @@ Platform-specific environment variables are also available:<br/>
|
|||||||
# Set the environment variable MY_ENV_VAR to "my_value" in the test environment
|
# Set the environment variable MY_ENV_VAR to "my_value" in the test environment
|
||||||
test-environment = { MY_ENV_VAR="my_value" }
|
test-environment = { MY_ENV_VAR="my_value" }
|
||||||
|
|
||||||
# Unset PYTHONSAFEPATH in the test environment
|
# Set PYTHONSAFEPATH in the test environment
|
||||||
test-environment = { PYTHONSAFEPATH="" }
|
test-environment = { PYTHONSAFEPATH="1" }
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! tab examples "Environment variables"
|
!!! tab examples "Environment variables"
|
||||||
@@ -1632,8 +1626,8 @@ Platform-specific environment variables are also available:<br/>
|
|||||||
# Set the environment variable MY_ENV_VAR to "my_value" in the test environment
|
# Set the environment variable MY_ENV_VAR to "my_value" in the test environment
|
||||||
CIBW_TEST_ENVIRONMENT: MY_ENV_VAR=my_value
|
CIBW_TEST_ENVIRONMENT: MY_ENV_VAR=my_value
|
||||||
|
|
||||||
# Unset PYTHONSAFEPATH in the test environment
|
# Set PYTHONSAFEPATH in the test environment
|
||||||
CIBW_TEST_ENVIRONMENT: PYTHONSAFEPATH=
|
CIBW_TEST_ENVIRONMENT: PYTHONSAFEPATH=1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -1889,40 +1883,6 @@ Some options support placeholders, like `{project}`, `{package}` or `{wheel}`, t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// write the markdown table for the README
|
|
||||||
|
|
||||||
var markdown = ''
|
|
||||||
|
|
||||||
markdown += '| | Option | Description |\n'
|
|
||||||
markdown += '|---|--------|-------------|\n'
|
|
||||||
|
|
||||||
var prevHeader = null
|
|
||||||
|
|
||||||
for (var i = 0; i < headers.length; i += 1) {
|
|
||||||
var header = headers[i];
|
|
||||||
var headerOptions = options[header];
|
|
||||||
for (var j = 0; j < headerOptions.length; j += 1) {
|
|
||||||
var option = headerOptions[j];
|
|
||||||
|
|
||||||
if (j == 0) {
|
|
||||||
markdown += '| **'+header+'** '
|
|
||||||
} else {
|
|
||||||
markdown += '| '
|
|
||||||
}
|
|
||||||
|
|
||||||
var optionNames = option.name.trim().split(', ')
|
|
||||||
var url = 'https://cibuildwheel.pypa.io/en/stable/options/#'+option.id;
|
|
||||||
var namesMarkdown = $.map(optionNames, function(n) {
|
|
||||||
return '[`'+n+'`]('+url+') '
|
|
||||||
}).join(' <br> ')
|
|
||||||
|
|
||||||
markdown += '| '+namesMarkdown+' '
|
|
||||||
markdown += '| '+option.description.trim()+' '
|
|
||||||
markdown += '|\n'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log('readme options markdown\n', markdown)
|
|
||||||
|
|
||||||
// add the option tags to each heading
|
// add the option tags to each heading
|
||||||
$('.rst-content h3')
|
$('.rst-content h3')
|
||||||
.each(function (i, el) {
|
.each(function (i, el) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ jobs:
|
|||||||
- bash: |
|
- bash: |
|
||||||
set -o errexit
|
set -o errexit
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip3 install cibuildwheel==3.0.0b3
|
pip3 install cibuildwheel==3.0.0b4
|
||||||
displayName: Install dependencies
|
displayName: Install dependencies
|
||||||
- bash: cibuildwheel --output-dir wheelhouse .
|
- bash: cibuildwheel --output-dir wheelhouse .
|
||||||
displayName: Build wheels
|
displayName: Build wheels
|
||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- bash: |
|
- bash: |
|
||||||
set -o errexit
|
set -o errexit
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
python3 -m pip install cibuildwheel==3.0.0b3
|
python3 -m pip install cibuildwheel==3.0.0b4
|
||||||
displayName: Install dependencies
|
displayName: Install dependencies
|
||||||
- bash: cibuildwheel --output-dir wheelhouse .
|
- bash: cibuildwheel --output-dir wheelhouse .
|
||||||
displayName: Build wheels
|
displayName: Build wheels
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- bash: |
|
- bash: |
|
||||||
set -o errexit
|
set -o errexit
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install cibuildwheel==3.0.0b3
|
pip install cibuildwheel==3.0.0b4
|
||||||
displayName: Install dependencies
|
displayName: Install dependencies
|
||||||
- bash: cibuildwheel --output-dir wheelhouse .
|
- bash: cibuildwheel --output-dir wheelhouse .
|
||||||
displayName: Build wheels
|
displayName: Build wheels
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build the Linux wheels.
|
name: Build the Linux wheels.
|
||||||
command: |
|
command: |
|
||||||
python3 -m pip install --user cibuildwheel==3.0.0b3
|
python3 -m pip install --user cibuildwheel==3.0.0b4
|
||||||
cibuildwheel --output-dir wheelhouse
|
cibuildwheel --output-dir wheelhouse
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: wheelhouse/
|
path: wheelhouse/
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build the Linux aarch64 wheels.
|
name: Build the Linux aarch64 wheels.
|
||||||
command: |
|
command: |
|
||||||
python3 -m pip install --user cibuildwheel==3.0.0b3
|
python3 -m pip install --user cibuildwheel==3.0.0b4
|
||||||
python3 -m cibuildwheel --output-dir wheelhouse
|
python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: wheelhouse/
|
path: wheelhouse/
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
name: Build the OS X wheels.
|
name: Build the OS X wheels.
|
||||||
command: |
|
command: |
|
||||||
sudo softwareupdate --install-rosetta --agree-to-license # for python<=3.8 or x86_64/universal2 tests
|
sudo softwareupdate --install-rosetta --agree-to-license # for python<=3.8 or x86_64/universal2 tests
|
||||||
pip3 install cibuildwheel==3.0.0b3
|
pip3 install cibuildwheel==3.0.0b4
|
||||||
cibuildwheel --output-dir wheelhouse
|
cibuildwheel --output-dir wheelhouse
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: wheelhouse/
|
path: wheelhouse/
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
build_and_store_wheels: &BUILD_AND_STORE_WHEELS
|
build_and_store_wheels: &BUILD_AND_STORE_WHEELS
|
||||||
install_cibuildwheel_script:
|
install_cibuildwheel_script:
|
||||||
- python -m pip install cibuildwheel==3.0.0b3
|
- python -m pip install cibuildwheel==3.0.0b4
|
||||||
run_cibuildwheel_script:
|
run_cibuildwheel_script:
|
||||||
- cibuildwheel
|
- cibuildwheel
|
||||||
wheels_artifacts:
|
wheels_artifacts:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
build_and_store_wheels: &BUILD_AND_STORE_WHEELS
|
build_and_store_wheels: &BUILD_AND_STORE_WHEELS
|
||||||
install_cibuildwheel_script:
|
install_cibuildwheel_script:
|
||||||
- python -m pip install cibuildwheel==3.0.0b3
|
- python -m pip install cibuildwheel==3.0.0b4
|
||||||
run_cibuildwheel_script:
|
run_cibuildwheel_script:
|
||||||
- cibuildwheel
|
- cibuildwheel
|
||||||
wheels_artifacts:
|
wheels_artifacts:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v3.0.0b3
|
uses: pypa/cibuildwheel@v3.0.0b4
|
||||||
env:
|
env:
|
||||||
CIBW_PLATFORM: ${{ matrix.platform }}
|
CIBW_PLATFORM: ${{ matrix.platform }}
|
||||||
CIBW_ARCHS: ${{ matrix.archs }}
|
CIBW_ARCHS: ${{ matrix.archs }}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v3.0.0b3
|
uses: pypa/cibuildwheel@v3.0.0b4
|
||||||
# env:
|
# env:
|
||||||
# CIBW_SOME_OPTION: value
|
# CIBW_SOME_OPTION: value
|
||||||
# ...
|
# ...
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: pipx run cibuildwheel==3.0.0b3
|
run: pipx run cibuildwheel==3.0.0b4
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
platforms: all
|
platforms: all
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v3.0.0b3
|
uses: pypa/cibuildwheel@v3.0.0b4
|
||||||
env:
|
env:
|
||||||
# configure cibuildwheel on Linux to build native archs ('auto'),
|
# configure cibuildwheel on Linux to build native archs ('auto'),
|
||||||
# and to split the remaining architectures between the x86_64 and
|
# and to split the remaining architectures between the x86_64 and
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ linux:
|
|||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
script:
|
script:
|
||||||
- curl -sSL https://get.docker.com/ | sh
|
- curl -sSL https://get.docker.com/ | sh
|
||||||
- python -m pip install cibuildwheel==3.0.0b3
|
- python -m pip install cibuildwheel==3.0.0b4
|
||||||
- cibuildwheel --output-dir wheelhouse
|
- cibuildwheel --output-dir wheelhouse
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
@@ -23,7 +23,7 @@ windows:
|
|||||||
before_script:
|
before_script:
|
||||||
- choco install python -y --version 3.12.4
|
- choco install python -y --version 3.12.4
|
||||||
- choco install git.install -y
|
- choco install git.install -y
|
||||||
- py -m pip install cibuildwheel==3.0.0b3
|
- py -m pip install cibuildwheel==3.0.0b4
|
||||||
script:
|
script:
|
||||||
- py -m cibuildwheel --output-dir wheelhouse --platform windows
|
- py -m cibuildwheel --output-dir wheelhouse --platform windows
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -35,7 +35,7 @@ windows:
|
|||||||
macos:
|
macos:
|
||||||
image: macos-14-xcode-15
|
image: macos-14-xcode-15
|
||||||
before_script:
|
before_script:
|
||||||
- python3 -m pip install cibuildwheel==3.0.0b3
|
- python3 -m pip install cibuildwheel==3.0.0b4
|
||||||
script:
|
script:
|
||||||
- python3 -m cibuildwheel --output-dir wheelhouse
|
- python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ linux:
|
|||||||
- curl -sSL https://get.docker.com/ | sh
|
- curl -sSL https://get.docker.com/ | sh
|
||||||
# Warning: This is extremely slow, be careful with how many wheels you build
|
# Warning: This is extremely slow, be careful with how many wheels you build
|
||||||
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
- python -m pip install cibuildwheel==3.0.0b3
|
- python -m pip install cibuildwheel==3.0.0b4
|
||||||
# Assuming your CI runner's default architecture is x86_64...
|
# Assuming your CI runner's default architecture is x86_64...
|
||||||
- cibuildwheel --output-dir wheelhouse --platform linux --archs aarch64
|
- cibuildwheel --output-dir wheelhouse --platform linux --archs aarch64
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- ln -s /c/Python312/python.exe /c/Python312/python3.exe
|
- ln -s /c/Python312/python.exe /c/Python312/python3.exe
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python3 -m pip install cibuildwheel==3.0.0b3
|
- python3 -m pip install cibuildwheel==3.0.0b4
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# build the wheels, put them into './dist'
|
# build the wheels, put them into './dist'
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- ln -s /c/Python312/python.exe /c/Python312/python3.exe
|
- ln -s /c/Python312/python.exe /c/Python312/python3.exe
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python3 -m pip install cibuildwheel==3.0.0b3
|
- python3 -m pip install cibuildwheel==3.0.0b4
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# build the wheels, put them into './wheelhouse'
|
# build the wheels, put them into './wheelhouse'
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
- stage: deploy
|
- stage: deploy
|
||||||
name: Build and deploy Linux wheels
|
name: Build and deploy Linux wheels
|
||||||
services: docker
|
services: docker
|
||||||
install: python3 -m pip install cibuildwheel==3.0.0b3 twine
|
install: python3 -m pip install cibuildwheel==3.0.0b4 twine
|
||||||
script: python3 -m cibuildwheel --output-dir wheelhouse
|
script: python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
after_success: python3 -m twine upload --skip-existing wheelhouse/*.whl
|
after_success: python3 -m twine upload --skip-existing wheelhouse/*.whl
|
||||||
# Deploy on windows
|
# Deploy on windows
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
name: Build and deploy Windows wheels
|
name: Build and deploy Windows wheels
|
||||||
os: windows
|
os: windows
|
||||||
language: shell
|
language: shell
|
||||||
install: python3 -m pip install cibuildwheel==3.0.0b3 twine
|
install: python3 -m pip install cibuildwheel==3.0.0b4 twine
|
||||||
script: python3 -m cibuildwheel --output-dir wheelhouse
|
script: python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
after_success: python3 -m twine upload --skip-existing wheelhouse/*.whl
|
after_success: python3 -m twine upload --skip-existing wheelhouse/*.whl
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "cibuildwheel"
|
name = "cibuildwheel"
|
||||||
version = "3.0.0b3"
|
version = "3.0.0b4"
|
||||||
description = "Build Python wheels on CI with minimal configuration."
|
description = "Build Python wheels on CI with minimal configuration."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "BSD-2-Clause"
|
license = "BSD-2-Clause"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
|
import packaging.utils
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from cibuildwheel.logger import Logger
|
from cibuildwheel.logger import Logger
|
||||||
@@ -37,7 +38,9 @@ def test(tmp_path, build_frontend_env, capfd):
|
|||||||
|
|
||||||
# check that the expected wheels are produced
|
# check that the expected wheels are produced
|
||||||
expected_wheels = utils.expected_wheels("spam", "0.1.0")
|
expected_wheels = utils.expected_wheels("spam", "0.1.0")
|
||||||
assert set(actual_wheels) == set(expected_wheels)
|
actual_wheels_normalized = {packaging.utils.parse_wheel_filename(w) for w in actual_wheels}
|
||||||
|
expected_wheels_normalized = {packaging.utils.parse_wheel_filename(w) for w in expected_wheels}
|
||||||
|
assert actual_wheels_normalized == expected_wheels_normalized
|
||||||
|
|
||||||
enable_groups = utils.get_enable_groups()
|
enable_groups = utils.get_enable_groups()
|
||||||
if EnableGroup.GraalPy not in enable_groups:
|
if EnableGroup.GraalPy not in enable_groups:
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ def test(manylinux_image, tmp_path):
|
|||||||
actual_wheels = utils.cibuildwheel_run(project_dir, add_env=add_env)
|
actual_wheels = utils.cibuildwheel_run(project_dir, add_env=add_env)
|
||||||
|
|
||||||
platform_tag_map = {
|
platform_tag_map = {
|
||||||
"manylinux2014": ["manylinux_2_17", "manylinux2014"],
|
"manylinux2014": ["manylinux2014", "manylinux_2_17"],
|
||||||
}
|
}
|
||||||
expected_wheels = utils.expected_wheels(
|
expected_wheels = utils.expected_wheels(
|
||||||
"spam",
|
"spam",
|
||||||
|
|||||||
@@ -66,12 +66,6 @@ class TestSpam(TestCase):
|
|||||||
bits = struct.calcsize("P") * 8
|
bits = struct.calcsize("P") * 8
|
||||||
if bits == 32:
|
if bits == 32:
|
||||||
self.assertIn(platform.machine(), ["i686", "armv7l","armv8l", "wasm32"])
|
self.assertIn(platform.machine(), ["i686", "armv7l","armv8l", "wasm32"])
|
||||||
|
|
||||||
def test_pythonsafepath(self):
|
|
||||||
# check that the PYTHONSAFEPATH environment variable is set
|
|
||||||
value = os.environ.get("PYTHONSAFEPATH")
|
|
||||||
self.assertIsNotNone(value)
|
|
||||||
self.assertNotEqual(value, "")
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
@@ -256,8 +250,8 @@ def test_test_environment(tmp_path):
|
|||||||
actual_wheels = utils.cibuildwheel_run(
|
actual_wheels = utils.cibuildwheel_run(
|
||||||
project_dir,
|
project_dir,
|
||||||
add_env={
|
add_env={
|
||||||
"CIBW_TEST_ENVIRONMENT": "MYVAR=somevalue PYTHONSAFEPATH=",
|
"CIBW_TEST_ENVIRONMENT": "MYVAR=somevalue PYTHONSAFEPATH=1",
|
||||||
"CIBW_TEST_COMMAND": "python -c \"import os; assert os.environ.get('MYVAR') == 'somevalue'; assert os.environ.get('PYTHONSAFEPATH') == ''\"",
|
"CIBW_TEST_COMMAND": "python -c \"import os; assert os.environ.get('MYVAR') == 'somevalue'; assert os.environ.get('PYTHONSAFEPATH') == '1'\"",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
# also check that we got the right wheels
|
# also check that we got the right wheels
|
||||||
|
|||||||
+4
-4
@@ -250,11 +250,11 @@ def _expected_wheels(
|
|||||||
|
|
||||||
if manylinux_versions is None:
|
if manylinux_versions is None:
|
||||||
manylinux_versions = {
|
manylinux_versions = {
|
||||||
"armv7l": ["manylinux_2_17", "manylinux2014", "manylinux_2_31"],
|
"armv7l": ["manylinux2014", "manylinux_2_17", "manylinux_2_31"],
|
||||||
"i686": ["manylinux_2_5", "manylinux1", "manylinux_2_17", "manylinux2014"],
|
"i686": ["manylinux1", "manylinux2014", "manylinux_2_17", "manylinux_2_5"],
|
||||||
"x86_64": ["manylinux_2_5", "manylinux1", "manylinux_2_28"],
|
"x86_64": ["manylinux1", "manylinux_2_28", "manylinux_2_5"],
|
||||||
"riscv64": ["manylinux_2_31", "manylinux_2_35"],
|
"riscv64": ["manylinux_2_31", "manylinux_2_35"],
|
||||||
}.get(machine_arch, ["manylinux_2_17", "manylinux2014", "manylinux_2_28"])
|
}.get(machine_arch, ["manylinux2014", "manylinux_2_17", "manylinux_2_28"])
|
||||||
|
|
||||||
if musllinux_versions is None:
|
if musllinux_versions is None:
|
||||||
musllinux_versions = ["musllinux_1_2"]
|
musllinux_versions = ["musllinux_1_2"]
|
||||||
|
|||||||
Reference in New Issue
Block a user