Compare commits
31
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7940a4c0e7 | ||
|
|
3d3159b37b | ||
|
|
0319c431de | ||
|
|
80ae9a50c9 | ||
|
|
006f1e6ec6 | ||
|
|
f185952832 | ||
|
|
d5c6a83aeb | ||
|
|
2e8e511106 | ||
|
|
ec591cdf47 | ||
|
|
ee7fa96f6d | ||
|
|
d625d18b91 | ||
|
|
895eae340a | ||
|
|
9fad66fcfb | ||
|
|
dfd01af9aa | ||
|
|
735e88deba | ||
|
|
bb2f6652b7 | ||
|
|
6dcd7dd34b | ||
|
|
1327af5077 | ||
|
|
311f64987b | ||
|
|
08e5b97e57 | ||
|
|
d4a2945fcc | ||
|
|
9913c03128 | ||
|
|
c0e28d3401 | ||
|
|
8c42e7980c | ||
|
|
01ecd4e011 | ||
|
|
33da1f7d14 | ||
|
|
79b0dd3287 | ||
|
|
0787a44d99 | ||
|
|
fd11286290 | ||
|
|
22dc864d60 | ||
|
|
9d2f46ce4e |
@@ -4,6 +4,8 @@ set -o xtrace
|
|||||||
|
|
||||||
if [ "$(uname -s)" == "Darwin" ]; then
|
if [ "$(uname -s)" == "Darwin" ]; then
|
||||||
sudo softwareupdate --install-rosetta --agree-to-license
|
sudo softwareupdate --install-rosetta --agree-to-license
|
||||||
|
else
|
||||||
|
docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$PYTHON --version
|
$PYTHON --version
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ linux_x86_task:
|
|||||||
memory: 8G
|
memory: 8G
|
||||||
|
|
||||||
install_pre_requirements_script:
|
install_pre_requirements_script:
|
||||||
|
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
||||||
- apt install -y python3-venv python-is-python3
|
- apt install -y python3-venv python-is-python3
|
||||||
<<: *RUN_TESTS
|
<<: *RUN_TESTS
|
||||||
|
|
||||||
@@ -30,6 +31,7 @@ linux_aarch64_task:
|
|||||||
memory: 4G
|
memory: 4G
|
||||||
|
|
||||||
install_pre_requirements_script:
|
install_pre_requirements_script:
|
||||||
|
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
||||||
- apt install -y python3-venv python-is-python3
|
- apt install -y python3-venv python-is-python3
|
||||||
<<: *RUN_TESTS
|
<<: *RUN_TESTS
|
||||||
|
|
||||||
|
|||||||
@@ -13,16 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build SDist and wheel
|
- uses: hynek/build-and-inspect-python-package@v2
|
||||||
run: pipx run build
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: cibw-sdist
|
|
||||||
path: dist/*
|
|
||||||
|
|
||||||
- name: Check metadata
|
|
||||||
run: pipx run twine check dist/*
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: [dist]
|
needs: [dist]
|
||||||
@@ -38,13 +29,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: cibw-*
|
name: Packages
|
||||||
path: dist
|
path: dist
|
||||||
merge-multiple: true
|
|
||||||
|
|
||||||
- name: Generate artifact attestation for sdist and wheel
|
- name: Generate artifact attestation for sdist and wheel
|
||||||
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
|
||||||
with:
|
with:
|
||||||
subject-path: "dist/cibuildwheel-*"
|
subject-path: "dist/cibuildwheel-*"
|
||||||
|
|
||||||
- uses: pypa/gh-action-pypi-publish@release/v1
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
attestations: true
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
|
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
|
||||||
python_version: ['3.12']
|
python_version: ['3.13']
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
python_version: '3.8'
|
python_version: '3.8'
|
||||||
@@ -49,8 +49,9 @@ jobs:
|
|||||||
name: Install Python ${{ matrix.python_version }}
|
name: Install Python ${{ matrix.python_version }}
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python_version }}
|
python-version: ${{ matrix.python_version }}
|
||||||
|
allow-prereleases: true
|
||||||
|
|
||||||
- uses: yezz123/setup-uv@v4
|
- uses: astral-sh/setup-uv@v3
|
||||||
|
|
||||||
# free some space to prevent reaching GHA disk space limits
|
# free some space to prevent reaching GHA disk space limits
|
||||||
- name: Clean docker images
|
- name: Clean docker images
|
||||||
@@ -59,6 +60,11 @@ jobs:
|
|||||||
docker system prune -a -f
|
docker system prune -a -f
|
||||||
df -h
|
df -h
|
||||||
|
|
||||||
|
# for oci_container unit tests
|
||||||
|
- name: Set up QEMU
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
uv pip install --system ".[test]"
|
uv pip install --system ".[test]"
|
||||||
@@ -104,7 +110,7 @@ jobs:
|
|||||||
output-dir: wheelhouse_config_file
|
output-dir: wheelhouse_config_file
|
||||||
config-file: sample_proj/cibw.toml
|
config-file: sample_proj/cibw.toml
|
||||||
|
|
||||||
- name: Check Action artefacts
|
- name: Check Action artifacts
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
test $(find wheelhouse -name '*.whl' | wc -l) -ge 1
|
test $(find wheelhouse -name '*.whl' | wc -l) -ge 1
|
||||||
@@ -157,10 +163,7 @@ jobs:
|
|||||||
run: python -m pip install ".[test,uv]"
|
run: python -m pip install ".[test,uv]"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
|
||||||
platforms: all
|
|
||||||
|
|
||||||
- name: Run the emulation tests
|
- name: Run the emulation tests
|
||||||
run: pytest --run-emulation ${{ matrix.arch }} test/test_emulation.py
|
run: pytest --run-emulation ${{ matrix.arch }} test/test_emulation.py
|
||||||
|
|||||||
@@ -20,6 +20,16 @@ jobs:
|
|||||||
if: github.repository_owner == 'pypa' || github.event_name != 'schedule'
|
if: github.repository_owner == 'pypa' || github.event_name != 'schedule'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# we use this step to grab a Github App auth token, so that PRs generated by this workflow
|
||||||
|
# run the GHA tests.
|
||||||
|
- uses: actions/create-github-app-token@v1
|
||||||
|
id: generate-token
|
||||||
|
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.CIBUILDWHEEL_BOT_APP_ID }}
|
||||||
|
private_key: ${{ secrets.CIBUILDWHEEL_BOT_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: wntrblm/nox@2024.04.15
|
- uses: wntrblm/nox@2024.04.15
|
||||||
@@ -33,18 +43,9 @@ jobs:
|
|||||||
- name: "Run update: docs user projects"
|
- name: "Run update: docs user projects"
|
||||||
run: nox --force-color -s update_proj -- --auth=${{ secrets.GITHUB_TOKEN }}
|
run: nox --force-color -s update_proj -- --auth=${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# we use this step to grab a Github App auth token, so that PRs generated by this workflow
|
|
||||||
# run the GHA tests.
|
|
||||||
- uses: tibdex/github-app-token@v2
|
|
||||||
id: generate-token
|
|
||||||
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
|
|
||||||
with:
|
|
||||||
app_id: ${{ secrets.CIBUILDWHEEL_BOT_APP_ID }}
|
|
||||||
private_key: ${{ secrets.CIBUILDWHEEL_BOT_APP_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
|
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
|
||||||
uses: peter-evans/create-pull-request@v6
|
uses: peter-evans/create-pull-request@v7
|
||||||
with:
|
with:
|
||||||
commit-message: Update dependencies
|
commit-message: Update dependencies
|
||||||
title: '[Bot] Update dependencies'
|
title: '[Bot] Update dependencies'
|
||||||
@@ -53,7 +54,6 @@ jobs:
|
|||||||
|
|
||||||
PR generated by "Update dependencies" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
|
PR generated by "Update dependencies" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
|
||||||
branch: update-dependencies-pr
|
branch: update-dependencies-pr
|
||||||
committer: "cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>"
|
sign-commits: true
|
||||||
author: "cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>"
|
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ linux:
|
|||||||
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
||||||
command: ["dockerd-entrypoint.sh"]
|
command: ["dockerd-entrypoint.sh"]
|
||||||
variables:
|
variables:
|
||||||
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
# See https://github.com/docker-library/docker/pull/166
|
# See https://github.com/docker-library/docker/pull/166
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
@@ -14,6 +15,7 @@ linux:
|
|||||||
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
||||||
script:
|
script:
|
||||||
- curl -sSL https://get.docker.com/ | sh
|
- curl -sSL https://get.docker.com/ | sh
|
||||||
|
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
||||||
- python -m pip install -e ".[dev]" pytest-custom-exit-code
|
- python -m pip install -e ".[dev]" pytest-custom-exit-code
|
||||||
- python ./bin/run_tests.py
|
- python ./bin/run_tests.py
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
repos:
|
repos:
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.6.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
@@ -14,7 +14,7 @@ repos:
|
|||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.6.3
|
rev: v0.6.9
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: ["--fix", "--show-fixes"]
|
args: ["--fix", "--show-fixes"]
|
||||||
@@ -77,7 +77,7 @@ repos:
|
|||||||
|
|
||||||
|
|
||||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
rev: 0.29.2
|
rev: 0.29.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-dependabot
|
- id: check-dependabot
|
||||||
- id: check-github-actions
|
- id: check-github-actions
|
||||||
|
|||||||
+10
-1
@@ -20,6 +20,14 @@ jobs:
|
|||||||
group: edge
|
group: edge
|
||||||
virt: vm
|
virt: vm
|
||||||
env: PYTHON=python
|
env: PYTHON=python
|
||||||
|
# docker is outdated in the arm64-graviton2 vm focal image (19.x)
|
||||||
|
# we need to upgrade to get >= 24.0
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- sourceline: 'deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable'
|
||||||
|
packages:
|
||||||
|
- docker-ce docker-ce-cli containerd.io
|
||||||
|
|
||||||
- name: Linux | ppc64le | Python 3.9
|
- name: Linux | ppc64le | Python 3.9
|
||||||
python: 3.9
|
python: 3.9
|
||||||
@@ -48,8 +56,9 @@ jobs:
|
|||||||
env: PYTHON=python
|
env: PYTHON=python
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all; fi
|
||||||
- $PYTHON -m pip install -U pip
|
- $PYTHON -m pip install -U pip
|
||||||
- $PYTHON -m pip install -e ".[dev]" pytest-custom-exit-code
|
- $PYTHON -m pip install -e ".[test]" pytest-custom-exit-code
|
||||||
|
|
||||||
script: |
|
script: |
|
||||||
# travis_wait disable the output while waiting
|
# travis_wait disable the output while waiting
|
||||||
|
|||||||
@@ -22,27 +22,27 @@ Python wheels are great. Building them across **Mac, Linux, Windows**, on **mult
|
|||||||
What does it do?
|
What does it do?
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
| | macOS Intel | macOS Apple Silicon | Windows 64bit | Windows 32bit | Windows Arm64 | manylinux<br/>musllinux x86_64 | manylinux<br/>musllinux i686 | manylinux<br/>musllinux aarch64 | manylinux<br/>musllinux ppc64le | manylinux<br/>musllinux s390x | Pyodide |
|
| | macOS Intel | macOS Apple Silicon | Windows 64bit | Windows 32bit | Windows Arm64 | manylinux<br/>musllinux x86_64 | manylinux<br/>musllinux i686 | manylinux<br/>musllinux aarch64 | manylinux<br/>musllinux ppc64le | manylinux<br/>musllinux s390x | musllinux armv7l | Pyodide |
|
||||||
|----------------|----|-----|-----|-----|-----|----|-----|----|-----|-----|-----|
|
|----------------|----|-----|-----|-----|-----|----|-----|----|-----|-----|---|-----|
|
||||||
| CPython 3.6 | ✅ | N/A | ✅ | ✅ | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
| CPython 3.6 | ✅ | N/A | ✅ | ✅ | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
||||||
| CPython 3.7 | ✅ | N/A | ✅ | ✅ | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
| CPython 3.7 | ✅ | N/A | ✅ | ✅ | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
||||||
| CPython 3.8 | ✅ | ✅ | ✅ | ✅ | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
| CPython 3.8 | ✅ | ✅ | ✅ | ✅ | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
||||||
| CPython 3.9 | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
| CPython 3.9 | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
||||||
| CPython 3.10 | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
| CPython 3.10 | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
||||||
| CPython 3.11 | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
| CPython 3.11 | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
||||||
| CPython 3.12 | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | ✅⁴ |
|
| CPython 3.12 | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅⁴ |
|
||||||
| CPython 3.13³ | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
| CPython 3.13³ | ✅ | ✅ | ✅ | ✅ | ✅² | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
||||||
| PyPy 3.7 v7.3 | ✅ | N/A | ✅ | N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A | N/A |
|
| PyPy 3.7 v7.3 | ✅ | N/A | ✅ | N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A | N/A | N/A |
|
||||||
| PyPy 3.8 v7.3 | ✅ | ✅ | ✅ | N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A | N/A |
|
| PyPy 3.8 v7.3 | ✅ | ✅ | ✅ | N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A | N/A | N/A |
|
||||||
| PyPy 3.9 v7.3 | ✅ | ✅ | ✅ | N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A | N/A |
|
| PyPy 3.9 v7.3 | ✅ | ✅ | ✅ | N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A | N/A | N/A |
|
||||||
| PyPy 3.10 v7.3 | ✅ | ✅ | ✅ | N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A | N/A |
|
| PyPy 3.10 v7.3 | ✅ | ✅ | ✅ | N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A | N/A | N/A |
|
||||||
|
|
||||||
<sup>¹ PyPy is only supported for manylinux wheels.</sup><br>
|
<sup>¹ PyPy is only supported for manylinux wheels.</sup><br>
|
||||||
<sup>² Windows arm64 support is experimental.</sup><br>
|
<sup>² Windows arm64 support is experimental.</sup><br>
|
||||||
<sup>³ CPython 3.13 is built by default using Python RCs, starting with cibuildwheel 2.20. Free-threaded mode will still require opt-in using [`CIBW_FREE_THREADED_SUPPORT`](https://cibuildwheel.pypa.io/en/stable/options/#free-threaded-support).</sup><br>
|
<sup>³ Free-threaded mode requires opt-in using [`CIBW_FREE_THREADED_SUPPORT`](https://cibuildwheel.pypa.io/en/stable/options/#free-threaded-support).</sup><br>
|
||||||
<sup>⁴ Experimental, not yet supported on PyPI, but can be used directly in web deployment. Use `--platform pyodide` to build.</sup><br>
|
<sup>⁴ Experimental, not yet supported on PyPI, but can be used directly in web deployment. Use `--platform pyodide` to build.</sup><br>
|
||||||
|
|
||||||
- Builds manylinux, musllinux, macOS 10.9+, and Windows wheels for CPython and PyPy
|
- Builds manylinux, musllinux, macOS 10.9+ (10.13+ for Python 3.12+), and Windows wheels for CPython and PyPy
|
||||||
- Works on GitHub Actions, Azure Pipelines, Travis CI, AppVeyor, CircleCI, GitLab CI, and Cirrus CI
|
- Works on GitHub Actions, Azure Pipelines, Travis CI, AppVeyor, CircleCI, GitLab CI, and Cirrus CI
|
||||||
- Bundles shared library dependencies on Linux and macOS through [auditwheel](https://github.com/pypa/auditwheel) and [delocate](https://github.com/matthew-brett/delocate)
|
- Bundles shared library dependencies on Linux and macOS through [auditwheel](https://github.com/pypa/auditwheel) and [delocate](https://github.com/matthew-brett/delocate)
|
||||||
- Runs your library's tests against the wheel-installed version of your library
|
- Runs your library's tests against the wheel-installed version of your library
|
||||||
@@ -85,7 +85,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
|
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
|
||||||
- name: Install cibuildwheel
|
- name: Install cibuildwheel
|
||||||
run: python -m pip install cibuildwheel==2.20.0
|
run: python -m pip install cibuildwheel==2.21.3
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: python -m cibuildwheel --output-dir wheelhouse
|
run: python -m cibuildwheel --output-dir wheelhouse
|
||||||
@@ -211,8 +211,49 @@ Changelog
|
|||||||
|
|
||||||
<!-- this section was generated by bin/update_readme_changelog.py -- do not edit manually -->
|
<!-- this section was generated by bin/update_readme_changelog.py -- do not edit manually -->
|
||||||
|
|
||||||
|
### v2.21.3
|
||||||
|
|
||||||
|
_9 October 2024_
|
||||||
|
|
||||||
|
- 🛠 Update CPython 3.13 to 3.13.0 final release (#2032)
|
||||||
|
- 📚 Docs updates and tidy ups (#2035)
|
||||||
|
|
||||||
|
### v2.21.2
|
||||||
|
|
||||||
|
_2 October 2024_
|
||||||
|
|
||||||
|
- ✨ Adds support for building 32-bit armv7l wheels on musllinux. On a Linux system with emulation set up, set [CIBW_ARCHS](https://cibuildwheel.pypa.io/en/stable/options/#archs) to `armv7l` on Linux to try it out if you're interested! (#2017)
|
||||||
|
- 🐛 Fix Linux Podman builds on some systems (#2016)
|
||||||
|
- ✨ Adds official support for running on Python 3.13 (#2026)
|
||||||
|
- 🛠 Update CPython 3.13 to 3.13.0rc3 (#2029)
|
||||||
|
|
||||||
|
Note: the default [manylinux image](https://cibuildwheel.pypa.io/en/stable/options/#linux-image) is **scheduled to change** from `manylinux2014` to `manylinux_2_28` in a cibuildwheel release on or after **6th May 2025** - you can set the value now to avoid getting upgraded if you want. (#1992)
|
||||||
|
|
||||||
|
### v2.21.1
|
||||||
|
|
||||||
|
_16 September 2024_
|
||||||
|
|
||||||
|
- 🐛 Fix a bug in the Linux build, where files copied to the container would have invalid ownership permissions (#2007)
|
||||||
|
- 🐛 Fix a bug on Windows where cibuildwheel would call upon `uv` to install dependencies for versions of CPython that it does not support (#2005)
|
||||||
|
- 🐛 Fix a bug where `uv 0.4.10` would not use the right Python when testing on Linux. (#2008)
|
||||||
|
- 🛠 Bump our documentation pins, fixes an issue with a missing package (#2011)
|
||||||
|
|
||||||
|
### v2.21.0
|
||||||
|
|
||||||
|
_13 September 2024_
|
||||||
|
|
||||||
|
- ⚠️ Update CPython 3.12 to 3.12.6, which changes the macOS minimum deployment target on CPython 3.12 from macOS 10.9 to macOS 10.13 (#1998)
|
||||||
|
- 🛠 Changes the behaviour when inheriting `config-settings` in TOML overrides - rather than extending each key, which is rarely useful, individual keys will override previously set values. (#1803)
|
||||||
|
- 🛠 Update CPython 3.13 to 3.13.0rc2 (#1998)
|
||||||
|
- ✨ Adds support for multiarch OCI images (#1961)
|
||||||
|
- 🐛 Fixes some bugs building Linux wheels on macOS. (#1961)
|
||||||
|
- ⚠️ Changes the minimum version of Docker/Podman to Docker API version 1.43, Podman API version 3. The only mainstream runner this should affect is Travis Graviton2 runners - if so you can [upgrade your version of Docker](https://github.com/pypa/cibuildwheel/pull/1961#issuecomment-2304060019). (#1961)
|
||||||
|
|
||||||
|
|
||||||
### v2.20.0
|
### v2.20.0
|
||||||
|
|
||||||
|
_4 August 2024_
|
||||||
|
|
||||||
- 🌟 CPython 3.13 wheels are now built by default - without the `CIBW_PRERELEASE_PYTHONS` flag. It's time to build and upload these wheels to PyPI! This release includes CPython 3.13.0rc1, which is guaranteed to be ABI compatible with the final release. Free-threading is still behind a flag/config option. (#1950)
|
- 🌟 CPython 3.13 wheels are now built by default - without the `CIBW_PRERELEASE_PYTHONS` flag. It's time to build and upload these wheels to PyPI! This release includes CPython 3.13.0rc1, which is guaranteed to be ABI compatible with the final release. Free-threading is still behind a flag/config option. (#1950)
|
||||||
- ✨ Provide a `CIBW_ALLOW_EMPTY` environment variable as an alternative to the command line flag. (#1937)
|
- ✨ Provide a `CIBW_ALLOW_EMPTY` environment variable as an alternative to the command line flag. (#1937)
|
||||||
- 🐛 Don't use uv on PyPy3.8 on Windows, it stopped working starting in 0.2.25. Note that PyPy 3.8 is EoL. (#1868)
|
- 🐛 Don't use uv on PyPy3.8 on Windows, it stopped working starting in 0.2.25. Note that PyPy 3.8 is EoL. (#1868)
|
||||||
@@ -220,57 +261,6 @@ Changelog
|
|||||||
- 🛠 Undo cleaner output on pytest 8-8.2 now that 8.3 is out. (#1943)
|
- 🛠 Undo cleaner output on pytest 8-8.2 now that 8.3 is out. (#1943)
|
||||||
- 📚 Update examples to use Python 3.12 on host (cibuildwheel will require Python 3.11+ on the host machine starting in October 2024) (#1919)
|
- 📚 Update examples to use Python 3.12 on host (cibuildwheel will require Python 3.11+ on the host machine starting in October 2024) (#1919)
|
||||||
|
|
||||||
|
|
||||||
### v2.19.2
|
|
||||||
|
|
||||||
- 🐛 Update manylinux2014 pins to versions that support past-EoL CentOS 7 mirrors. (#1917)
|
|
||||||
- 🐛 Support `--no-isolation` with `build[uv]` build-frontend. (#1889)
|
|
||||||
- 🛠 Provide attestations for releases at <https://github.com/pypa/cibuildwheel/attestations>. (#1916)
|
|
||||||
- 🛠 Provide CPython 3.13.0b3. (#1913)
|
|
||||||
- 🛠 Remove some workarounds now that pip 21.1 is available. (#1891, #1892)
|
|
||||||
- 📚 Remove nosetest from our docs. (#1821)
|
|
||||||
- 📚 Document the macOS ARM workaround for 3.8 on GHA. (#1871)
|
|
||||||
- 📚 GitLab CI + macOS is now a supported platform with an example. (#1911)
|
|
||||||
|
|
||||||
|
|
||||||
### v2.19.1
|
|
||||||
|
|
||||||
- 🐛 Don't require setup-python on GHA for Pyodide (#1868)
|
|
||||||
- 🐛 Specify full python path for uv (fixes issue in 0.2.10 & 0.2.11) (#1881)
|
|
||||||
- 🛠 Update for pip 24.1b2 on CPython 3.13. (#1879)
|
|
||||||
- 🛠 Fix a warning in our schema generation script. (#1866)
|
|
||||||
- 🛠 Cleaner output on pytest 8-8.2. (#1865)
|
|
||||||
|
|
||||||
|
|
||||||
### v2.19.0
|
|
||||||
|
|
||||||
See the [release post](https://iscinumpy.dev/post/cibuildwheel-2-19-0/) for more info on new features!
|
|
||||||
|
|
||||||
- 🌟 Add Pyodide platform. Set with `--platform pyodide` or `CIBW_PLATFORM: pyodide` on Linux with a host Python 3.12 to build WebAssembly wheels. Not accepted on PyPI currently, but usable directly in a website using Pyodide, for live docs, etc. (#1456, #1859)
|
|
||||||
- 🌟 Add `build[uv]` backend, which will take a pre-existing uv install (or install `cibuildwheel[uv]`) and use `uv` for all environment setup and installs on Python 3.8+. This is significantly faster in most cases. (#1856)
|
|
||||||
- ✨ Add free-threaded macOS builds and update CPython to 3.13.0b2. (#1854)
|
|
||||||
- 🐛 Issue copying a wheel to a non-existent output dir fixed. (#1851, #1862)
|
|
||||||
- 🐛 Better determinism for the test environment seeding. (#1835)
|
|
||||||
- 🛠 `VIRTUAL_ENV` variable now set. (#1842)
|
|
||||||
- 🛠 Remove a pip<21.3 workaround. (#1842)
|
|
||||||
- 🛠 Error handling was refactored to use exceptions. (#1719)
|
|
||||||
- 🛠 Hardcoded paths in tests avoided. (#1834)
|
|
||||||
- 🛠 Single Python tests made more generic. (#1835)
|
|
||||||
- 🛠 Sped up our ci by splitting up emulation tests. (#1839)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### v2.18.1
|
|
||||||
|
|
||||||
- 🌟 Add free-threaded Linux and Windows builds for 3.13. New identifiers `cp313t-*`, new option `CIBW_FREE_THREADED_SUPPORT`/`tool.cibuildwheel.free-threaded-support` required to opt-in. [See the docs](https://cibuildwheel.pypa.io/en/stable/options/#free-threaded-support) for more information. (#1831)
|
|
||||||
- ✨ The `container-engine` is now a build (non-global) option. (#1792)
|
|
||||||
- 🛠 The build backend for cibuildwheel is now hatchling. (#1297)
|
|
||||||
- 🛠 Significant improvements and modernization to our noxfile. (#1823)
|
|
||||||
- 🛠 Use pylint's new GitHub Actions reporter instead of a custom matcher. (#1823)
|
|
||||||
- 🛠 Unpin virtualenv updates for Python 3.7+ (#1830)
|
|
||||||
- 🐛 Fix running linux tests from Windows or macOS ARM. (#1788)
|
|
||||||
- 📚 Fix our documentation build. (#1821)
|
|
||||||
|
|
||||||
<!-- END bin/update_readme_changelog.py -->
|
<!-- END bin/update_readme_changelog.py -->
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ init:
|
|||||||
if (-not ($BRANCH -eq 'main' -or $BRANCH.ToLower().StartsWith('appveyor-'))) {
|
if (-not ($BRANCH -eq 'main' -or $BRANCH.ToLower().StartsWith('appveyor-'))) {
|
||||||
$env:PYTEST_ADDOPTS = '-k "unit_test or test_0_basic" --suppress-no-test-exit-code'
|
$env:PYTEST_ADDOPTS = '-k "unit_test or test_0_basic" --suppress-no-test-exit-code'
|
||||||
}
|
}
|
||||||
|
if ($IsLinux) {
|
||||||
|
docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
||||||
|
}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python -m pip install -U pip
|
- python -m pip install -U pip
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
versionSpec: '3.8'
|
versionSpec: '3.8'
|
||||||
- bash: |
|
- bash: |
|
||||||
|
docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
||||||
python -m pip install -e ".[dev]"
|
python -m pip install -e ".[dev]"
|
||||||
python ./bin/run_tests.py
|
python ./bin/run_tests.py
|
||||||
|
|
||||||
|
|||||||
@@ -137,6 +137,9 @@ properties:
|
|||||||
musllinux-aarch64-image:
|
musllinux-aarch64-image:
|
||||||
type: string
|
type: string
|
||||||
description: Specify alternative manylinux / musllinux container images
|
description: Specify alternative manylinux / musllinux container images
|
||||||
|
musllinux-armv7l-image:
|
||||||
|
type: string
|
||||||
|
description: Specify alternative manylinux / musllinux container images
|
||||||
musllinux-i686-image:
|
musllinux-i686-image:
|
||||||
type: string
|
type: string
|
||||||
description: Specify alternative manylinux / musllinux container images
|
description: Specify alternative manylinux / musllinux container images
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ if __name__ == "__main__":
|
|||||||
# unit tests
|
# unit tests
|
||||||
unit_test_args = [sys.executable, "-m", "pytest", "unit_test"]
|
unit_test_args = [sys.executable, "-m", "pytest", "unit_test"]
|
||||||
|
|
||||||
if sys.platform.startswith("linux"):
|
if sys.platform.startswith("linux") and os.environ.get("CIBW_PLATFORM", "linux") == "linux":
|
||||||
# run the docker unit tests only on Linux
|
# run the docker unit tests only on Linux
|
||||||
unit_test_args += ["--run-docker"]
|
unit_test_args += ["--run-docker"]
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ images = [
|
|||||||
Image("musllinux_1_2", "aarch64", "quay.io/pypa/musllinux_1_2_aarch64", None),
|
Image("musllinux_1_2", "aarch64", "quay.io/pypa/musllinux_1_2_aarch64", None),
|
||||||
Image("musllinux_1_2", "ppc64le", "quay.io/pypa/musllinux_1_2_ppc64le", None),
|
Image("musllinux_1_2", "ppc64le", "quay.io/pypa/musllinux_1_2_ppc64le", None),
|
||||||
Image("musllinux_1_2", "s390x", "quay.io/pypa/musllinux_1_2_s390x", None),
|
Image("musllinux_1_2", "s390x", "quay.io/pypa/musllinux_1_2_s390x", None),
|
||||||
|
Image("musllinux_1_2", "armv7l", "quay.io/pypa/musllinux_1_2_armv7l", None),
|
||||||
]
|
]
|
||||||
|
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
__version__ = "2.20.0"
|
__version__ = "2.21.3"
|
||||||
|
|||||||
@@ -271,7 +271,6 @@ class PlatformModule(Protocol):
|
|||||||
def build(self, options: Options, tmp_path: Path) -> None: ...
|
def build(self, options: Options, tmp_path: Path) -> None: ...
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable-next=inconsistent-return-statements
|
|
||||||
def get_platform_module(platform: PlatformName) -> PlatformModule:
|
def get_platform_module(platform: PlatformName) -> PlatformModule:
|
||||||
if platform == "linux":
|
if platform == "linux":
|
||||||
return cibuildwheel.linux
|
return cibuildwheel.linux
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ class Architecture(Enum):
|
|||||||
aarch64 = "aarch64"
|
aarch64 = "aarch64"
|
||||||
ppc64le = "ppc64le"
|
ppc64le = "ppc64le"
|
||||||
s390x = "s390x"
|
s390x = "s390x"
|
||||||
|
armv7l = "armv7l"
|
||||||
|
|
||||||
# mac archs
|
# mac archs
|
||||||
universal2 = "universal2"
|
universal2 = "universal2"
|
||||||
@@ -64,7 +65,9 @@ class Architecture(Enum):
|
|||||||
if arch_str == "auto":
|
if arch_str == "auto":
|
||||||
result |= Architecture.auto_archs(platform=platform)
|
result |= Architecture.auto_archs(platform=platform)
|
||||||
elif arch_str == "native":
|
elif arch_str == "native":
|
||||||
result.add(Architecture(platform_module.machine()))
|
native_arch = Architecture.native_arch(platform=platform)
|
||||||
|
if native_arch:
|
||||||
|
result.add(native_arch)
|
||||||
elif arch_str == "all":
|
elif arch_str == "all":
|
||||||
result |= Architecture.all_archs(platform=platform)
|
result |= Architecture.all_archs(platform=platform)
|
||||||
elif arch_str == "auto64":
|
elif arch_str == "auto64":
|
||||||
@@ -130,6 +133,7 @@ class Architecture(Enum):
|
|||||||
Architecture.aarch64,
|
Architecture.aarch64,
|
||||||
Architecture.ppc64le,
|
Architecture.ppc64le,
|
||||||
Architecture.s390x,
|
Architecture.s390x,
|
||||||
|
Architecture.armv7l,
|
||||||
},
|
},
|
||||||
"macos": {Architecture.x86_64, Architecture.arm64, Architecture.universal2},
|
"macos": {Architecture.x86_64, Architecture.arm64, Architecture.universal2},
|
||||||
"windows": {Architecture.x86, Architecture.AMD64, Architecture.ARM64},
|
"windows": {Architecture.x86, Architecture.AMD64, Architecture.ARM64},
|
||||||
@@ -138,17 +142,15 @@ class Architecture(Enum):
|
|||||||
return all_archs_map[platform]
|
return all_archs_map[platform]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
# pylint: disable-next=inconsistent-return-statements
|
|
||||||
def bitness_archs(platform: PlatformName, bitness: Literal["64", "32"]) -> set[Architecture]:
|
def bitness_archs(platform: PlatformName, bitness: Literal["64", "32"]) -> set[Architecture]:
|
||||||
archs_32 = {Architecture.i686, Architecture.x86}
|
archs_32 = {Architecture.i686, Architecture.x86, Architecture.armv7l}
|
||||||
auto_archs = Architecture.auto_archs(platform)
|
auto_archs = Architecture.auto_archs(platform)
|
||||||
|
|
||||||
if bitness == "64":
|
if bitness == "64":
|
||||||
return auto_archs - archs_32
|
return auto_archs - archs_32
|
||||||
elif bitness == "32":
|
if bitness == "32":
|
||||||
return auto_archs & archs_32
|
return auto_archs & archs_32
|
||||||
else:
|
assert_never(bitness)
|
||||||
assert_never(bitness)
|
|
||||||
|
|
||||||
|
|
||||||
def allowed_architectures_check(
|
def allowed_architectures_check(
|
||||||
|
|||||||
@@ -58,3 +58,9 @@ class AlreadyBuiltWheelError(FatalError):
|
|||||||
)
|
)
|
||||||
super().__init__(message)
|
super().__init__(message)
|
||||||
self.return_code = 6
|
self.return_code = 6
|
||||||
|
|
||||||
|
|
||||||
|
class OCIEngineTooOldError(FatalError):
|
||||||
|
def __init__(self, message: str) -> None:
|
||||||
|
super().__init__(message)
|
||||||
|
self.return_code = 7
|
||||||
|
|||||||
+15
-5
@@ -14,7 +14,7 @@ from . import errors
|
|||||||
from ._compat.typing import assert_never
|
from ._compat.typing import assert_never
|
||||||
from .architecture import Architecture
|
from .architecture import Architecture
|
||||||
from .logger import log
|
from .logger import log
|
||||||
from .oci_container import OCIContainer, OCIContainerEngineConfig
|
from .oci_container import OCIContainer, OCIContainerEngineConfig, OCIPlatform
|
||||||
from .options import BuildOptions, Options
|
from .options import BuildOptions, Options
|
||||||
from .typing import PathOrStr
|
from .typing import PathOrStr
|
||||||
from .util import (
|
from .util import (
|
||||||
@@ -29,6 +29,15 @@ from .util import (
|
|||||||
unwrap,
|
unwrap,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ARCHITECTURE_OCI_PLATFORM_MAP = {
|
||||||
|
Architecture.x86_64: OCIPlatform.AMD64,
|
||||||
|
Architecture.i686: OCIPlatform.i386,
|
||||||
|
Architecture.aarch64: OCIPlatform.ARM64,
|
||||||
|
Architecture.ppc64le: OCIPlatform.PPC64LE,
|
||||||
|
Architecture.s390x: OCIPlatform.S390X,
|
||||||
|
Architecture.armv7l: OCIPlatform.ARMV7,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class PythonConfiguration:
|
class PythonConfiguration:
|
||||||
@@ -196,6 +205,8 @@ def build_in_container(
|
|||||||
|
|
||||||
dependency_constraint_flags: list[PathOrStr] = []
|
dependency_constraint_flags: list[PathOrStr] = []
|
||||||
|
|
||||||
|
log.step("Setting up build environment...")
|
||||||
|
|
||||||
if build_options.dependency_constraints:
|
if build_options.dependency_constraints:
|
||||||
constraints_file = build_options.dependency_constraints.get_for_python_version(
|
constraints_file = build_options.dependency_constraints.get_for_python_version(
|
||||||
config.version
|
config.version
|
||||||
@@ -205,8 +216,6 @@ def build_in_container(
|
|||||||
container.copy_into(constraints_file, container_constraints_file)
|
container.copy_into(constraints_file, container_constraints_file)
|
||||||
dependency_constraint_flags = ["-c", container_constraints_file]
|
dependency_constraint_flags = ["-c", container_constraints_file]
|
||||||
|
|
||||||
log.step("Setting up build environment...")
|
|
||||||
|
|
||||||
env = container.get_environment()
|
env = container.get_environment()
|
||||||
env["PIP_DISABLE_PIP_VERSION_CHECK"] = "1"
|
env["PIP_DISABLE_PIP_VERSION_CHECK"] = "1"
|
||||||
env["PIP_ROOT_USER_ACTION"] = "ignore"
|
env["PIP_ROOT_USER_ACTION"] = "ignore"
|
||||||
@@ -337,7 +346,7 @@ def build_in_container(
|
|||||||
venv_dir = testing_temp_dir / "venv"
|
venv_dir = testing_temp_dir / "venv"
|
||||||
|
|
||||||
if use_uv:
|
if use_uv:
|
||||||
container.call(["uv", "venv", venv_dir], env=env)
|
container.call(["uv", "venv", venv_dir, "--python", python_bin / "python"], env=env)
|
||||||
else:
|
else:
|
||||||
# Use embedded dependencies from virtualenv to ensure determinism
|
# Use embedded dependencies from virtualenv to ensure determinism
|
||||||
venv_args = ["--no-periodic-update", "--pip=embed"]
|
venv_args = ["--no-periodic-update", "--pip=embed"]
|
||||||
@@ -446,10 +455,11 @@ def build(options: Options, tmp_path: Path) -> None: # noqa: ARG001
|
|||||||
log.step(f"Starting container image {build_step.container_image}...")
|
log.step(f"Starting container image {build_step.container_image}...")
|
||||||
|
|
||||||
print(f"info: This container will host the build for {', '.join(ids_to_build)}...")
|
print(f"info: This container will host the build for {', '.join(ids_to_build)}...")
|
||||||
|
architecture = Architecture(build_step.platform_tag.split("_", 1)[1])
|
||||||
|
|
||||||
with OCIContainer(
|
with OCIContainer(
|
||||||
image=build_step.container_image,
|
image=build_step.container_image,
|
||||||
enforce_32_bit=build_step.platform_tag.endswith("i686"),
|
oci_platform=ARCHITECTURE_OCI_PLATFORM_MAP[architecture],
|
||||||
cwd=container_project_path,
|
cwd=container_project_path,
|
||||||
engine=build_step.container_engine,
|
engine=build_step.container_engine,
|
||||||
) as container:
|
) as container:
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ PLATFORM_IDENTIFIER_DESCRIPTIONS: Final[dict[str, str]] = {
|
|||||||
"musllinux_i686": "musllinux i686",
|
"musllinux_i686": "musllinux i686",
|
||||||
"musllinux_aarch64": "musllinux aarch64",
|
"musllinux_aarch64": "musllinux aarch64",
|
||||||
"musllinux_ppc64le": "musllinux ppc64le",
|
"musllinux_ppc64le": "musllinux ppc64le",
|
||||||
"musllinux_s390x": "manylinux s390x",
|
"musllinux_s390x": "musllinux s390x",
|
||||||
|
"musllinux_armv7l": "musllinux armv7l",
|
||||||
"win32": "Windows 32bit",
|
"win32": "Windows 32bit",
|
||||||
"win_amd64": "Windows 64bit",
|
"win_amd64": "Windows 64bit",
|
||||||
"win_arm64": "Windows on ARM 64bit",
|
"win_arm64": "Windows on ARM 64bit",
|
||||||
|
|||||||
+10
-9
@@ -193,6 +193,11 @@ def install_pypy(tmp: Path, url: str) -> Path:
|
|||||||
return installation_path / "bin" / "pypy3"
|
return installation_path / "bin" / "pypy3"
|
||||||
|
|
||||||
|
|
||||||
|
def can_use_uv(python_configuration: PythonConfiguration) -> bool:
|
||||||
|
conditions = (Version(python_configuration.version) >= Version("3.8"),)
|
||||||
|
return all(conditions)
|
||||||
|
|
||||||
|
|
||||||
def setup_python(
|
def setup_python(
|
||||||
tmp: Path,
|
tmp: Path,
|
||||||
python_configuration: PythonConfiguration,
|
python_configuration: PythonConfiguration,
|
||||||
@@ -200,13 +205,11 @@ def setup_python(
|
|||||||
environment: ParsedEnvironment,
|
environment: ParsedEnvironment,
|
||||||
build_frontend: BuildFrontendName,
|
build_frontend: BuildFrontendName,
|
||||||
) -> tuple[Path, dict[str, str]]:
|
) -> tuple[Path, dict[str, str]]:
|
||||||
if build_frontend == "build[uv]" and Version(python_configuration.version) < Version("3.8"):
|
if build_frontend == "build[uv]" and not can_use_uv(python_configuration):
|
||||||
build_frontend = "build"
|
build_frontend = "build"
|
||||||
|
|
||||||
uv_path = find_uv()
|
uv_path = find_uv()
|
||||||
use_uv = build_frontend == "build[uv]" and Version(python_configuration.version) >= Version(
|
use_uv = build_frontend == "build[uv]"
|
||||||
"3.8"
|
|
||||||
)
|
|
||||||
|
|
||||||
tmp.mkdir()
|
tmp.mkdir()
|
||||||
implementation_id = python_configuration.identifier.split("-")[0]
|
implementation_id = python_configuration.identifier.split("-")[0]
|
||||||
@@ -294,10 +297,10 @@ def setup_python(
|
|||||||
# Set MACOSX_DEPLOYMENT_TARGET, if the user didn't set it.
|
# Set MACOSX_DEPLOYMENT_TARGET, if the user didn't set it.
|
||||||
# For arm64, the minimal deployment target is 11.0.
|
# For arm64, the minimal deployment target is 11.0.
|
||||||
# On x86_64 (or universal2), use 10.9 as a default.
|
# On x86_64 (or universal2), use 10.9 as a default.
|
||||||
# CPython 3.13 needs 10.13.
|
# CPython 3.12.6+ needs 10.13.
|
||||||
if config_is_arm64:
|
if config_is_arm64:
|
||||||
default_target = "11.0"
|
default_target = "11.0"
|
||||||
elif Version(python_configuration.version) >= Version("3.13"):
|
elif Version(python_configuration.version) >= Version("3.12"):
|
||||||
default_target = "10.13"
|
default_target = "10.13"
|
||||||
elif python_configuration.identifier.startswith("pp") and Version(
|
elif python_configuration.identifier.startswith("pp") and Version(
|
||||||
python_configuration.version
|
python_configuration.version
|
||||||
@@ -415,9 +418,7 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
for config in python_configurations:
|
for config in python_configurations:
|
||||||
build_options = options.build_options(config.identifier)
|
build_options = options.build_options(config.identifier)
|
||||||
build_frontend = build_options.build_frontend or BuildFrontendConfig("pip")
|
build_frontend = build_options.build_frontend or BuildFrontendConfig("pip")
|
||||||
use_uv = build_frontend.name == "build[uv]" and Version(config.version) >= Version(
|
use_uv = build_frontend.name == "build[uv]" and can_use_uv(config)
|
||||||
"3.8"
|
|
||||||
)
|
|
||||||
uv_path = find_uv()
|
uv_path = find_uv()
|
||||||
if use_uv and uv_path is None:
|
if use_uv and uv_path is None:
|
||||||
msg = "uv not found"
|
msg = "uv not found"
|
||||||
|
|||||||
+128
-38
@@ -8,18 +8,23 @@ import shlex
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import textwrap
|
||||||
import typing
|
import typing
|
||||||
import uuid
|
import uuid
|
||||||
from collections.abc import Mapping, Sequence
|
from collections.abc import Mapping, Sequence
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
|
from enum import Enum
|
||||||
from pathlib import Path, PurePath, PurePosixPath
|
from pathlib import Path, PurePath, PurePosixPath
|
||||||
from types import TracebackType
|
from types import TracebackType
|
||||||
from typing import IO, Dict, Literal
|
from typing import IO, Dict, Literal
|
||||||
|
|
||||||
from ._compat.typing import Self
|
from ._compat.typing import Self, assert_never
|
||||||
|
from .errors import OCIEngineTooOldError
|
||||||
|
from .logger import log
|
||||||
from .typing import PathOrStr, PopenBytes
|
from .typing import PathOrStr, PopenBytes
|
||||||
from .util import (
|
from .util import (
|
||||||
CIProvider,
|
CIProvider,
|
||||||
|
FlexibleVersion,
|
||||||
call,
|
call,
|
||||||
detect_ci_provider,
|
detect_ci_provider,
|
||||||
parse_key_value_string,
|
parse_key_value_string,
|
||||||
@@ -29,6 +34,16 @@ from .util import (
|
|||||||
ContainerEngineName = Literal["docker", "podman"]
|
ContainerEngineName = Literal["docker", "podman"]
|
||||||
|
|
||||||
|
|
||||||
|
# Order of the enum matters for tests. 386 shall appear before amd64.
|
||||||
|
class OCIPlatform(Enum):
|
||||||
|
i386 = "linux/386"
|
||||||
|
AMD64 = "linux/amd64"
|
||||||
|
ARMV7 = "linux/arm/v7"
|
||||||
|
ARM64 = "linux/arm64"
|
||||||
|
PPC64LE = "linux/ppc64le"
|
||||||
|
S390X = "linux/s390x"
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class OCIContainerEngineConfig:
|
class OCIContainerEngineConfig:
|
||||||
name: ContainerEngineName
|
name: ContainerEngineName
|
||||||
@@ -56,6 +71,15 @@ class OCIContainerEngineConfig:
|
|||||||
disable_host_mount = (
|
disable_host_mount = (
|
||||||
strtobool(disable_host_mount_options[-1]) if disable_host_mount_options else False
|
strtobool(disable_host_mount_options[-1]) if disable_host_mount_options else False
|
||||||
)
|
)
|
||||||
|
if "--platform" in create_args or any(arg.startswith("--platform=") for arg in create_args):
|
||||||
|
msg = "Using '--platform' in 'container-engine::create_args' is deprecated. It will be ignored."
|
||||||
|
log.warning(msg)
|
||||||
|
if "--platform" in create_args:
|
||||||
|
index = create_args.index("--platform")
|
||||||
|
create_args.pop(index)
|
||||||
|
create_args.pop(index)
|
||||||
|
else:
|
||||||
|
create_args = [arg for arg in create_args if not arg.startswith("--platform=")]
|
||||||
|
|
||||||
return OCIContainerEngineConfig(
|
return OCIContainerEngineConfig(
|
||||||
name=name, create_args=tuple(create_args), disable_host_mount=disable_host_mount
|
name=name, create_args=tuple(create_args), disable_host_mount=disable_host_mount
|
||||||
@@ -75,6 +99,52 @@ class OCIContainerEngineConfig:
|
|||||||
DEFAULT_ENGINE = OCIContainerEngineConfig("docker")
|
DEFAULT_ENGINE = OCIContainerEngineConfig("docker")
|
||||||
|
|
||||||
|
|
||||||
|
def _check_engine_version(engine: OCIContainerEngineConfig) -> None:
|
||||||
|
try:
|
||||||
|
version_string = call(engine.name, "version", "-f", "{{json .}}", capture_stdout=True)
|
||||||
|
version_info = json.loads(version_string.strip())
|
||||||
|
if engine.name == "docker":
|
||||||
|
client_api_version = FlexibleVersion(version_info["Client"]["ApiVersion"])
|
||||||
|
server_api_version = FlexibleVersion(version_info["Server"]["ApiVersion"])
|
||||||
|
# --platform support was introduced in 1.32 as experimental, 1.41 removed the experimental flag
|
||||||
|
version = min(client_api_version, server_api_version)
|
||||||
|
minimum_version = FlexibleVersion("1.41")
|
||||||
|
minimum_version_str = "20.10.0" # docker version
|
||||||
|
error_msg = textwrap.dedent(
|
||||||
|
f"""
|
||||||
|
Build failed because {engine.name} is too old.
|
||||||
|
|
||||||
|
cibuildwheel requires {engine.name}>={minimum_version_str} running API version {minimum_version}.
|
||||||
|
The API version found by cibuildwheel is {version}.
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
elif engine.name == "podman":
|
||||||
|
# podman uses the same version string for "Version" & "ApiVersion"
|
||||||
|
client_version = FlexibleVersion(version_info["Client"]["Version"])
|
||||||
|
if "Server" in version_info:
|
||||||
|
server_version = FlexibleVersion(version_info["Server"]["Version"])
|
||||||
|
else:
|
||||||
|
server_version = client_version
|
||||||
|
# --platform support was introduced in v3
|
||||||
|
version = min(client_version, server_version)
|
||||||
|
minimum_version = FlexibleVersion("3")
|
||||||
|
error_msg = textwrap.dedent(
|
||||||
|
f"""
|
||||||
|
Build failed because {engine.name} is too old.
|
||||||
|
|
||||||
|
cibuildwheel requires {engine.name}>={minimum_version}.
|
||||||
|
The version found by cibuildwheel is {version}.
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
assert_never(engine.name)
|
||||||
|
if version < minimum_version:
|
||||||
|
raise OCIEngineTooOldError(error_msg) from None
|
||||||
|
except (subprocess.CalledProcessError, KeyError, ValueError) as e:
|
||||||
|
msg = f"Build failed because {engine.name} is too old or is not working properly."
|
||||||
|
raise OCIEngineTooOldError(msg) from e
|
||||||
|
|
||||||
|
|
||||||
class OCIContainer:
|
class OCIContainer:
|
||||||
"""
|
"""
|
||||||
An object that represents a running OCI (e.g. Docker) container.
|
An object that represents a running OCI (e.g. Docker) container.
|
||||||
@@ -108,7 +178,7 @@ class OCIContainer:
|
|||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
image: str,
|
image: str,
|
||||||
enforce_32_bit: bool = False,
|
oci_platform: OCIPlatform,
|
||||||
cwd: PathOrStr | None = None,
|
cwd: PathOrStr | None = None,
|
||||||
engine: OCIContainerEngineConfig = DEFAULT_ENGINE,
|
engine: OCIContainerEngineConfig = DEFAULT_ENGINE,
|
||||||
):
|
):
|
||||||
@@ -117,14 +187,48 @@ class OCIContainer:
|
|||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
|
|
||||||
self.image = image
|
self.image = image
|
||||||
self.enforce_32_bit = enforce_32_bit
|
self.oci_platform = oci_platform
|
||||||
self.cwd = cwd
|
self.cwd = cwd
|
||||||
self.name: str | None = None
|
self.name: str | None = None
|
||||||
self.engine = engine
|
self.engine = engine
|
||||||
|
self.host_tar_format = ""
|
||||||
|
if sys.platform.startswith("darwin"):
|
||||||
|
self.host_tar_format = "--format gnutar"
|
||||||
|
|
||||||
|
def _get_platform_args(self, *, oci_platform: OCIPlatform | None = None) -> tuple[str, str]:
|
||||||
|
if oci_platform is None:
|
||||||
|
oci_platform = self.oci_platform
|
||||||
|
|
||||||
|
# we need '--pull=always' otherwise some images with the wrong platform get re-used (e.g. 386 image for amd64)
|
||||||
|
# c.f. https://github.com/moby/moby/issues/48197#issuecomment-2282802313
|
||||||
|
pull = "always"
|
||||||
|
try:
|
||||||
|
image_platform = call(
|
||||||
|
self.engine.name,
|
||||||
|
"image",
|
||||||
|
"inspect",
|
||||||
|
self.image,
|
||||||
|
"--format",
|
||||||
|
(
|
||||||
|
"{{.Os}}/{{.Architecture}}/{{.Variant}}"
|
||||||
|
if len(oci_platform.value.split("/")) == 3
|
||||||
|
else "{{.Os}}/{{.Architecture}}"
|
||||||
|
),
|
||||||
|
capture_stdout=True,
|
||||||
|
).strip()
|
||||||
|
if image_platform == oci_platform.value:
|
||||||
|
# in case the correct image is already present, don't pull
|
||||||
|
# this allows to run local only images
|
||||||
|
pull = "never"
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
pass
|
||||||
|
return f"--platform={oci_platform.value}", f"--pull={pull}"
|
||||||
|
|
||||||
def __enter__(self) -> Self:
|
def __enter__(self) -> Self:
|
||||||
self.name = f"cibuildwheel-{uuid.uuid4()}"
|
self.name = f"cibuildwheel-{uuid.uuid4()}"
|
||||||
|
|
||||||
|
_check_engine_version(self.engine)
|
||||||
|
|
||||||
# work-around for Travis-CI PPC64le Docker runs since 2021:
|
# work-around for Travis-CI PPC64le Docker runs since 2021:
|
||||||
# this avoids network splits
|
# this avoids network splits
|
||||||
# https://github.com/pypa/cibuildwheel/issues/904
|
# https://github.com/pypa/cibuildwheel/issues/904
|
||||||
@@ -133,15 +237,28 @@ class OCIContainer:
|
|||||||
if detect_ci_provider() == CIProvider.travis_ci and platform.machine() == "ppc64le":
|
if detect_ci_provider() == CIProvider.travis_ci and platform.machine() == "ppc64le":
|
||||||
network_args = ["--network=host"]
|
network_args = ["--network=host"]
|
||||||
|
|
||||||
|
platform_args = self._get_platform_args()
|
||||||
|
|
||||||
simulate_32_bit = False
|
simulate_32_bit = False
|
||||||
if self.enforce_32_bit:
|
if self.oci_platform in {OCIPlatform.i386, OCIPlatform.ARMV7}:
|
||||||
# If the architecture running the image is already the right one
|
# If the architecture running the image is already the right one
|
||||||
# or the image entrypoint takes care of enforcing this, then we don't need to
|
# or the image entrypoint takes care of enforcing this, then we don't need to
|
||||||
# simulate this
|
# simulate this
|
||||||
container_machine = call(
|
run_cmd = [self.engine.name, "run", "--rm"]
|
||||||
self.engine.name, "run", "--rm", self.image, "uname", "-m", capture_stdout=True
|
ctr_cmd = ["uname", "-m"]
|
||||||
).strip()
|
try:
|
||||||
simulate_32_bit = container_machine != "i686"
|
container_machine = call(
|
||||||
|
*run_cmd, *platform_args, self.image, *ctr_cmd, capture_stdout=True
|
||||||
|
).strip()
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
if self.oci_platform == OCIPlatform.i386:
|
||||||
|
# The image might have been built with amd64 architecture
|
||||||
|
# Let's try that
|
||||||
|
platform_args = self._get_platform_args(oci_platform=OCIPlatform.AMD64)
|
||||||
|
container_machine = call(
|
||||||
|
*run_cmd, *platform_args, self.image, *ctr_cmd, capture_stdout=True
|
||||||
|
).strip()
|
||||||
|
simulate_32_bit = container_machine not in {"i686", "armv7l", "armv8l"}
|
||||||
|
|
||||||
shell_args = ["linux32", "/bin/bash"] if simulate_32_bit else ["/bin/bash"]
|
shell_args = ["linux32", "/bin/bash"] if simulate_32_bit else ["/bin/bash"]
|
||||||
|
|
||||||
@@ -155,6 +272,7 @@ class OCIContainer:
|
|||||||
"--interactive",
|
"--interactive",
|
||||||
*(["--volume=/:/host"] if not self.engine.disable_host_mount else []),
|
*(["--volume=/:/host"] if not self.engine.disable_host_mount else []),
|
||||||
*network_args,
|
*network_args,
|
||||||
|
*platform_args,
|
||||||
*self.engine.create_args,
|
*self.engine.create_args,
|
||||||
self.image,
|
self.image,
|
||||||
*shell_args,
|
*shell_args,
|
||||||
@@ -221,15 +339,10 @@ class OCIContainer:
|
|||||||
self.name = None
|
self.name = None
|
||||||
|
|
||||||
def copy_into(self, from_path: Path, to_path: PurePath) -> None:
|
def copy_into(self, from_path: Path, to_path: PurePath) -> None:
|
||||||
# `docker cp` causes 'no space left on device' error when
|
|
||||||
# a container is running and the host filesystem is
|
|
||||||
# mounted. https://github.com/moby/moby/issues/38995
|
|
||||||
# Use `docker exec` instead.
|
|
||||||
|
|
||||||
if from_path.is_dir():
|
if from_path.is_dir():
|
||||||
self.call(["mkdir", "-p", to_path])
|
self.call(["mkdir", "-p", to_path])
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
f"tar cf - . | {self.engine.name} exec -i {self.name} tar --no-same-owner -xC {shell_quote(to_path)} -f -",
|
f"tar -c {self.host_tar_format} -f - . | {self.engine.name} exec -i {self.name} tar --no-same-owner -xC {shell_quote(to_path)} -f -",
|
||||||
shell=True,
|
shell=True,
|
||||||
check=True,
|
check=True,
|
||||||
cwd=from_path,
|
cwd=from_path,
|
||||||
@@ -264,30 +377,7 @@ class OCIContainer:
|
|||||||
def copy_out(self, from_path: PurePath, to_path: Path) -> None:
|
def copy_out(self, from_path: PurePath, to_path: Path) -> None:
|
||||||
# note: we assume from_path is a dir
|
# note: we assume from_path is a dir
|
||||||
to_path.mkdir(parents=True, exist_ok=True)
|
to_path.mkdir(parents=True, exist_ok=True)
|
||||||
|
call(self.engine.name, "cp", f"{self.name}:{from_path}/.", to_path)
|
||||||
if self.engine.name == "podman":
|
|
||||||
subprocess.run(
|
|
||||||
[
|
|
||||||
self.engine.name,
|
|
||||||
"cp",
|
|
||||||
f"{self.name}:{from_path}/.",
|
|
||||||
str(to_path),
|
|
||||||
],
|
|
||||||
check=True,
|
|
||||||
cwd=to_path,
|
|
||||||
)
|
|
||||||
elif self.engine.name == "docker":
|
|
||||||
# There is a bug in docker that prevents a simple 'cp' invocation
|
|
||||||
# from working https://github.com/moby/moby/issues/38995
|
|
||||||
command = f"{self.engine.name} exec -i {self.name} tar -cC {shell_quote(from_path)} -f - . | tar -xf -"
|
|
||||||
subprocess.run(
|
|
||||||
command,
|
|
||||||
shell=True,
|
|
||||||
check=True,
|
|
||||||
cwd=to_path,
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
raise KeyError(self.engine.name)
|
|
||||||
|
|
||||||
def glob(self, path: PurePosixPath, pattern: str) -> list[PurePosixPath]:
|
def glob(self, path: PurePosixPath, pattern: str) -> list[PurePosixPath]:
|
||||||
glob_pattern = path.joinpath(pattern)
|
glob_pattern = path.joinpath(pattern)
|
||||||
|
|||||||
@@ -307,7 +307,6 @@ def _resolve_cascade(
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable-next=inconsistent-return-statements
|
|
||||||
def _apply_inherit_rule(
|
def _apply_inherit_rule(
|
||||||
before: str | None, after: str, rule: InheritRule, option_format: OptionFormat | None
|
before: str | None, after: str, rule: InheritRule, option_format: OptionFormat | None
|
||||||
) -> str:
|
) -> str:
|
||||||
@@ -329,10 +328,10 @@ def _apply_inherit_rule(
|
|||||||
|
|
||||||
if rule == InheritRule.APPEND:
|
if rule == InheritRule.APPEND:
|
||||||
return option_format.merge_values(before, after)
|
return option_format.merge_values(before, after)
|
||||||
elif rule == InheritRule.PREPEND:
|
if rule == InheritRule.PREPEND:
|
||||||
return option_format.merge_values(after, before)
|
return option_format.merge_values(after, before)
|
||||||
else:
|
|
||||||
assert_never(rule)
|
assert_never(rule)
|
||||||
|
|
||||||
|
|
||||||
def _stringify_setting(
|
def _stringify_setting(
|
||||||
|
|||||||
@@ -102,6 +102,15 @@ python_configurations = [
|
|||||||
{ identifier = "cp312-musllinux_s390x", version = "3.12", path_str = "/opt/python/cp312-cp312" },
|
{ identifier = "cp312-musllinux_s390x", version = "3.12", path_str = "/opt/python/cp312-cp312" },
|
||||||
{ identifier = "cp313-musllinux_s390x", version = "3.13", path_str = "/opt/python/cp313-cp313" },
|
{ identifier = "cp313-musllinux_s390x", version = "3.13", path_str = "/opt/python/cp313-cp313" },
|
||||||
{ identifier = "cp313t-musllinux_s390x", version = "3.13", path_str = "/opt/python/cp313-cp313t" },
|
{ identifier = "cp313t-musllinux_s390x", version = "3.13", path_str = "/opt/python/cp313-cp313t" },
|
||||||
|
{ identifier = "cp36-musllinux_armv7l", version = "3.6", path_str = "/opt/python/cp36-cp36m" },
|
||||||
|
{ identifier = "cp37-musllinux_armv7l", version = "3.7", path_str = "/opt/python/cp37-cp37m" },
|
||||||
|
{ identifier = "cp38-musllinux_armv7l", version = "3.8", path_str = "/opt/python/cp38-cp38" },
|
||||||
|
{ identifier = "cp39-musllinux_armv7l", version = "3.9", path_str = "/opt/python/cp39-cp39" },
|
||||||
|
{ identifier = "cp310-musllinux_armv7l", version = "3.10", path_str = "/opt/python/cp310-cp310" },
|
||||||
|
{ identifier = "cp311-musllinux_armv7l", version = "3.11", path_str = "/opt/python/cp311-cp311" },
|
||||||
|
{ identifier = "cp312-musllinux_armv7l", version = "3.12", path_str = "/opt/python/cp312-cp312" },
|
||||||
|
{ identifier = "cp313-musllinux_armv7l", version = "3.13", path_str = "/opt/python/cp313-cp313" },
|
||||||
|
{ identifier = "cp313t-musllinux_armv7l", version = "3.13", path_str = "/opt/python/cp313-cp313t" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[macos]
|
[macos]
|
||||||
@@ -120,15 +129,15 @@ python_configurations = [
|
|||||||
{ identifier = "cp311-macosx_x86_64", version = "3.11", url = "https://www.python.org/ftp/python/3.11.9/python-3.11.9-macos11.pkg" },
|
{ identifier = "cp311-macosx_x86_64", version = "3.11", url = "https://www.python.org/ftp/python/3.11.9/python-3.11.9-macos11.pkg" },
|
||||||
{ identifier = "cp311-macosx_arm64", version = "3.11", url = "https://www.python.org/ftp/python/3.11.9/python-3.11.9-macos11.pkg" },
|
{ identifier = "cp311-macosx_arm64", version = "3.11", url = "https://www.python.org/ftp/python/3.11.9/python-3.11.9-macos11.pkg" },
|
||||||
{ identifier = "cp311-macosx_universal2", version = "3.11", url = "https://www.python.org/ftp/python/3.11.9/python-3.11.9-macos11.pkg" },
|
{ identifier = "cp311-macosx_universal2", version = "3.11", url = "https://www.python.org/ftp/python/3.11.9/python-3.11.9-macos11.pkg" },
|
||||||
{ identifier = "cp312-macosx_x86_64", version = "3.12", url = "https://www.python.org/ftp/python/3.12.5/python-3.12.5-macos11.pkg" },
|
{ identifier = "cp312-macosx_x86_64", version = "3.12", url = "https://www.python.org/ftp/python/3.12.7/python-3.12.7-macos11.pkg" },
|
||||||
{ identifier = "cp312-macosx_arm64", version = "3.12", url = "https://www.python.org/ftp/python/3.12.5/python-3.12.5-macos11.pkg" },
|
{ identifier = "cp312-macosx_arm64", version = "3.12", url = "https://www.python.org/ftp/python/3.12.7/python-3.12.7-macos11.pkg" },
|
||||||
{ identifier = "cp312-macosx_universal2", version = "3.12", url = "https://www.python.org/ftp/python/3.12.5/python-3.12.5-macos11.pkg" },
|
{ identifier = "cp312-macosx_universal2", version = "3.12", url = "https://www.python.org/ftp/python/3.12.7/python-3.12.7-macos11.pkg" },
|
||||||
{ identifier = "cp313-macosx_x86_64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0rc1-macos11.pkg" },
|
{ identifier = "cp313-macosx_x86_64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0-macos11.pkg" },
|
||||||
{ identifier = "cp313-macosx_arm64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0rc1-macos11.pkg" },
|
{ identifier = "cp313-macosx_arm64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0-macos11.pkg" },
|
||||||
{ identifier = "cp313-macosx_universal2", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0rc1-macos11.pkg" },
|
{ identifier = "cp313-macosx_universal2", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0-macos11.pkg" },
|
||||||
{ identifier = "cp313t-macosx_x86_64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0rc1-macos11.pkg" },
|
{ identifier = "cp313t-macosx_x86_64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0-macos11.pkg" },
|
||||||
{ identifier = "cp313t-macosx_arm64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0rc1-macos11.pkg" },
|
{ identifier = "cp313t-macosx_arm64", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0-macos11.pkg" },
|
||||||
{ identifier = "cp313t-macosx_universal2", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0rc1-macos11.pkg" },
|
{ identifier = "cp313t-macosx_universal2", version = "3.13", url = "https://www.python.org/ftp/python/3.13.0/python-3.13.0-macos11.pkg" },
|
||||||
{ identifier = "pp37-macosx_x86_64", version = "3.7", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.9-osx64.tar.bz2" },
|
{ identifier = "pp37-macosx_x86_64", version = "3.7", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.9-osx64.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_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" },
|
||||||
@@ -152,18 +161,18 @@ python_configurations = [
|
|||||||
{ identifier = "cp310-win_amd64", version = "3.10.11", arch = "64" },
|
{ identifier = "cp310-win_amd64", version = "3.10.11", arch = "64" },
|
||||||
{ identifier = "cp311-win32", version = "3.11.9", arch = "32" },
|
{ identifier = "cp311-win32", version = "3.11.9", arch = "32" },
|
||||||
{ identifier = "cp311-win_amd64", version = "3.11.9", arch = "64" },
|
{ identifier = "cp311-win_amd64", version = "3.11.9", arch = "64" },
|
||||||
{ identifier = "cp312-win32", version = "3.12.5", arch = "32" },
|
{ identifier = "cp312-win32", version = "3.12.7", arch = "32" },
|
||||||
{ identifier = "cp312-win_amd64", version = "3.12.5", arch = "64" },
|
{ identifier = "cp312-win_amd64", version = "3.12.7", arch = "64" },
|
||||||
{ identifier = "cp313-win32", version = "3.13.0-rc1", arch = "32" },
|
{ identifier = "cp313-win32", version = "3.13.0", arch = "32" },
|
||||||
{ identifier = "cp313t-win32", version = "3.13.0-rc1", arch = "32" },
|
{ identifier = "cp313t-win32", version = "3.13.0", arch = "32" },
|
||||||
{ identifier = "cp313-win_amd64", version = "3.13.0-rc1", arch = "64" },
|
{ identifier = "cp313-win_amd64", version = "3.13.0", arch = "64" },
|
||||||
{ identifier = "cp313t-win_amd64", version = "3.13.0-rc1", arch = "64" },
|
{ identifier = "cp313t-win_amd64", version = "3.13.0", 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.5", arch = "ARM64" },
|
{ identifier = "cp312-win_arm64", version = "3.12.7", arch = "ARM64" },
|
||||||
{ identifier = "cp313-win_arm64", version = "3.13.0-rc1", arch = "ARM64" },
|
{ identifier = "cp313-win_arm64", version = "3.13.0", arch = "ARM64" },
|
||||||
{ identifier = "cp313t-win_arm64", version = "3.13.0-rc1", arch = "ARM64" },
|
{ identifier = "cp313t-win_arm64", version = "3.13.0", arch = "ARM64" },
|
||||||
{ identifier = "pp37-win_amd64", version = "3.7", arch = "64", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.9-win64.zip" },
|
{ identifier = "pp37-win_amd64", version = "3.7", arch = "64", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.9-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 = "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" },
|
||||||
|
|||||||
@@ -312,6 +312,11 @@
|
|||||||
"description": "Specify alternative manylinux / musllinux container images",
|
"description": "Specify alternative manylinux / musllinux container images",
|
||||||
"title": "CIBW_MUSLLINUX_AARCH64_IMAGE"
|
"title": "CIBW_MUSLLINUX_AARCH64_IMAGE"
|
||||||
},
|
},
|
||||||
|
"musllinux-armv7l-image": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Specify alternative manylinux / musllinux container images",
|
||||||
|
"title": "CIBW_MUSLLINUX_ARMV7L_IMAGE"
|
||||||
|
},
|
||||||
"musllinux-i686-image": {
|
"musllinux-i686-image": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Specify alternative manylinux / musllinux container images",
|
"description": "Specify alternative manylinux / musllinux container images",
|
||||||
@@ -542,6 +547,9 @@
|
|||||||
"musllinux-aarch64-image": {
|
"musllinux-aarch64-image": {
|
||||||
"$ref": "#/properties/musllinux-aarch64-image"
|
"$ref": "#/properties/musllinux-aarch64-image"
|
||||||
},
|
},
|
||||||
|
"musllinux-armv7l-image": {
|
||||||
|
"$ref": "#/properties/musllinux-armv7l-image"
|
||||||
|
},
|
||||||
"musllinux-i686-image": {
|
"musllinux-i686-image": {
|
||||||
"$ref": "#/properties/musllinux-i686-image"
|
"$ref": "#/properties/musllinux-i686-image"
|
||||||
},
|
},
|
||||||
@@ -630,6 +638,9 @@
|
|||||||
"musllinux-aarch64-image": {
|
"musllinux-aarch64-image": {
|
||||||
"$ref": "#/properties/musllinux-aarch64-image"
|
"$ref": "#/properties/musllinux-aarch64-image"
|
||||||
},
|
},
|
||||||
|
"musllinux-armv7l-image": {
|
||||||
|
"$ref": "#/properties/musllinux-armv7l-image"
|
||||||
|
},
|
||||||
"musllinux-i686-image": {
|
"musllinux-i686-image": {
|
||||||
"$ref": "#/properties/musllinux-i686-image"
|
"$ref": "#/properties/musllinux-i686-image"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
# nox -s update_constraints
|
# nox -s update_constraints
|
||||||
annotated-types==0.7.0
|
annotated-types==0.7.0
|
||||||
# via pydantic
|
# via pydantic
|
||||||
anyio==4.4.0
|
anyio==4.6.0
|
||||||
# via httpx
|
# via httpx
|
||||||
auditwheel-emscripten==0.0.16
|
auditwheel-emscripten==0.0.16
|
||||||
# via pyodide-build
|
# via pyodide-build
|
||||||
build==1.2.1
|
build==1.2.2.post1
|
||||||
# via
|
# via
|
||||||
# -r .nox/update_constraints/tmp/constraints-pyodide.in
|
# -r .nox/update_constraints/tmp/constraints-pyodide.in
|
||||||
# pyodide-build
|
# pyodide-build
|
||||||
@@ -21,19 +21,19 @@ click==8.1.7
|
|||||||
# via typer
|
# via typer
|
||||||
cloudpickle==3.0.0
|
cloudpickle==3.0.0
|
||||||
# via loky
|
# via loky
|
||||||
cmake==3.30.2
|
cmake==3.30.4
|
||||||
# via pyodide-build
|
# via pyodide-build
|
||||||
distlib==0.3.8
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
filelock==3.15.4
|
filelock==3.16.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
h11==0.14.0
|
h11==0.14.0
|
||||||
# via httpcore
|
# via httpcore
|
||||||
httpcore==1.0.5
|
httpcore==1.0.6
|
||||||
# via httpx
|
# via httpx
|
||||||
httpx==0.27.2
|
httpx==0.27.2
|
||||||
# via unearth
|
# via unearth
|
||||||
idna==3.8
|
idna==3.10
|
||||||
# via
|
# via
|
||||||
# anyio
|
# anyio
|
||||||
# httpx
|
# httpx
|
||||||
@@ -54,13 +54,13 @@ packaging==24.1
|
|||||||
# unearth
|
# unearth
|
||||||
pip==24.2
|
pip==24.2
|
||||||
# via -r .nox/update_constraints/tmp/constraints-pyodide.in
|
# via -r .nox/update_constraints/tmp/constraints-pyodide.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.3.6
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pydantic==2.8.2
|
pydantic==2.9.2
|
||||||
# via
|
# via
|
||||||
# pyodide-build
|
# pyodide-build
|
||||||
# pyodide-lock
|
# pyodide-lock
|
||||||
pydantic-core==2.20.1
|
pydantic-core==2.23.4
|
||||||
# via pydantic
|
# via pydantic
|
||||||
pygments==2.18.0
|
pygments==2.18.0
|
||||||
# via rich
|
# via rich
|
||||||
@@ -72,7 +72,7 @@ pyodide-cli==0.2.4
|
|||||||
# pyodide-build
|
# pyodide-build
|
||||||
pyodide-lock==0.1.0a6
|
pyodide-lock==0.1.0a6
|
||||||
# via pyodide-build
|
# via pyodide-build
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
pyyaml==6.0.2
|
pyyaml==6.0.2
|
||||||
# via pyodide-build
|
# via pyodide-build
|
||||||
@@ -80,7 +80,7 @@ requests==2.32.3
|
|||||||
# via pyodide-build
|
# via pyodide-build
|
||||||
resolvelib==1.0.1
|
resolvelib==1.0.1
|
||||||
# via pyodide-build
|
# via pyodide-build
|
||||||
rich==13.8.0
|
rich==13.9.2
|
||||||
# via
|
# via
|
||||||
# pyodide-build
|
# pyodide-build
|
||||||
# pyodide-cli
|
# pyodide-cli
|
||||||
@@ -100,7 +100,7 @@ typer==0.12.5
|
|||||||
# auditwheel-emscripten
|
# auditwheel-emscripten
|
||||||
# pyodide-build
|
# pyodide-build
|
||||||
# pyodide-cli
|
# pyodide-cli
|
||||||
types-requests==2.32.0.20240712
|
types-requests==2.32.0.20240914
|
||||||
# via pyodide-build
|
# via pyodide-build
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via
|
# via
|
||||||
@@ -109,11 +109,11 @@ typing-extensions==4.12.2
|
|||||||
# typer
|
# typer
|
||||||
unearth==0.17.2
|
unearth==0.17.2
|
||||||
# via pyodide-build
|
# via pyodide-build
|
||||||
urllib3==2.2.2
|
urllib3==2.2.3
|
||||||
# via
|
# via
|
||||||
# requests
|
# requests
|
||||||
# types-requests
|
# types-requests
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via
|
# via
|
||||||
# build
|
# build
|
||||||
# pyodide-build
|
# pyodide-build
|
||||||
|
|||||||
@@ -2,15 +2,15 @@
|
|||||||
# nox -s update_constraints
|
# nox -s update_constraints
|
||||||
altgraph==0.17.4
|
altgraph==0.17.4
|
||||||
# via macholib
|
# via macholib
|
||||||
build==1.2.1
|
build==1.2.2.post1
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
delocate==0.12.0
|
delocate==0.12.0
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
distlib==0.3.8
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
filelock==3.15.4
|
filelock==3.16.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
importlib-metadata==8.4.0
|
importlib-metadata==8.5.0
|
||||||
# via build
|
# via build
|
||||||
macholib==1.16.3
|
macholib==1.16.3
|
||||||
# via delocate
|
# via delocate
|
||||||
@@ -20,15 +20,15 @@ packaging==24.1
|
|||||||
# delocate
|
# delocate
|
||||||
pip==24.2
|
pip==24.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.3.6
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
tomli==2.0.1
|
tomli==2.0.2
|
||||||
# via build
|
# via build
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
zipp==3.20.1
|
zipp==3.20.2
|
||||||
# via importlib-metadata
|
# via importlib-metadata
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
# nox -s update_constraints
|
# nox -s update_constraints
|
||||||
altgraph==0.17.4
|
altgraph==0.17.4
|
||||||
# via macholib
|
# via macholib
|
||||||
build==1.2.1
|
build==1.2.2.post1
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
delocate==0.12.0
|
delocate==0.12.0
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
distlib==0.3.8
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
filelock==3.15.4
|
filelock==3.16.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
macholib==1.16.3
|
macholib==1.16.3
|
||||||
# via delocate
|
# via delocate
|
||||||
@@ -18,11 +18,11 @@ packaging==24.1
|
|||||||
# delocate
|
# delocate
|
||||||
pip==24.2
|
pip==24.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.3.6
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
# nox -s update_constraints
|
# nox -s update_constraints
|
||||||
altgraph==0.17.4
|
altgraph==0.17.4
|
||||||
# via macholib
|
# via macholib
|
||||||
build==1.2.1
|
build==1.2.2.post1
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
delocate==0.12.0
|
delocate==0.12.0
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
distlib==0.3.8
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
filelock==3.15.4
|
filelock==3.16.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
macholib==1.16.3
|
macholib==1.16.3
|
||||||
# via delocate
|
# via delocate
|
||||||
@@ -18,11 +18,11 @@ packaging==24.1
|
|||||||
# delocate
|
# delocate
|
||||||
pip==24.2
|
pip==24.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.3.6
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
# nox -s update_constraints
|
# nox -s update_constraints
|
||||||
altgraph==0.17.4
|
altgraph==0.17.4
|
||||||
# via macholib
|
# via macholib
|
||||||
build==1.2.1
|
build==1.2.2.post1
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
delocate==0.12.0
|
delocate==0.12.0
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
distlib==0.3.8
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
filelock==3.15.4
|
filelock==3.16.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
macholib==1.16.3
|
macholib==1.16.3
|
||||||
# via delocate
|
# via delocate
|
||||||
@@ -18,11 +18,11 @@ packaging==24.1
|
|||||||
# delocate
|
# delocate
|
||||||
pip==24.2
|
pip==24.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.3.6
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ pip==24.0
|
|||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
platformdirs==4.0.0
|
platformdirs==4.0.0
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
tomli==2.0.1
|
tomli==2.0.1
|
||||||
# via build
|
# via build
|
||||||
@@ -33,7 +33,7 @@ typing-extensions==4.7.1
|
|||||||
# delocate
|
# delocate
|
||||||
# importlib-metadata
|
# importlib-metadata
|
||||||
# platformdirs
|
# platformdirs
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
zipp==3.15.0
|
zipp==3.15.0
|
||||||
# via importlib-metadata
|
# via importlib-metadata
|
||||||
|
|||||||
@@ -2,15 +2,15 @@
|
|||||||
# nox -s update_constraints
|
# nox -s update_constraints
|
||||||
altgraph==0.17.4
|
altgraph==0.17.4
|
||||||
# via macholib
|
# via macholib
|
||||||
build==1.2.1
|
build==1.2.2.post1
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
delocate==0.12.0
|
delocate==0.12.0
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
distlib==0.3.8
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
filelock==3.15.4
|
filelock==3.16.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
importlib-metadata==8.4.0
|
importlib-metadata==8.5.0
|
||||||
# via build
|
# via build
|
||||||
macholib==1.16.3
|
macholib==1.16.3
|
||||||
# via delocate
|
# via delocate
|
||||||
@@ -20,15 +20,15 @@ packaging==24.1
|
|||||||
# delocate
|
# delocate
|
||||||
pip==24.2
|
pip==24.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.3.6
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
tomli==2.0.1
|
tomli==2.0.2
|
||||||
# via build
|
# via build
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
zipp==3.20.1
|
zipp==3.20.2
|
||||||
# via importlib-metadata
|
# via importlib-metadata
|
||||||
|
|||||||
@@ -2,15 +2,15 @@
|
|||||||
# nox -s update_constraints
|
# nox -s update_constraints
|
||||||
altgraph==0.17.4
|
altgraph==0.17.4
|
||||||
# via macholib
|
# via macholib
|
||||||
build==1.2.1
|
build==1.2.2.post1
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
delocate==0.12.0
|
delocate==0.12.0
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
distlib==0.3.8
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
filelock==3.15.4
|
filelock==3.16.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
importlib-metadata==8.4.0
|
importlib-metadata==8.5.0
|
||||||
# via build
|
# via build
|
||||||
macholib==1.16.3
|
macholib==1.16.3
|
||||||
# via delocate
|
# via delocate
|
||||||
@@ -20,15 +20,15 @@ packaging==24.1
|
|||||||
# delocate
|
# delocate
|
||||||
pip==24.2
|
pip==24.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.3.6
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
tomli==2.0.1
|
tomli==2.0.2
|
||||||
# via build
|
# via build
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
zipp==3.20.1
|
zipp==3.20.2
|
||||||
# via importlib-metadata
|
# via importlib-metadata
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
# nox -s update_constraints
|
# nox -s update_constraints
|
||||||
altgraph==0.17.4
|
altgraph==0.17.4
|
||||||
# via macholib
|
# via macholib
|
||||||
build==1.2.1
|
build==1.2.2.post1
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
delocate==0.12.0
|
delocate==0.12.0
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
distlib==0.3.8
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
filelock==3.15.4
|
filelock==3.16.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
macholib==1.16.3
|
macholib==1.16.3
|
||||||
# via delocate
|
# via delocate
|
||||||
@@ -18,11 +18,11 @@ packaging==24.1
|
|||||||
# delocate
|
# delocate
|
||||||
pip==24.2
|
pip==24.2
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.3.6
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.2.0
|
||||||
# via build
|
# via build
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via delocate
|
# via delocate
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.6
|
||||||
# via -r cibuildwheel/resources/constraints.in
|
# via -r cibuildwheel/resources/constraints.in
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ musllinux-i686-image = "musllinux_1_2"
|
|||||||
musllinux-aarch64-image = "musllinux_1_2"
|
musllinux-aarch64-image = "musllinux_1_2"
|
||||||
musllinux-ppc64le-image = "musllinux_1_2"
|
musllinux-ppc64le-image = "musllinux_1_2"
|
||||||
musllinux-s390x-image = "musllinux_1_2"
|
musllinux-s390x-image = "musllinux_1_2"
|
||||||
|
musllinux-armv7l-image = "musllinux_1_2"
|
||||||
|
|
||||||
|
|
||||||
[tool.cibuildwheel.linux]
|
[tool.cibuildwheel.linux]
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
url = "https://nodejs.org/dist/"
|
url = "https://nodejs.org/dist/"
|
||||||
v20 = "v20.17.0"
|
v20 = "v20.18.0"
|
||||||
|
|||||||
@@ -1,54 +1,57 @@
|
|||||||
[x86_64]
|
[x86_64]
|
||||||
manylinux1 = quay.io/pypa/manylinux1_x86_64:2024-04-29-76807b8
|
manylinux1 = quay.io/pypa/manylinux1_x86_64:2024-04-29-76807b8
|
||||||
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2022-08-05-4535177
|
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2022-08-05-4535177
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2024.09.01-2
|
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2024.10.07-1
|
||||||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463
|
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2024.09.01-2
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2024.10.07-1
|
||||||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_x86_64:2024.09.01-2
|
musllinux_1_1 = quay.io/pypa/musllinux_1_1_x86_64:2024.10.07-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_x86_64:2024.09.01-2
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_x86_64:2024.10.07-1
|
||||||
|
|
||||||
[i686]
|
[i686]
|
||||||
manylinux1 = quay.io/pypa/manylinux1_i686:2024-04-29-76807b8
|
manylinux1 = quay.io/pypa/manylinux1_i686:2024-04-29-76807b8
|
||||||
manylinux2010 = quay.io/pypa/manylinux2010_i686:2022-08-05-4535177
|
manylinux2010 = quay.io/pypa/manylinux2010_i686:2022-08-05-4535177
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2024.09.01-2
|
manylinux2014 = quay.io/pypa/manylinux2014_i686:2024.10.07-1
|
||||||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2022-12-26-0d38463
|
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2022-12-26-0d38463
|
||||||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_i686:2024.09.01-2
|
musllinux_1_1 = quay.io/pypa/musllinux_1_1_i686:2024.10.07-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_i686:2024.09.01-2
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_i686:2024.10.07-1
|
||||||
|
|
||||||
[pypy_x86_64]
|
[pypy_x86_64]
|
||||||
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2022-08-05-4535177
|
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2022-08-05-4535177
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2024.09.01-2
|
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2024.10.07-1
|
||||||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463
|
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2024.09.01-2
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2024.10.07-1
|
||||||
|
|
||||||
[pypy_i686]
|
[pypy_i686]
|
||||||
manylinux2010 = quay.io/pypa/manylinux2010_i686:2022-08-05-4535177
|
manylinux2010 = quay.io/pypa/manylinux2010_i686:2022-08-05-4535177
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2024.09.01-2
|
manylinux2014 = quay.io/pypa/manylinux2014_i686:2024.10.07-1
|
||||||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2022-12-26-0d38463
|
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2022-12-26-0d38463
|
||||||
|
|
||||||
[aarch64]
|
[aarch64]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2024.09.01-2
|
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2024.10.07-1
|
||||||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2022-12-26-0d38463
|
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2022-12-26-0d38463
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2024.09.01-2
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2024.10.07-1
|
||||||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_aarch64:2024.09.01-2
|
musllinux_1_1 = quay.io/pypa/musllinux_1_1_aarch64:2024.10.07-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_aarch64:2024.09.01-2
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_aarch64:2024.10.07-1
|
||||||
|
|
||||||
[ppc64le]
|
[ppc64le]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2024.09.01-2
|
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2024.10.07-1
|
||||||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_ppc64le:2022-12-26-0d38463
|
manylinux_2_24 = quay.io/pypa/manylinux_2_24_ppc64le:2022-12-26-0d38463
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_ppc64le:2024.09.01-2
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_ppc64le:2024.10.07-1
|
||||||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_ppc64le:2024.09.01-2
|
musllinux_1_1 = quay.io/pypa/musllinux_1_1_ppc64le:2024.10.07-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_ppc64le:2024.09.01-2
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_ppc64le:2024.10.07-1
|
||||||
|
|
||||||
[s390x]
|
[s390x]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2024.09.01-2
|
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2024.10.07-1
|
||||||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_s390x:2022-12-26-0d38463
|
manylinux_2_24 = quay.io/pypa/manylinux_2_24_s390x:2022-12-26-0d38463
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_s390x:2024.09.01-2
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_s390x:2024.10.07-1
|
||||||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_s390x:2024.09.01-2
|
musllinux_1_1 = quay.io/pypa/musllinux_1_1_s390x:2024.10.07-1
|
||||||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_s390x:2024.09.01-2
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_s390x:2024.10.07-1
|
||||||
|
|
||||||
[pypy_aarch64]
|
[pypy_aarch64]
|
||||||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2024.09.01-2
|
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2024.10.07-1
|
||||||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2022-12-26-0d38463
|
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2022-12-26-0d38463
|
||||||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2024.09.01-2
|
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2024.10.07-1
|
||||||
|
|
||||||
|
[armv7l]
|
||||||
|
musllinux_1_2 = quay.io/pypa/musllinux_1_2_armv7l:2024.10.07-1
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
py36 = { version = "20.21.1", url = "https://github.com/pypa/get-virtualenv/blob/20.21.1/public/virtualenv.pyz?raw=true" }
|
py36 = { version = "20.21.1", url = "https://github.com/pypa/get-virtualenv/blob/20.21.1/public/virtualenv.pyz?raw=true" }
|
||||||
default = { version = "20.26.3", url = "https://github.com/pypa/get-virtualenv/blob/20.26.3/public/virtualenv.pyz?raw=true" }
|
default = { version = "20.26.6", url = "https://github.com/pypa/get-virtualenv/blob/20.26.6/public/virtualenv.pyz?raw=true" }
|
||||||
|
|||||||
+50
-1
@@ -19,7 +19,7 @@ from collections import defaultdict
|
|||||||
from collections.abc import Generator, Iterable, Mapping, MutableMapping, Sequence
|
from collections.abc import Generator, Iterable, Mapping, MutableMapping, Sequence
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from functools import lru_cache
|
from functools import lru_cache, total_ordering
|
||||||
from pathlib import Path, PurePath
|
from pathlib import Path, PurePath
|
||||||
from tempfile import TemporaryDirectory
|
from tempfile import TemporaryDirectory
|
||||||
from time import sleep
|
from time import sleep
|
||||||
@@ -83,6 +83,7 @@ MUSLLINUX_ARCHS: Final[tuple[str, ...]] = (
|
|||||||
"aarch64",
|
"aarch64",
|
||||||
"ppc64le",
|
"ppc64le",
|
||||||
"s390x",
|
"s390x",
|
||||||
|
"armv7l",
|
||||||
)
|
)
|
||||||
|
|
||||||
DEFAULT_CIBW_CACHE_PATH: Final[Path] = user_cache_path(appname="cibuildwheel", appauthor="pypa")
|
DEFAULT_CIBW_CACHE_PATH: Final[Path] = user_cache_path(appname="cibuildwheel", appauthor="pypa")
|
||||||
@@ -899,3 +900,51 @@ def combine_constraints(
|
|||||||
env["UV_CONSTRAINT"] = env["PIP_CONSTRAINT"] = " ".join(
|
env["UV_CONSTRAINT"] = env["PIP_CONSTRAINT"] = " ".join(
|
||||||
c for c in [our_constraints, user_constraints] if c
|
c for c in [our_constraints, user_constraints] if c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@total_ordering
|
||||||
|
class FlexibleVersion:
|
||||||
|
version_str: str
|
||||||
|
version_parts: tuple[int, ...]
|
||||||
|
suffix: str
|
||||||
|
|
||||||
|
def __init__(self, version_str: str) -> None:
|
||||||
|
self.version_str = version_str
|
||||||
|
|
||||||
|
# Split into numeric parts and the optional suffix
|
||||||
|
match = re.match(r"^[v]?(\d+(\.\d+)*)(.*)$", version_str)
|
||||||
|
if not match:
|
||||||
|
msg = f"Invalid version string: {version_str}"
|
||||||
|
raise ValueError(msg)
|
||||||
|
|
||||||
|
version_part, _, suffix = match.groups()
|
||||||
|
|
||||||
|
# Convert numeric version part into a tuple of integers
|
||||||
|
self.version_parts = tuple(map(int, version_part.split(".")))
|
||||||
|
self.suffix = suffix.strip() if suffix else ""
|
||||||
|
|
||||||
|
# Normalize by removing trailing zeros
|
||||||
|
self.version_parts = self._remove_trailing_zeros(self.version_parts)
|
||||||
|
|
||||||
|
def _remove_trailing_zeros(self, parts: tuple[int, ...]) -> tuple[int, ...]:
|
||||||
|
# Remove trailing zeros for accurate comparisons
|
||||||
|
# without this, "3.0" would be considered greater than "3"
|
||||||
|
while parts and parts[-1] == 0:
|
||||||
|
parts = parts[:-1]
|
||||||
|
return parts
|
||||||
|
|
||||||
|
def __eq__(self, other: object) -> bool:
|
||||||
|
if not isinstance(other, FlexibleVersion):
|
||||||
|
raise NotImplementedError()
|
||||||
|
return (self.version_parts, self.suffix) == (other.version_parts, other.suffix)
|
||||||
|
|
||||||
|
def __lt__(self, other: object) -> bool:
|
||||||
|
if not isinstance(other, FlexibleVersion):
|
||||||
|
raise NotImplementedError()
|
||||||
|
return (self.version_parts, self.suffix) < (other.version_parts, other.suffix)
|
||||||
|
|
||||||
|
def __repr__(self) -> str:
|
||||||
|
return f"FlexibleVersion('{self.version_str}')"
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
return self.version_str
|
||||||
|
|||||||
+13
-10
@@ -225,6 +225,14 @@ def setup_rust_cross_compile(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def can_use_uv(python_configuration: PythonConfiguration) -> bool:
|
||||||
|
conditions = (
|
||||||
|
Version(python_configuration.version) >= Version("3.8"),
|
||||||
|
not python_configuration.identifier.startswith("pp38-"),
|
||||||
|
)
|
||||||
|
return all(conditions)
|
||||||
|
|
||||||
|
|
||||||
def setup_python(
|
def setup_python(
|
||||||
tmp: Path,
|
tmp: Path,
|
||||||
python_configuration: PythonConfiguration,
|
python_configuration: PythonConfiguration,
|
||||||
@@ -254,11 +262,10 @@ def setup_python(
|
|||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
assert base_python.exists()
|
assert base_python.exists()
|
||||||
|
|
||||||
use_uv = (
|
if build_frontend == "build[uv]" and not can_use_uv(python_configuration):
|
||||||
build_frontend == "build[uv]"
|
build_frontend = "build"
|
||||||
and Version(python_configuration.version) >= Version("3.8")
|
|
||||||
and not python_configuration.identifier.startswith("pp38-")
|
use_uv = build_frontend == "build[uv]"
|
||||||
)
|
|
||||||
uv_path = find_uv()
|
uv_path = find_uv()
|
||||||
|
|
||||||
log.step("Setting up build environment...")
|
log.step("Setting up build environment...")
|
||||||
@@ -368,11 +375,7 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
for config in python_configurations:
|
for config in python_configurations:
|
||||||
build_options = options.build_options(config.identifier)
|
build_options = options.build_options(config.identifier)
|
||||||
build_frontend = build_options.build_frontend or BuildFrontendConfig("pip")
|
build_frontend = build_options.build_frontend or BuildFrontendConfig("pip")
|
||||||
use_uv = (
|
use_uv = build_frontend.name == "build[uv]" and can_use_uv(config)
|
||||||
build_frontend.name == "build[uv]"
|
|
||||||
and Version(config.version) >= Version("3.8")
|
|
||||||
and not config.identifier.startswith("pp38-")
|
|
||||||
)
|
|
||||||
log.build_start(config.identifier)
|
log.build_start(config.identifier)
|
||||||
|
|
||||||
identifier_tmp_dir = tmp_path / config.identifier
|
identifier_tmp_dir = tmp_path / config.identifier
|
||||||
|
|||||||
@@ -4,8 +4,49 @@ title: Changelog
|
|||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
### v2.21.3
|
||||||
|
|
||||||
|
_9 October 2024_
|
||||||
|
|
||||||
|
- 🛠 Update CPython 3.13 to 3.13.0 final release (#2032)
|
||||||
|
- 📚 Docs updates and tidy ups (#2035)
|
||||||
|
|
||||||
|
### v2.21.2
|
||||||
|
|
||||||
|
_2 October 2024_
|
||||||
|
|
||||||
|
- ✨ Adds support for building 32-bit armv7l wheels on musllinux. On a Linux system with emulation set up, set [CIBW_ARCHS](https://cibuildwheel.pypa.io/en/stable/options/#archs) to `armv7l` on Linux to try it out if you're interested! (#2017)
|
||||||
|
- 🐛 Fix Linux Podman builds on some systems (#2016)
|
||||||
|
- ✨ Adds official support for running on Python 3.13 (#2026)
|
||||||
|
- 🛠 Update CPython 3.13 to 3.13.0rc3 (#2029)
|
||||||
|
|
||||||
|
Note: the default [manylinux image](https://cibuildwheel.pypa.io/en/stable/options/#linux-image) is **scheduled to change** from `manylinux2014` to `manylinux_2_28` in a cibuildwheel release on or after **6th May 2025** - you can set the value now to avoid getting upgraded if you want. (#1992)
|
||||||
|
|
||||||
|
### v2.21.1
|
||||||
|
|
||||||
|
_16 September 2024_
|
||||||
|
|
||||||
|
- 🐛 Fix a bug in the Linux build, where files copied to the container would have invalid ownership permissions (#2007)
|
||||||
|
- 🐛 Fix a bug on Windows where cibuildwheel would call upon `uv` to install dependencies for versions of CPython that it does not support (#2005)
|
||||||
|
- 🐛 Fix a bug where `uv 0.4.10` would not use the right Python when testing on Linux. (#2008)
|
||||||
|
- 🛠 Bump our documentation pins, fixes an issue with a missing package (#2011)
|
||||||
|
|
||||||
|
### v2.21.0
|
||||||
|
|
||||||
|
_13 September 2024_
|
||||||
|
|
||||||
|
- ⚠️ Update CPython 3.12 to 3.12.6, which changes the macOS minimum deployment target on CPython 3.12 from macOS 10.9 to macOS 10.13 (#1998)
|
||||||
|
- 🛠 Changes the behaviour when inheriting `config-settings` in TOML overrides - rather than extending each key, which is rarely useful, individual keys will override previously set values. (#1803)
|
||||||
|
- 🛠 Update CPython 3.13 to 3.13.0rc2 (#1998)
|
||||||
|
- ✨ Adds support for multiarch OCI images (#1961)
|
||||||
|
- 🐛 Fixes some bugs building Linux wheels on macOS. (#1961)
|
||||||
|
- ⚠️ Changes the minimum version of Docker/Podman to Docker API version 1.43, Podman API version 3. The only mainstream runner this should affect is Travis Graviton2 runners - if so you can [upgrade your version of Docker](https://github.com/pypa/cibuildwheel/pull/1961#issuecomment-2304060019). (#1961)
|
||||||
|
|
||||||
|
|
||||||
### v2.20.0
|
### v2.20.0
|
||||||
|
|
||||||
|
_4 August 2024_
|
||||||
|
|
||||||
- 🌟 CPython 3.13 wheels are now built by default - without the `CIBW_PRERELEASE_PYTHONS` flag. It's time to build and upload these wheels to PyPI! This release includes CPython 3.13.0rc1, which is guaranteed to be ABI compatible with the final release. Free-threading is still behind a flag/config option. (#1950)
|
- 🌟 CPython 3.13 wheels are now built by default - without the `CIBW_PRERELEASE_PYTHONS` flag. It's time to build and upload these wheels to PyPI! This release includes CPython 3.13.0rc1, which is guaranteed to be ABI compatible with the final release. Free-threading is still behind a flag/config option. (#1950)
|
||||||
- ✨ Provide a `CIBW_ALLOW_EMPTY` environment variable as an alternative to the command line flag. (#1937)
|
- ✨ Provide a `CIBW_ALLOW_EMPTY` environment variable as an alternative to the command line flag. (#1937)
|
||||||
- 🐛 Don't use uv on PyPy3.8 on Windows, it stopped working starting in 0.2.25. Note that PyPy 3.8 is EoL. (#1868)
|
- 🐛 Don't use uv on PyPy3.8 on Windows, it stopped working starting in 0.2.25. Note that PyPy 3.8 is EoL. (#1868)
|
||||||
@@ -16,6 +57,8 @@ title: Changelog
|
|||||||
|
|
||||||
### v2.19.2
|
### v2.19.2
|
||||||
|
|
||||||
|
_2 July 2024_
|
||||||
|
|
||||||
- 🐛 Update manylinux2014 pins to versions that support past-EoL CentOS 7 mirrors. (#1917)
|
- 🐛 Update manylinux2014 pins to versions that support past-EoL CentOS 7 mirrors. (#1917)
|
||||||
- 🐛 Support `--no-isolation` with `build[uv]` build-frontend. (#1889)
|
- 🐛 Support `--no-isolation` with `build[uv]` build-frontend. (#1889)
|
||||||
- 🛠 Provide attestations for releases at <https://github.com/pypa/cibuildwheel/attestations>. (#1916)
|
- 🛠 Provide attestations for releases at <https://github.com/pypa/cibuildwheel/attestations>. (#1916)
|
||||||
@@ -28,6 +71,8 @@ title: Changelog
|
|||||||
|
|
||||||
### v2.19.1
|
### v2.19.1
|
||||||
|
|
||||||
|
_13 June 2024_
|
||||||
|
|
||||||
- 🐛 Don't require setup-python on GHA for Pyodide (#1868)
|
- 🐛 Don't require setup-python on GHA for Pyodide (#1868)
|
||||||
- 🐛 Specify full python path for uv (fixes issue in 0.2.10 & 0.2.11) (#1881)
|
- 🐛 Specify full python path for uv (fixes issue in 0.2.10 & 0.2.11) (#1881)
|
||||||
- 🛠 Update for pip 24.1b2 on CPython 3.13. (#1879)
|
- 🛠 Update for pip 24.1b2 on CPython 3.13. (#1879)
|
||||||
@@ -37,6 +82,8 @@ title: Changelog
|
|||||||
|
|
||||||
### v2.19.0
|
### v2.19.0
|
||||||
|
|
||||||
|
_10 June 2024_
|
||||||
|
|
||||||
See the [release post](https://iscinumpy.dev/post/cibuildwheel-2-19-0/) for more info on new features!
|
See the [release post](https://iscinumpy.dev/post/cibuildwheel-2-19-0/) for more info on new features!
|
||||||
|
|
||||||
- 🌟 Add Pyodide platform. Set with `--platform pyodide` or `CIBW_PLATFORM: pyodide` on Linux with a host Python 3.12 to build WebAssembly wheels. Not accepted on PyPI currently, but usable directly in a website using Pyodide, for live docs, etc. (#1456, #1859)
|
- 🌟 Add Pyodide platform. Set with `--platform pyodide` or `CIBW_PLATFORM: pyodide` on Linux with a host Python 3.12 to build WebAssembly wheels. Not accepted on PyPI currently, but usable directly in a website using Pyodide, for live docs, etc. (#1456, #1859)
|
||||||
@@ -55,6 +102,8 @@ See the [release post](https://iscinumpy.dev/post/cibuildwheel-2-19-0/) for more
|
|||||||
|
|
||||||
### v2.18.1
|
### v2.18.1
|
||||||
|
|
||||||
|
_20 May 2024_
|
||||||
|
|
||||||
- 🌟 Add free-threaded Linux and Windows builds for 3.13. New identifiers `cp313t-*`, new option `CIBW_FREE_THREADED_SUPPORT`/`tool.cibuildwheel.free-threaded-support` required to opt-in. [See the docs](https://cibuildwheel.pypa.io/en/stable/options/#free-threaded-support) for more information. (#1831)
|
- 🌟 Add free-threaded Linux and Windows builds for 3.13. New identifiers `cp313t-*`, new option `CIBW_FREE_THREADED_SUPPORT`/`tool.cibuildwheel.free-threaded-support` required to opt-in. [See the docs](https://cibuildwheel.pypa.io/en/stable/options/#free-threaded-support) for more information. (#1831)
|
||||||
- ✨ The `container-engine` is now a build (non-global) option. (#1792)
|
- ✨ The `container-engine` is now a build (non-global) option. (#1792)
|
||||||
- 🛠 The build backend for cibuildwheel is now hatchling. (#1297)
|
- 🛠 The build backend for cibuildwheel is now hatchling. (#1297)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Building Python wheels with modern C++ standards (C++11 and later) requires a fe
|
|||||||
|
|
||||||
|
|
||||||
## manylinux1 and C++14
|
## manylinux1 and C++14
|
||||||
The old `manylinux1` image (based on CentOS 5) contains a version of GCC and libstdc++ that only supports C++11 and earlier standards. There are however ways to compile wheels with the C++14 standard (and later): https://github.com/pypa/manylinux/issues/118
|
The past end-of-life `manylinux1` image (based on CentOS 5) contains a version of GCC and libstdc++ that only supports C++11 and earlier standards. There are however ways to compile wheels with the C++14 standard (and later): https://github.com/pypa/manylinux/issues/118
|
||||||
|
|
||||||
`manylinux2010` and `manylinux2014` are newer and support all C++ standards (up to C++17).
|
`manylinux2010` and `manylinux2014` are newer and support all C++ standards (up to C++17).
|
||||||
|
|
||||||
@@ -18,9 +18,8 @@ OS X/macOS allows you to specify a so-called "deployment target" version that wi
|
|||||||
|
|
||||||
However, to enable modern C++ standards, the deployment target needs to be set high enough (since older OS X/macOS versions did not have the necessary modern C++ standard library).
|
However, to enable modern C++ standards, the deployment target needs to be set high enough (since older OS X/macOS versions did not have the necessary modern C++ standard library).
|
||||||
|
|
||||||
To get C++11 and C++14 support, `MACOSX_DEPLOYMENT_TARGET` needs to be set to (at least) `"10.9"`. By default, `cibuildwheel` already does this, building 64-bit-only wheels for macOS 10.9 and later.
|
|
||||||
|
|
||||||
To get C++17 support, Xcode 9.3+ is needed, requiring at least macOS 10.13 on the build machine. To use C++17 library features and link against the C++ runtime library, set `MACOSX_DEPLOYMENT_TARGET` to `"10.13"` or `"10.14"` (or higher) - macOS 10.13 offers partial C++17 support (e.g., the filesystem header is in experimental, offering `#include <experimental/filesystem>` instead of `#include <filesystem>`); macOS 10.14 has full C++17 support.
|
To get C++17 support, Xcode 9.3+ is needed, requiring at least macOS 10.13 on the build machine. To use C++17 library features and link against the C++ runtime library, set `MACOSX_DEPLOYMENT_TARGET` to `"10.13"` or `"10.14"` (or higher) - macOS 10.13 offers partial C++17 support (e.g., the filesystem header is in experimental, offering `#include <experimental/filesystem>` instead of `#include <filesystem>`); macOS 10.14 has full C++17 support. CPython 3.12+ require 10.13+ anyway.
|
||||||
|
|
||||||
However, if only C++17 compiler and standard template library (STL) features are used (not needing a C++17 runtime) it might be possible to set `MACOSX_DEPLOYMENT_TARGET` to a lower value, such as `"10.9"`. To find out if this is the case, try compiling and running with a lower `MACOSX_DEPLOYMENT_TARGET`: if C++17 features are used that require a more recent deployment target, building the wheel should fail.
|
However, if only C++17 compiler and standard template library (STL) features are used (not needing a C++17 runtime) it might be possible to set `MACOSX_DEPLOYMENT_TARGET` to a lower value, such as `"10.9"`. To find out if this is the case, try compiling and running with a lower `MACOSX_DEPLOYMENT_TARGET`: if C++17 features are used that require a more recent deployment target, building the wheel should fail.
|
||||||
|
|
||||||
|
|||||||
@@ -258,6 +258,16 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rst-content table.docutils td code,
|
||||||
|
.rst-content table.docutils th code,
|
||||||
|
.rst-content table.field-list td code,
|
||||||
|
.rst-content table.field-list th code,
|
||||||
|
.wy-table td code,
|
||||||
|
.wy-table th code {
|
||||||
|
/* table elements are already made smaller, the code styling on top of that makes the text too small */
|
||||||
|
font-size: 82.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* expand all the toctree entries */
|
/* expand all the toctree entries */
|
||||||
.wy-menu-vertical .toctree-l1.current .toctree-l2>ul,
|
.wy-menu-vertical .toctree-l1.current .toctree-l2>ul,
|
||||||
|
|||||||
+3
-3
@@ -142,7 +142,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@v2.20.0
|
uses: pypa/cibuildwheel@v2.21.3
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
@@ -164,7 +164,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==2.20.0
|
cibuildwheel==2.21.3
|
||||||
```
|
```
|
||||||
|
|
||||||
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:
|
||||||
@@ -328,7 +328,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==2.20.0 --output-dir wheelhouse
|
pipx run cibuildwheel==2.21.3 --output-dir wheelhouse
|
||||||
pipx run twine upload wheelhouse/*.whl
|
pipx run twine upload wheelhouse/*.whl
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+50
-34
@@ -288,25 +288,35 @@ When setting the options, you can use shell-style globbing syntax, as per [fnmat
|
|||||||
|
|
||||||
<div class="build-id-table-marker"></div>
|
<div class="build-id-table-marker"></div>
|
||||||
|
|
||||||
| | macOS | Windows | Linux Intel | Linux Other |
|
| | macOS | Windows | Linux Intel | Linux Other |
|
||||||
|---------------|------------------------------------------------------------------------|-----------------------------------------------------|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|---------------|------------------------------------------------------------------------|-----------------------------------------------------|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| Python 3.6 | cp36-macosx_x86_64 | cp36-win_amd64<br/>cp36-win32 | cp36-manylinux_x86_64<br/>cp36-manylinux_i686<br/>cp36-musllinux_x86_64<br/>cp36-musllinux_i686 | cp36-manylinux_aarch64<br/>cp36-manylinux_ppc64le<br/>cp36-manylinux_s390x<br/>cp36-musllinux_aarch64<br/>cp36-musllinux_ppc64le<br/>cp36-musllinux_s390x |
|
| Python 3.6 | cp36-macosx_x86_64 | cp36-win_amd64<br/>cp36-win32 | cp36-manylinux_x86_64<br/>cp36-manylinux_i686<br/>cp36-musllinux_x86_64<br/>cp36-musllinux_i686 | cp36-manylinux_aarch64<br/>cp36-manylinux_ppc64le<br/>cp36-manylinux_s390x<br/>cp36-musllinux_aarch64<br/>cp36-musllinux_ppc64le<br/>cp36-musllinux_s390x<br/>cp36-musllinux_armv7l |
|
||||||
| Python 3.7 | cp37-macosx_x86_64 | cp37-win_amd64<br/>cp37-win32 | cp37-manylinux_x86_64<br/>cp37-manylinux_i686<br/>cp37-musllinux_x86_64<br/>cp37-musllinux_i686 | cp37-manylinux_aarch64<br/>cp37-manylinux_ppc64le<br/>cp37-manylinux_s390x<br/>cp37-musllinux_aarch64<br/>cp37-musllinux_ppc64le<br/>cp37-musllinux_s390x |
|
| Python 3.7 | cp37-macosx_x86_64 | cp37-win_amd64<br/>cp37-win32 | cp37-manylinux_x86_64<br/>cp37-manylinux_i686<br/>cp37-musllinux_x86_64<br/>cp37-musllinux_i686 | cp37-manylinux_aarch64<br/>cp37-manylinux_ppc64le<br/>cp37-manylinux_s390x<br/>cp37-musllinux_aarch64<br/>cp37-musllinux_ppc64le<br/>cp37-musllinux_s390x<br/>cp37-musllinux_armv7l |
|
||||||
| Python 3.8 | cp38-macosx_x86_64<br/>cp38-macosx_universal2<br/>cp38-macosx_arm64 | cp38-win_amd64<br/>cp38-win32 | cp38-manylinux_x86_64<br/>cp38-manylinux_i686<br/>cp38-musllinux_x86_64<br/>cp38-musllinux_i686 | cp38-manylinux_aarch64<br/>cp38-manylinux_ppc64le<br/>cp38-manylinux_s390x<br/>cp38-musllinux_aarch64<br/>cp38-musllinux_ppc64le<br/>cp38-musllinux_s390x |
|
| Python 3.8 | cp38-macosx_x86_64<br/>cp38-macosx_universal2<br/>cp38-macosx_arm64 | cp38-win_amd64<br/>cp38-win32 | cp38-manylinux_x86_64<br/>cp38-manylinux_i686<br/>cp38-musllinux_x86_64<br/>cp38-musllinux_i686 | cp38-manylinux_aarch64<br/>cp38-manylinux_ppc64le<br/>cp38-manylinux_s390x<br/>cp38-musllinux_aarch64<br/>cp38-musllinux_ppc64le<br/>cp38-musllinux_s390x<br/>cp38-musllinux_armv7l |
|
||||||
| Python 3.9 | cp39-macosx_x86_64<br/>cp39-macosx_universal2<br/>cp39-macosx_arm64 | cp39-win_amd64<br/>cp39-win32<br/>cp39-win_arm64 | cp39-manylinux_x86_64<br/>cp39-manylinux_i686<br/>cp39-musllinux_x86_64<br/>cp39-musllinux_i686 | cp39-manylinux_aarch64<br/>cp39-manylinux_ppc64le<br/>cp39-manylinux_s390x<br/>cp39-musllinux_aarch64<br/>cp39-musllinux_ppc64le<br/>cp39-musllinux_s390x |
|
| Python 3.9 | cp39-macosx_x86_64<br/>cp39-macosx_universal2<br/>cp39-macosx_arm64 | cp39-win_amd64<br/>cp39-win32<br/>cp39-win_arm64 | cp39-manylinux_x86_64<br/>cp39-manylinux_i686<br/>cp39-musllinux_x86_64<br/>cp39-musllinux_i686 | cp39-manylinux_aarch64<br/>cp39-manylinux_ppc64le<br/>cp39-manylinux_s390x<br/>cp39-musllinux_aarch64<br/>cp39-musllinux_ppc64le<br/>cp39-musllinux_s390x<br/>cp39-musllinux_armv7l |
|
||||||
| Python 3.10 | cp310-macosx_x86_64<br/>cp310-macosx_universal2<br/>cp310-macosx_arm64 | cp310-win_amd64<br/>cp310-win32<br/>cp310-win_arm64 | cp310-manylinux_x86_64<br/>cp310-manylinux_i686<br/>cp310-musllinux_x86_64<br/>cp310-musllinux_i686 | cp310-manylinux_aarch64<br/>cp310-manylinux_ppc64le<br/>cp310-manylinux_s390x<br/>cp310-musllinux_aarch64<br/>cp310-musllinux_ppc64le<br/>cp310-musllinux_s390x |
|
| Python 3.10 | cp310-macosx_x86_64<br/>cp310-macosx_universal2<br/>cp310-macosx_arm64 | cp310-win_amd64<br/>cp310-win32<br/>cp310-win_arm64 | cp310-manylinux_x86_64<br/>cp310-manylinux_i686<br/>cp310-musllinux_x86_64<br/>cp310-musllinux_i686 | cp310-manylinux_aarch64<br/>cp310-manylinux_ppc64le<br/>cp310-manylinux_s390x<br/>cp310-musllinux_aarch64<br/>cp310-musllinux_ppc64le<br/>cp310-musllinux_s390x<br/>cp310-musllinux_armv7l |
|
||||||
| Python 3.11 | cp311-macosx_x86_64<br/>cp311-macosx_universal2<br/>cp311-macosx_arm64 | cp311-win_amd64<br/>cp311-win32<br/>cp311-win_arm64 | cp311-manylinux_x86_64<br/>cp311-manylinux_i686<br/>cp311-musllinux_x86_64<br/>cp311-musllinux_i686 | cp311-manylinux_aarch64<br/>cp311-manylinux_ppc64le<br/>cp311-manylinux_s390x<br/>cp311-musllinux_aarch64<br/>cp311-musllinux_ppc64le<br/>cp311-musllinux_s390x |
|
| Python 3.11 | cp311-macosx_x86_64<br/>cp311-macosx_universal2<br/>cp311-macosx_arm64 | cp311-win_amd64<br/>cp311-win32<br/>cp311-win_arm64 | cp311-manylinux_x86_64<br/>cp311-manylinux_i686<br/>cp311-musllinux_x86_64<br/>cp311-musllinux_i686 | cp311-manylinux_aarch64<br/>cp311-manylinux_ppc64le<br/>cp311-manylinux_s390x<br/>cp311-musllinux_aarch64<br/>cp311-musllinux_ppc64le<br/>cp311-musllinux_s390x<br/>cp311-musllinux_armv7l |
|
||||||
| Python 3.12 | cp312-macosx_x86_64<br/>cp312-macosx_universal2<br/>cp312-macosx_arm64 | cp312-win_amd64<br/>cp312-win32<br/>cp312-win_arm64 | cp312-manylinux_x86_64<br/>cp312-manylinux_i686<br/>cp312-musllinux_x86_64<br/>cp312-musllinux_i686 | cp312-manylinux_aarch64<br/>cp312-manylinux_ppc64le<br/>cp312-manylinux_s390x<br/>cp312-musllinux_aarch64<br/>cp312-musllinux_ppc64le<br/>cp312-musllinux_s390x |
|
| Python 3.12 | cp312-macosx_x86_64<br/>cp312-macosx_universal2<br/>cp312-macosx_arm64 | cp312-win_amd64<br/>cp312-win32<br/>cp312-win_arm64 | cp312-manylinux_x86_64<br/>cp312-manylinux_i686<br/>cp312-musllinux_x86_64<br/>cp312-musllinux_i686 | cp312-manylinux_aarch64<br/>cp312-manylinux_ppc64le<br/>cp312-manylinux_s390x<br/>cp312-musllinux_aarch64<br/>cp312-musllinux_ppc64le<br/>cp312-musllinux_s390x<br/>cp312-musllinux_armv7l |
|
||||||
| Python 3.13 | cp313-macosx_x86_64<br/>cp313-macosx_universal2<br/>cp313-macosx_arm64 | cp313-win_amd64<br/>cp313-win32<br/>cp313-win_arm64 | cp313-manylinux_x86_64<br/>cp313-manylinux_i686<br/>cp313-musllinux_x86_64<br/>cp313-musllinux_i686 | cp313-manylinux_aarch64<br/>cp313-manylinux_ppc64le<br/>cp313-manylinux_s390x<br/>cp313-musllinux_aarch64<br/>cp313-musllinux_ppc64le<br/>cp313-musllinux_s390x |
|
| Python 3.13 | cp313-macosx_x86_64<br/>cp313-macosx_universal2<br/>cp313-macosx_arm64 | cp313-win_amd64<br/>cp313-win32<br/>cp313-win_arm64 | cp313-manylinux_x86_64<br/>cp313-manylinux_i686<br/>cp313-musllinux_x86_64<br/>cp313-musllinux_i686 | cp313-manylinux_aarch64<br/>cp313-manylinux_ppc64le<br/>cp313-manylinux_s390x<br/>cp313-musllinux_aarch64<br/>cp313-musllinux_ppc64le<br/>cp313-musllinux_s390x<br/>cp313-musllinux_armv7l |
|
||||||
| PyPy3.7 v7.3 | pp37-macosx_x86_64 | pp37-win_amd64 | pp37-manylinux_x86_64<br/>pp37-manylinux_i686 | pp37-manylinux_aarch64 |
|
| PyPy3.7 v7.3 | pp37-macosx_x86_64 | pp37-win_amd64 | pp37-manylinux_x86_64<br/>pp37-manylinux_i686 | pp37-manylinux_aarch64 |
|
||||||
| PyPy3.8 v7.3 | pp38-macosx_x86_64<br/>pp38-macosx_arm64 | pp38-win_amd64 | pp38-manylinux_x86_64<br/>pp38-manylinux_i686 | pp38-manylinux_aarch64 |
|
| PyPy3.8 v7.3 | pp38-macosx_x86_64<br/>pp38-macosx_arm64 | pp38-win_amd64 | pp38-manylinux_x86_64<br/>pp38-manylinux_i686 | pp38-manylinux_aarch64 |
|
||||||
| PyPy3.9 v7.3 | pp39-macosx_x86_64<br/>pp39-macosx_arm64 | pp39-win_amd64 | pp39-manylinux_x86_64<br/>pp39-manylinux_i686 | pp39-manylinux_aarch64 |
|
| PyPy3.9 v7.3 | pp39-macosx_x86_64<br/>pp39-macosx_arm64 | pp39-win_amd64 | pp39-manylinux_x86_64<br/>pp39-manylinux_i686 | pp39-manylinux_aarch64 |
|
||||||
| PyPy3.10 v7.3 | pp310-macosx_x86_64<br/>pp310-macosx_arm64 | pp310-win_amd64 | pp310-manylinux_x86_64<br/>pp310-manylinux_i686 | pp310-manylinux_aarch64 |
|
| PyPy3.10 v7.3 | pp310-macosx_x86_64<br/>pp310-macosx_arm64 | pp310-win_amd64 | pp310-manylinux_x86_64<br/>pp310-manylinux_i686 | pp310-manylinux_aarch64 |
|
||||||
|
|
||||||
The list of supported and currently selected build identifiers can also be retrieved by passing the `--print-build-identifiers` flag to cibuildwheel.
|
The list of supported and currently selected build identifiers can also be retrieved by passing the `--print-build-identifiers` flag to cibuildwheel.
|
||||||
The format is `python_tag-platform_tag`, with tags similar to those in [PEP 425](https://www.python.org/dev/peps/pep-0425/#details).
|
The format is `python_tag-platform_tag`, with tags similar to those in [PEP 425](https://www.python.org/dev/peps/pep-0425/#details).
|
||||||
|
|
||||||
For CPython, the minimally supported macOS version is 10.9; for PyPy 3.7, macOS 10.13 or higher is required.
|
The lowest value you can set `MACOSX_DEPLOYMENT_TARGET` is as follows:
|
||||||
|
|
||||||
|
| Arch | Python version range | Minimum target |
|
||||||
|
|-------|----------------------|----------------|
|
||||||
|
| Intel | CPython 3.6-3.11 | 10.9 |
|
||||||
|
| Intel | CPython 3.12+ | 10.13 |
|
||||||
|
| AS | CPython or PyPy | 11 |
|
||||||
|
| Intel | PyPy 3.7-3.8 | 10.13 |
|
||||||
|
| Intel | PyPy 3.9+ | 10.15 |
|
||||||
|
|
||||||
|
If you set the value lower, cibuildwheel will cap it to the lowest supported value for each target as needed.
|
||||||
|
|
||||||
Windows arm64 platform support is experimental.
|
Windows arm64 platform support is experimental.
|
||||||
|
|
||||||
@@ -475,7 +485,7 @@ machine, provided the cross-compiling tools are installed.
|
|||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
- Linux: `x86_64` `i686` `aarch64` `ppc64le` `s390x`
|
- Linux: `x86_64` `i686` `aarch64` `ppc64le` `s390x` `armv7l`
|
||||||
- macOS: `x86_64` `arm64` `universal2`
|
- macOS: `x86_64` `arm64` `universal2`
|
||||||
- Windows: `AMD64` `x86` `ARM64`
|
- Windows: `AMD64` `x86` `ARM64`
|
||||||
- Pyodide: `wasm32`
|
- Pyodide: `wasm32`
|
||||||
@@ -1157,25 +1167,31 @@ Platform-specific environment variables are also available:<br/>
|
|||||||
<div class="link-target" id="manylinux-image"></div>
|
<div class="link-target" id="manylinux-image"></div>
|
||||||
|
|
||||||
### `CIBW_MANYLINUX_*_IMAGE`, `CIBW_MUSLLINUX_*_IMAGE` {: #linux-image}
|
### `CIBW_MANYLINUX_*_IMAGE`, `CIBW_MUSLLINUX_*_IMAGE` {: #linux-image}
|
||||||
> Specify alternative manylinux / musllinux container images
|
|
||||||
|
|
||||||
The available options are (default value):
|
> Specify manylinux / musllinux container images
|
||||||
|
|
||||||
- `CIBW_MANYLINUX_X86_64_IMAGE` ([`quay.io/pypa/manylinux2014_x86_64`](https://quay.io/pypa/manylinux2014_x86_64))
|
The available options are:
|
||||||
- `CIBW_MANYLINUX_I686_IMAGE` ([`quay.io/pypa/manylinux2014_i686`](https://quay.io/pypa/manylinux2014_i686))
|
|
||||||
- `CIBW_MANYLINUX_PYPY_X86_64_IMAGE` ([`quay.io/pypa/manylinux2014_x86_64`](https://quay.io/pypa/manylinux2014_x86_64))
|
|
||||||
- `CIBW_MANYLINUX_AARCH64_IMAGE` ([`quay.io/pypa/manylinux2014_aarch64`](https://quay.io/pypa/manylinux2014_aarch64))
|
|
||||||
- `CIBW_MANYLINUX_PPC64LE_IMAGE` ([`quay.io/pypa/manylinux2014_ppc64le`](https://quay.io/pypa/manylinux2014_ppc64le))
|
|
||||||
- `CIBW_MANYLINUX_S390X_IMAGE` ([`quay.io/pypa/manylinux2014_s390x`](https://quay.io/pypa/manylinux2014_s390x))
|
|
||||||
- `CIBW_MANYLINUX_PYPY_AARCH64_IMAGE` ([`quay.io/pypa/manylinux2014_aarch64`](https://quay.io/pypa/manylinux2014_aarch64))
|
|
||||||
- `CIBW_MANYLINUX_PYPY_I686_IMAGE` ([`quay.io/pypa/manylinux2014_i686`](https://quay.io/pypa/manylinux2014_i686))
|
|
||||||
- `CIBW_MUSLLINUX_X86_64_IMAGE` ([`quay.io/pypa/musllinux_1_2_x86_64`](https://quay.io/pypa/musllinux_1_2_x86_64))
|
|
||||||
- `CIBW_MUSLLINUX_I686_IMAGE` ([`quay.io/pypa/musllinux_1_2_i686`](https://quay.io/pypa/musllinux_1_2_i686))
|
|
||||||
- `CIBW_MUSLLINUX_AARCH64_IMAGE` ([`quay.io/pypa/musllinux_1_2_aarch64`](https://quay.io/pypa/musllinux_1_2_aarch64))
|
|
||||||
- `CIBW_MUSLLINUX_PPC64LE_IMAGE` ([`quay.io/pypa/musllinux_1_2_ppc64le`](https://quay.io/pypa/musllinux_1_2_ppc64le))
|
|
||||||
- `CIBW_MUSLLINUX_S390X_IMAGE` ([`quay.io/pypa/musllinux_1_2_s390x`](https://quay.io/pypa/musllinux_1_2_s390x))
|
|
||||||
|
|
||||||
Set an alternative Docker image to be used for building [manylinux / musllinux](https://github.com/pypa/manylinux) wheels.
|
| Option | Default | Future default* |
|
||||||
|
|---|---|---|
|
||||||
|
| CIBW_MANYLINUX_X86_64_IMAGE | [`manylinux2014`](https://quay.io/pypa/manylinux2014_x86_64) | [`manylinux_2_28`](https://quay.io/pypa/manylinux_2_28_x86_64)
|
||||||
|
| CIBW_MANYLINUX_I686_IMAGE | [`manylinux2014`](https://quay.io/pypa/manylinux2014_i686) |
|
||||||
|
| CIBW_MANYLINUX_PYPY_X86_64_IMAGE | [`manylinux2014`](https://quay.io/pypa/manylinux2014_x86_64) | [`manylinux_2_28`](https://quay.io/pypa/manylinux_2_28_x86_64)
|
||||||
|
| CIBW_MANYLINUX_AARCH64_IMAGE | [`manylinux2014`](https://quay.io/pypa/manylinux2014_aarch64) | [`manylinux_2_28`](https://quay.io/pypa/manylinux_2_28_aarch64)
|
||||||
|
| CIBW_MANYLINUX_PPC64LE_IMAGE | [`manylinux2014`](https://quay.io/pypa/manylinux2014_ppc64le) | [`manylinux_2_28`](https://quay.io/pypa/manylinux_2_28_ppc64le)
|
||||||
|
| CIBW_MANYLINUX_S390X_IMAGE | [`manylinux2014`](https://quay.io/pypa/manylinux2014_s390x) | [`manylinux_2_28`](https://quay.io/pypa/manylinux_2_28_s390x)
|
||||||
|
| CIBW_MANYLINUX_PYPY_AARCH64_IMAGE | [`manylinux2014`](https://quay.io/pypa/manylinux2014_aarch64) | [`manylinux_2_28`](https://quay.io/pypa/manylinux_2_28_aarch64)
|
||||||
|
| CIBW_MANYLINUX_PYPY_I686_IMAGE | [`manylinux2014`](https://quay.io/pypa/manylinux2014_i686) |
|
||||||
|
| CIBW_MUSLLINUX_X86_64_IMAGE | [`musllinux_1_2`](https://quay.io/pypa/musllinux_1_2_x86_64) |
|
||||||
|
| CIBW_MUSLLINUX_I686_IMAGE | [`musllinux_1_2`](https://quay.io/pypa/musllinux_1_2_i686) |
|
||||||
|
| CIBW_MUSLLINUX_AARCH64_IMAGE | [`musllinux_1_2`](https://quay.io/pypa/musllinux_1_2_aarch64) |
|
||||||
|
| CIBW_MUSLLINUX_PPC64LE_IMAGE | [`musllinux_1_2`](https://quay.io/pypa/musllinux_1_2_ppc64le) |
|
||||||
|
| CIBW_MUSLLINUX_S390X_IMAGE | [`musllinux_1_2`](https://quay.io/pypa/musllinux_1_2_s390x) |
|
||||||
|
| CIBW_MUSLLINUX_ARMV7L_IMAGE | [`musllinux_1_2`](https://quay.io/pypa/musllinux_1_2_armv7l) |
|
||||||
|
|
||||||
|
<small>* The default is scheduled to change in a cibuildwheel release on or after 6th May 2025 - if you don't want the new default, you should set the value to `manylinux2014`.</small>
|
||||||
|
|
||||||
|
Set the Docker image to be used for building [manylinux / musllinux](https://github.com/pypa/manylinux) wheels.
|
||||||
|
|
||||||
For `CIBW_MANYLINUX_*_IMAGE`, the value of this option can either be set to `manylinux1`, `manylinux2010`, `manylinux2014`, `manylinux_2_24` or `manylinux_2_28` to use a pinned version of the [official manylinux images](https://github.com/pypa/manylinux). Alternatively, set these options to any other valid Docker image name. For PyPy, the `manylinux1` image is not available. For architectures other
|
For `CIBW_MANYLINUX_*_IMAGE`, the value of this option can either be set to `manylinux1`, `manylinux2010`, `manylinux2014`, `manylinux_2_24` or `manylinux_2_28` to use a pinned version of the [official manylinux images](https://github.com/pypa/manylinux). Alternatively, set these options to any other valid Docker image name. For PyPy, the `manylinux1` image is not available. For architectures other
|
||||||
than x86 (x86\_64 and i686) `manylinux2014`, `manylinux_2_24` or `manylinux_2_28` must be used, because the first version of the manylinux specification that supports additional architectures is `manylinux2014`. `manylinux_2_28` is not supported for `i686` architecture.
|
than x86 (x86\_64 and i686) `manylinux2014`, `manylinux_2_24` or `manylinux_2_28` must be used, because the first version of the manylinux specification that supports additional architectures is `manylinux2014`. `manylinux_2_28` is not supported for `i686` architecture.
|
||||||
@@ -1599,7 +1615,7 @@ This option is not supported in the overrides section in `pyproject.toml`.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Will avoid testing on emulated architectures
|
# Will avoid testing on emulated architectures
|
||||||
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x}"
|
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x,armv7l}"
|
||||||
|
|
||||||
# Skip trying to test arm64 builds on Intel Macs
|
# Skip trying to test arm64 builds on Intel Macs
|
||||||
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"
|
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"
|
||||||
@@ -1610,7 +1626,7 @@ This option is not supported in the overrides section in `pyproject.toml`.
|
|||||||
```toml
|
```toml
|
||||||
[tool.cibuildwheel]
|
[tool.cibuildwheel]
|
||||||
# Will avoid testing on emulated architectures
|
# Will avoid testing on emulated architectures
|
||||||
test-skip = "*-*linux_{aarch64,ppc64le,s390x}"
|
test-skip = "*-*linux_{aarch64,ppc64le,s390x,armv7l}"
|
||||||
|
|
||||||
# Skip trying to test arm64 builds on Intel Macs
|
# Skip trying to test arm64 builds on Intel Macs
|
||||||
test-skip = "*-macosx_arm64 *-macosx_universal2:arm64"
|
test-skip = "*-macosx_arm64 *-macosx_universal2:arm64"
|
||||||
|
|||||||
+2
-2
@@ -161,7 +161,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: pipx run cibuildwheel==2.20.0
|
run: pipx run cibuildwheel==2.21.3
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -198,7 +198,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
|
||||||
- name: Install cibuildwheel
|
- name: Install cibuildwheel
|
||||||
run: python -m pip install cibuildwheel==2.20.0
|
run: python -m pip install cibuildwheel==2.21.3
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: python -m cibuildwheel --output-dir wheelhouse
|
run: python -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|||||||
+12
-12
@@ -41,8 +41,8 @@ title: Working examples
|
|||||||
| [Dependency Injector][] | ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Dependency injection framework for Python, uses Windows TravisCI |
|
| [Dependency Injector][] | ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Dependency injection framework for Python, uses Windows TravisCI |
|
||||||
| [pyzmq][] | ![github icon][] ![circleci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Python bindings for zeromq, the networking library. Uses Cython on CPython and CFFI on PyPy. ARM wheels for linux are built natively on CircleCI. |
|
| [pyzmq][] | ![github icon][] ![circleci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Python bindings for zeromq, the networking library. Uses Cython on CPython and CFFI on PyPy. ARM wheels for linux are built natively on CircleCI. |
|
||||||
| [Implicit][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Includes GPU support for linux wheels |
|
| [Implicit][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Includes GPU support for linux wheels |
|
||||||
| [vispy][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Main repository for Vispy |
|
|
||||||
| [tinyobjloader][] | ![azurepipelines icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Tiny but powerful single file wavefront obj loader |
|
| [tinyobjloader][] | ![azurepipelines icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Tiny but powerful single file wavefront obj loader |
|
||||||
|
| [vispy][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Main repository for Vispy |
|
||||||
| [CTranslate2][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Includes libraries from the [Intel oneAPI toolkit](https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit.html) and CUDA kernels compiled for multiple GPU architectures. |
|
| [CTranslate2][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Includes libraries from the [Intel oneAPI toolkit](https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit.html) and CUDA kernels compiled for multiple GPU architectures. |
|
||||||
| [coverage.py][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | The coverage tool for Python |
|
| [coverage.py][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | The coverage tool for Python |
|
||||||
| [PyCryptodome][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | A self-contained cryptographic library for Python |
|
| [PyCryptodome][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | A self-contained cryptographic library for Python |
|
||||||
@@ -70,8 +70,8 @@ title: Working examples
|
|||||||
| [time-machine][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Time mocking library using only the CPython C API. |
|
| [time-machine][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Time mocking library using only the CPython C API. |
|
||||||
| [Picologging][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | A high-performance logging library for Python. |
|
| [Picologging][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | A high-performance logging library for Python. |
|
||||||
| [markupsafe][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Safely add untrusted strings to HTML/XML markup. |
|
| [markupsafe][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Safely add untrusted strings to HTML/XML markup. |
|
||||||
| [Rtree][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Rtree: spatial index for Python GIS |
|
|
||||||
| [pybind11 cmake_example][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Example pybind11 module built with a CMake-based build system |
|
| [pybind11 cmake_example][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Example pybind11 module built with a CMake-based build system |
|
||||||
|
| [Rtree][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Rtree: spatial index for Python GIS |
|
||||||
| [KDEpy][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Kernel Density Estimation in Python |
|
| [KDEpy][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Kernel Density Estimation in Python |
|
||||||
| [dd-trace-py][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Uses custom alternate arch emulation on GitHub |
|
| [dd-trace-py][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Uses custom alternate arch emulation on GitHub |
|
||||||
| [tgcalls][] | ![github icon][] | ![apple icon][] ![windows icon][] | Python `pybind11` binding to Telegram's WebRTC library with third party dependencies like `OpenSSL`, `MozJPEG`, `FFmpeg`, etc. |
|
| [tgcalls][] | ![github icon][] | ![apple icon][] ![windows icon][] | Python `pybind11` binding to Telegram's WebRTC library with third party dependencies like `OpenSSL`, `MozJPEG`, `FFmpeg`, etc. |
|
||||||
@@ -81,13 +81,13 @@ title: Working examples
|
|||||||
| [abess][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | A fast best-subset selection library. It uses cibuildwheel to build a large project with C++ extensions. |
|
| [abess][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | A fast best-subset selection library. It uses cibuildwheel to build a large project with C++ extensions. |
|
||||||
| [sourmash][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Quickly search, compare, and analyze genomic and metagenomic data sets. |
|
| [sourmash][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Quickly search, compare, and analyze genomic and metagenomic data sets. |
|
||||||
| [cyvcf2][] | ![github icon][] | ![apple icon][] ![linux icon][] | cython + htslib == fast VCF and BCF processing |
|
| [cyvcf2][] | ![github icon][] | ![apple icon][] ![linux icon][] | cython + htslib == fast VCF and BCF processing |
|
||||||
| [matrixprofile][] | ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | A Python 3 library making time series data mining tasks, utilizing matrix profile algorithms, accessible to everyone. |
|
|
||||||
| [jq.py][] | ![travisci icon][] | ![apple icon][] ![linux icon][] | Python bindings for jq |
|
| [jq.py][] | ![travisci icon][] | ![apple icon][] ![linux icon][] | Python bindings for jq |
|
||||||
|
| [matrixprofile][] | ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | A Python 3 library making time series data mining tasks, utilizing matrix profile algorithms, accessible to everyone. |
|
||||||
| [iminuit][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Jupyter-friendly Python interface for C++ MINUIT2 |
|
| [iminuit][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Jupyter-friendly Python interface for C++ MINUIT2 |
|
||||||
| [Tokenizer][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Fast and customizable text tokenization library with BPE and SentencePiece support |
|
| [Tokenizer][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Fast and customizable text tokenization library with BPE and SentencePiece support |
|
||||||
| [keyvi][] | ![github icon][] | ![linux icon][] ![apple icon][] | FST based key value index highly optimized for size and lookup performance, utilizes ccache action for improved runtime |
|
| [keyvi][] | ![github icon][] | ![linux icon][] ![apple icon][] | FST based key value index highly optimized for size and lookup performance, utilizes ccache action for improved runtime |
|
||||||
| [PyGLM][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Fast OpenGL Mathematics (GLM) for Python |
|
|
||||||
| [pillow-heif][] | ![github icon][] ![cirrusci icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Bindings to libheif library with third party dependencies. Fully automated CI for tests and publishing including Apple Silicon builds. |
|
| [pillow-heif][] | ![github icon][] ![cirrusci icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Bindings to libheif library with third party dependencies. Fully automated CI for tests and publishing including Apple Silicon builds. |
|
||||||
|
| [PyGLM][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Fast OpenGL Mathematics (GLM) for Python |
|
||||||
| [TgCrypto][] | ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Includes a Windows Travis build. |
|
| [TgCrypto][] | ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Includes a Windows Travis build. |
|
||||||
| [iDynTree][] | ![github icon][] | ![linux icon][] | Uses manylinux_2_24 |
|
| [iDynTree][] | ![github icon][] | ![linux icon][] | Uses manylinux_2_24 |
|
||||||
| [streaming-form-data][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Streaming parser for multipart/form-data written in Cython |
|
| [streaming-form-data][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Streaming parser for multipart/form-data written in Cython |
|
||||||
@@ -98,13 +98,13 @@ title: Working examples
|
|||||||
| [pybase64][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Fast Base64 encoding/decoding in Python |
|
| [pybase64][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Fast Base64 encoding/decoding in Python |
|
||||||
| [Imagecodecs (fork)][] | ![azurepipelines icon][] | ![apple icon][] ![linux icon][] | Over 20 external dependencies in compiled libraries, custom docker image, `libomp`, `openblas` and `install_name_tool` for macOS. |
|
| [Imagecodecs (fork)][] | ![azurepipelines icon][] | ![apple icon][] ![linux icon][] | Over 20 external dependencies in compiled libraries, custom docker image, `libomp`, `openblas` and `install_name_tool` for macOS. |
|
||||||
| [fathon][] | ![travisci icon][] | ![apple icon][] ![linux icon][] | python package for DFA (Detrended Fluctuation Analysis) and related algorithms |
|
| [fathon][] | ![travisci icon][] | ![apple icon][] ![linux icon][] | python package for DFA (Detrended Fluctuation Analysis) and related algorithms |
|
||||||
| [Arbor][] | ![github icon][] | ![apple icon][] ![linux icon][] | Arbor is a multi-compartment neuron simulation library; compatible with next-generation accelerators; best-practices applied to research software; focused on community-driven development. Includes a [small script](https://github.com/arbor-sim/arbor/blob/master/scripts/patchwheel.py) patching `rpath` in bundled libraries. |
|
|
||||||
| [pybind11 scikit_build_example][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | An example combining scikit-build and pybind11 |
|
| [pybind11 scikit_build_example][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | An example combining scikit-build and pybind11 |
|
||||||
|
| [Arbor][] | ![github icon][] | ![apple icon][] ![linux icon][] | Arbor is a multi-compartment neuron simulation library; compatible with next-generation accelerators; best-practices applied to research software; focused on community-driven development. Includes a [small script](https://github.com/arbor-sim/arbor/blob/master/scripts/patchwheel.py) patching `rpath` in bundled libraries. |
|
||||||
|
| [Confluent client for Kafka][] | ![travisci icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | setup in `tools/wheels/build-wheels.bat` |
|
||||||
| [polaroid][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Full range of wheels for setuptools rust, with auto release and PyPI deploy. |
|
| [polaroid][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Full range of wheels for setuptools rust, with auto release and PyPI deploy. |
|
||||||
| [clang-format][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Scikit-build wrapper around LLVM's CMake, all platforms, generic wheels. |
|
| [clang-format][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Scikit-build wrapper around LLVM's CMake, all platforms, generic wheels. |
|
||||||
| [etebase-py][] | ![travisci icon][] | ![linux icon][] | Python bindings to a Rust library using `setuptools-rust`, and `sccache` for improved speed. |
|
| [etebase-py][] | ![travisci icon][] | ![linux icon][] | Python bindings to a Rust library using `setuptools-rust`, and `sccache` for improved speed. |
|
||||||
| [cf-units][] | ![github icon][] | ![apple icon][] ![linux icon][] | Units of measure as required by the Climate and Forecast (CF) Metadata Conventions |
|
| [cf-units][] | ![github icon][] | ![apple icon][] ![linux icon][] | Units of measure as required by the Climate and Forecast (CF) Metadata Conventions |
|
||||||
| [Confluent client for Kafka][] | ![travisci icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | setup in `tools/wheels/build-wheels.bat` |
|
|
||||||
| [ninja][] | ![github icon][] ![travisci icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Multitagged binary builds for all supported platforms, using cibw 2 config configuration. |
|
| [ninja][] | ![github icon][] ![travisci icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Multitagged binary builds for all supported platforms, using cibw 2 config configuration. |
|
||||||
| [numpythia][] | ![github icon][] | ![apple icon][] ![linux icon][] | The interface between PYTHIA and NumPy |
|
| [numpythia][] | ![github icon][] | ![apple icon][] ![linux icon][] | The interface between PYTHIA and NumPy |
|
||||||
| [pyjet][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | The interface between FastJet and NumPy |
|
| [pyjet][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | The interface between FastJet and NumPy |
|
||||||
@@ -151,8 +151,8 @@ title: Working examples
|
|||||||
[Dependency Injector]: https://github.com/ets-labs/python-dependency-injector
|
[Dependency Injector]: https://github.com/ets-labs/python-dependency-injector
|
||||||
[pyzmq]: https://github.com/zeromq/pyzmq
|
[pyzmq]: https://github.com/zeromq/pyzmq
|
||||||
[Implicit]: https://github.com/benfred/implicit
|
[Implicit]: https://github.com/benfred/implicit
|
||||||
[vispy]: https://github.com/vispy/vispy
|
|
||||||
[tinyobjloader]: https://github.com/tinyobjloader/tinyobjloader
|
[tinyobjloader]: https://github.com/tinyobjloader/tinyobjloader
|
||||||
|
[vispy]: https://github.com/vispy/vispy
|
||||||
[CTranslate2]: https://github.com/OpenNMT/CTranslate2
|
[CTranslate2]: https://github.com/OpenNMT/CTranslate2
|
||||||
[coverage.py]: https://github.com/nedbat/coveragepy
|
[coverage.py]: https://github.com/nedbat/coveragepy
|
||||||
[PyCryptodome]: https://github.com/Legrandin/pycryptodome
|
[PyCryptodome]: https://github.com/Legrandin/pycryptodome
|
||||||
@@ -180,8 +180,8 @@ title: Working examples
|
|||||||
[time-machine]: https://github.com/adamchainz/time-machine
|
[time-machine]: https://github.com/adamchainz/time-machine
|
||||||
[Picologging]: https://github.com/microsoft/picologging
|
[Picologging]: https://github.com/microsoft/picologging
|
||||||
[markupsafe]: https://github.com/pallets/markupsafe
|
[markupsafe]: https://github.com/pallets/markupsafe
|
||||||
[Rtree]: https://github.com/Toblerity/rtree
|
|
||||||
[pybind11 cmake_example]: https://github.com/pybind/cmake_example
|
[pybind11 cmake_example]: https://github.com/pybind/cmake_example
|
||||||
|
[Rtree]: https://github.com/Toblerity/rtree
|
||||||
[KDEpy]: https://github.com/tommyod/KDEpy
|
[KDEpy]: https://github.com/tommyod/KDEpy
|
||||||
[dd-trace-py]: https://github.com/DataDog/dd-trace-py
|
[dd-trace-py]: https://github.com/DataDog/dd-trace-py
|
||||||
[tgcalls]: https://github.com/MarshalX/tgcalls
|
[tgcalls]: https://github.com/MarshalX/tgcalls
|
||||||
@@ -191,13 +191,13 @@ title: Working examples
|
|||||||
[abess]: https://github.com/abess-team/abess
|
[abess]: https://github.com/abess-team/abess
|
||||||
[sourmash]: https://github.com/sourmash-bio/sourmash
|
[sourmash]: https://github.com/sourmash-bio/sourmash
|
||||||
[cyvcf2]: https://github.com/brentp/cyvcf2
|
[cyvcf2]: https://github.com/brentp/cyvcf2
|
||||||
[matrixprofile]: https://github.com/matrix-profile-foundation/matrixprofile
|
|
||||||
[jq.py]: https://github.com/mwilliamson/jq.py
|
[jq.py]: https://github.com/mwilliamson/jq.py
|
||||||
|
[matrixprofile]: https://github.com/matrix-profile-foundation/matrixprofile
|
||||||
[iminuit]: https://github.com/scikit-hep/iminuit
|
[iminuit]: https://github.com/scikit-hep/iminuit
|
||||||
[Tokenizer]: https://github.com/OpenNMT/Tokenizer
|
[Tokenizer]: https://github.com/OpenNMT/Tokenizer
|
||||||
[keyvi]: https://github.com/KeyviDev/keyvi
|
[keyvi]: https://github.com/KeyviDev/keyvi
|
||||||
[PyGLM]: https://github.com/Zuzu-Typ/PyGLM
|
|
||||||
[pillow-heif]: https://github.com/bigcat88/pillow_heif
|
[pillow-heif]: https://github.com/bigcat88/pillow_heif
|
||||||
|
[PyGLM]: https://github.com/Zuzu-Typ/PyGLM
|
||||||
[TgCrypto]: https://github.com/pyrogram/tgcrypto
|
[TgCrypto]: https://github.com/pyrogram/tgcrypto
|
||||||
[iDynTree]: https://github.com/robotology/idyntree
|
[iDynTree]: https://github.com/robotology/idyntree
|
||||||
[streaming-form-data]: https://github.com/siddhantgoel/streaming-form-data
|
[streaming-form-data]: https://github.com/siddhantgoel/streaming-form-data
|
||||||
@@ -208,13 +208,13 @@ title: Working examples
|
|||||||
[pybase64]: https://github.com/mayeut/pybase64
|
[pybase64]: https://github.com/mayeut/pybase64
|
||||||
[Imagecodecs (fork)]: https://github.com/czaki/imagecodecs_build
|
[Imagecodecs (fork)]: https://github.com/czaki/imagecodecs_build
|
||||||
[fathon]: https://github.com/stfbnc/fathon
|
[fathon]: https://github.com/stfbnc/fathon
|
||||||
[Arbor]: https://github.com/arbor-sim/arbor
|
|
||||||
[pybind11 scikit_build_example]: https://github.com/pybind/scikit_build_example
|
[pybind11 scikit_build_example]: https://github.com/pybind/scikit_build_example
|
||||||
|
[Arbor]: https://github.com/arbor-sim/arbor
|
||||||
|
[Confluent client for Kafka]: https://github.com/confluentinc/confluent-kafka-python
|
||||||
[polaroid]: https://github.com/daggy1234/polaroid
|
[polaroid]: https://github.com/daggy1234/polaroid
|
||||||
[clang-format]: https://github.com/ssciwr/clang-format-wheel
|
[clang-format]: https://github.com/ssciwr/clang-format-wheel
|
||||||
[etebase-py]: https://github.com/etesync/etebase-py
|
[etebase-py]: https://github.com/etesync/etebase-py
|
||||||
[cf-units]: https://github.com/SciTools/cf-units
|
[cf-units]: https://github.com/SciTools/cf-units
|
||||||
[Confluent client for Kafka]: https://github.com/confluentinc/confluent-kafka-python
|
|
||||||
[ninja]: https://github.com/scikit-build/ninja-python-distributions
|
[ninja]: https://github.com/scikit-build/ninja-python-distributions
|
||||||
[numpythia]: https://github.com/scikit-hep/numpythia
|
[numpythia]: https://github.com/scikit-hep/numpythia
|
||||||
[pyjet]: https://github.com/scikit-hep/pyjet
|
[pyjet]: https://github.com/scikit-hep/pyjet
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ environment:
|
|||||||
|
|
||||||
stack: python 3.12
|
stack: python 3.12
|
||||||
|
|
||||||
install: python -m pip install cibuildwheel==2.20.0
|
install: python -m pip install cibuildwheel==2.21.3
|
||||||
|
|
||||||
build_script: python -m cibuildwheel --output-dir wheelhouse
|
build_script: python -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|
||||||
|
|||||||
@@ -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==2.20.0
|
pip3 install cibuildwheel==2.21.3
|
||||||
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==2.20.0
|
python3 -m pip install cibuildwheel==2.21.3
|
||||||
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==2.20.0
|
pip install cibuildwheel==2.21.3
|
||||||
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==2.20.0
|
python3 -m pip install --user cibuildwheel==2.21.3
|
||||||
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==2.20.0
|
python3 -m pip install --user cibuildwheel==2.21.3
|
||||||
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==2.20.0
|
pip3 install cibuildwheel==2.21.3
|
||||||
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==2.20.0
|
- python -m pip install cibuildwheel==2.21.3
|
||||||
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==2.20.0
|
- python -m pip install cibuildwheel==2.21.3
|
||||||
run_cibuildwheel_script:
|
run_cibuildwheel_script:
|
||||||
- cibuildwheel
|
- cibuildwheel
|
||||||
wheels_artifacts:
|
wheels_artifacts:
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.20.0
|
uses: pypa/cibuildwheel@v2.21.3
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.20.0
|
uses: pypa/cibuildwheel@v2.21.3
|
||||||
# env:
|
# env:
|
||||||
# CIBW_SOME_OPTION: value
|
# CIBW_SOME_OPTION: value
|
||||||
# ...
|
# ...
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
platforms: all
|
platforms: all
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.20.0
|
uses: pypa/cibuildwheel@v2.21.3
|
||||||
env:
|
env:
|
||||||
# configure cibuildwheel to build native archs ('auto'), and some
|
# configure cibuildwheel to build native archs ('auto'), and some
|
||||||
# emulated ones
|
# emulated ones
|
||||||
|
|||||||
@@ -6,12 +6,13 @@ linux:
|
|||||||
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
||||||
command: ["dockerd-entrypoint.sh"]
|
command: ["dockerd-entrypoint.sh"]
|
||||||
variables:
|
variables:
|
||||||
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
# See https://github.com/docker-library/docker/pull/166
|
# See https://github.com/docker-library/docker/pull/166
|
||||||
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==2.20.0
|
- python -m pip install cibuildwheel==2.21.3
|
||||||
- cibuildwheel --output-dir wheelhouse
|
- cibuildwheel --output-dir wheelhouse
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
@@ -22,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==2.20.0
|
- py -m pip install cibuildwheel==2.21.3
|
||||||
script:
|
script:
|
||||||
- py -m cibuildwheel --output-dir wheelhouse --platform windows
|
- py -m cibuildwheel --output-dir wheelhouse --platform windows
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -34,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==2.20.0
|
- python3 -m pip install cibuildwheel==2.21.3
|
||||||
script:
|
script:
|
||||||
- python3 -m cibuildwheel --output-dir wheelhouse
|
- python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ linux:
|
|||||||
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
||||||
command: ["dockerd-entrypoint.sh"]
|
command: ["dockerd-entrypoint.sh"]
|
||||||
variables:
|
variables:
|
||||||
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
# See https://github.com/docker-library/docker/pull/166
|
# See https://github.com/docker-library/docker/pull/166
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
@@ -13,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==2.20.0
|
- python -m pip install cibuildwheel==2.21.3
|
||||||
# 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==2.20.0
|
- python3 -m pip install cibuildwheel==2.21.3
|
||||||
|
|
||||||
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==2.20.0
|
- python3 -m pip install cibuildwheel==2.21.3
|
||||||
|
|
||||||
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==2.20.0 twine
|
install: python3 -m pip install cibuildwheel==2.21.3 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==2.20.0 twine
|
install: python3 -m pip install cibuildwheel==2.21.3 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
|
||||||
|
|
||||||
|
|||||||
+7
-3
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "cibuildwheel"
|
name = "cibuildwheel"
|
||||||
version = "2.20.0"
|
version = "2.21.3"
|
||||||
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"
|
||||||
@@ -35,6 +35,7 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
"Programming Language :: Python :: Implementation :: CPython",
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
"Topic :: Software Development :: Build Tools",
|
"Topic :: Software Development :: Build Tools",
|
||||||
]
|
]
|
||||||
@@ -64,9 +65,9 @@ dev = [
|
|||||||
]
|
]
|
||||||
docs = [
|
docs = [
|
||||||
"jinja2>=3.1.2",
|
"jinja2>=3.1.2",
|
||||||
"mkdocs-include-markdown-plugin==2.8.0",
|
"mkdocs-include-markdown-plugin==6.2.2",
|
||||||
"mkdocs-macros-plugin",
|
"mkdocs-macros-plugin",
|
||||||
"mkdocs==1.3.1",
|
"mkdocs==1.6.1",
|
||||||
"pymdown-extensions",
|
"pymdown-extensions",
|
||||||
]
|
]
|
||||||
test = [
|
test = [
|
||||||
@@ -239,3 +240,6 @@ flake8-unused-arguments.ignore-variadic-names = true
|
|||||||
|
|
||||||
[tool.repo-review]
|
[tool.repo-review]
|
||||||
ignore = ["PC170", "PP303"]
|
ignore = ["PC170", "PP303"]
|
||||||
|
|
||||||
|
[tool.check-wheel-contents]
|
||||||
|
ignore = ["W002"] # requirements-*.txt are allowed to be duplicates of one another
|
||||||
|
|||||||
@@ -18,27 +18,16 @@ limited_api_project = test_projects.new_c_project(
|
|||||||
IS_CPYTHON = sys.implementation.name == "cpython"
|
IS_CPYTHON = sys.implementation.name == "cpython"
|
||||||
Py_GIL_DISABLED = sysconfig.get_config_var("Py_GIL_DISABLED")
|
Py_GIL_DISABLED = sysconfig.get_config_var("Py_GIL_DISABLED")
|
||||||
CAN_USE_ABI3 = IS_CPYTHON and not Py_GIL_DISABLED
|
CAN_USE_ABI3 = IS_CPYTHON and not Py_GIL_DISABLED
|
||||||
cmdclass = {}
|
setup_options = {}
|
||||||
extension_kwargs = {}
|
extension_kwargs = {}
|
||||||
if CAN_USE_ABI3 and sys.version_info[:2] >= (3, 10):
|
if CAN_USE_ABI3 and sys.version_info[:2] >= (3, 10):
|
||||||
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
|
|
||||||
|
|
||||||
class bdist_wheel_abi3(_bdist_wheel):
|
|
||||||
def finalize_options(self):
|
|
||||||
_bdist_wheel.finalize_options(self)
|
|
||||||
self.root_is_pure = False
|
|
||||||
|
|
||||||
def get_tag(self):
|
|
||||||
python, abi, plat = _bdist_wheel.get_tag(self)
|
|
||||||
return python, "abi3", plat
|
|
||||||
|
|
||||||
cmdclass["bdist_wheel"] = bdist_wheel_abi3
|
|
||||||
extension_kwargs["define_macros"] = [("Py_LIMITED_API", "0x030A0000")]
|
extension_kwargs["define_macros"] = [("Py_LIMITED_API", "0x030A0000")]
|
||||||
extension_kwargs["py_limited_api"] = True
|
extension_kwargs["py_limited_api"] = True
|
||||||
|
setup_options = {"bdist_wheel": {"py_limited_api": "cp310"}}
|
||||||
"""
|
"""
|
||||||
),
|
),
|
||||||
setup_py_extension_args_add="**extension_kwargs",
|
setup_py_extension_args_add="**extension_kwargs",
|
||||||
setup_py_setup_args_add="cmdclass=cmdclass",
|
setup_py_setup_args_add="options=setup_options",
|
||||||
)
|
)
|
||||||
|
|
||||||
limited_api_project.files["pyproject.toml"] = pyproject_toml
|
limited_api_project.files["pyproject.toml"] = pyproject_toml
|
||||||
@@ -65,7 +54,7 @@ def test_abi3(tmp_path):
|
|||||||
if utils.platform == "pyodide":
|
if utils.platform == "pyodide":
|
||||||
# there's only 1 possible configuration for pyodide, the single_python_tag one
|
# there's only 1 possible configuration for pyodide, the single_python_tag one
|
||||||
expected_wheels = [
|
expected_wheels = [
|
||||||
w.replace(f"{single_python_tag}-{single_python_tag}", f"{single_python_tag}-abi3")
|
w.replace(f"{single_python_tag}-{single_python_tag}", "cp310-abi3")
|
||||||
for w in expected_wheels
|
for w in expected_wheels
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ def test_podman(tmp_path, capfd, request):
|
|||||||
actual_wheels = utils.cibuildwheel_run(
|
actual_wheels = utils.cibuildwheel_run(
|
||||||
project_dir,
|
project_dir,
|
||||||
add_env={
|
add_env={
|
||||||
"CIBW_ARCHS": "x86_64",
|
"CIBW_ARCHS": "native",
|
||||||
"CIBW_BEFORE_ALL": "echo 'test log statement from before-all'",
|
"CIBW_BEFORE_ALL": "echo 'test log statement from before-all'",
|
||||||
"CIBW_CONTAINER_ENGINE": "podman",
|
"CIBW_CONTAINER_ENGINE": "podman",
|
||||||
},
|
},
|
||||||
@@ -29,9 +29,7 @@ def test_podman(tmp_path, capfd, request):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# check that the expected wheels are produced
|
# check that the expected wheels are produced
|
||||||
expected_wheels = [
|
expected_wheels = utils.expected_wheels("spam", "0.1.0", single_python=True, single_arch=True)
|
||||||
w for w in utils.expected_wheels("spam", "0.1.0", single_python=True) if "x86_64" in w
|
|
||||||
]
|
|
||||||
assert set(actual_wheels) == set(expected_wheels)
|
assert set(actual_wheels) == set(expected_wheels)
|
||||||
|
|
||||||
# check that stdout is bring passed-though from container correctly
|
# check that stdout is bring passed-though from container correctly
|
||||||
|
|||||||
+19
-15
@@ -170,7 +170,9 @@ def expected_wheels(
|
|||||||
machine_arch = "aarch64"
|
machine_arch = "aarch64"
|
||||||
|
|
||||||
if manylinux_versions is None:
|
if manylinux_versions is None:
|
||||||
if machine_arch == "x86_64":
|
if machine_arch == "armv7l":
|
||||||
|
manylinux_versions = []
|
||||||
|
elif machine_arch == "x86_64":
|
||||||
manylinux_versions = [
|
manylinux_versions = [
|
||||||
"manylinux_2_5",
|
"manylinux_2_5",
|
||||||
"manylinux1",
|
"manylinux1",
|
||||||
@@ -274,25 +276,27 @@ def expected_wheels(
|
|||||||
platform_tags = ["win32", "win_amd64"]
|
platform_tags = ["win32", "win_amd64"]
|
||||||
|
|
||||||
elif platform == "macos":
|
elif platform == "macos":
|
||||||
|
if python_abi_tag.startswith("pp"):
|
||||||
|
if python_abi_tag.startswith(("pp37", "pp38")):
|
||||||
|
min_macosx = macosx_deployment_target
|
||||||
|
else:
|
||||||
|
min_macosx = _floor_macosx(macosx_deployment_target, "10.15")
|
||||||
|
elif python_abi_tag.startswith("cp"):
|
||||||
|
if python_abi_tag.startswith(("cp36", "cp37", "cp38", "cp39", "cp310", "cp311")):
|
||||||
|
min_macosx = macosx_deployment_target
|
||||||
|
else:
|
||||||
|
min_macosx = _floor_macosx(macosx_deployment_target, "10.13")
|
||||||
|
else:
|
||||||
|
min_macosx = macosx_deployment_target
|
||||||
|
|
||||||
if machine_arch == "arm64":
|
if machine_arch == "arm64":
|
||||||
arm64_macosx = _floor_macosx(macosx_deployment_target, "11.0")
|
arm64_macosx = _floor_macosx(min_macosx, "11.0")
|
||||||
platform_tags = [f'macosx_{arm64_macosx.replace(".", "_")}_arm64']
|
platform_tags = [f'macosx_{arm64_macosx.replace(".", "_")}_arm64']
|
||||||
else:
|
else:
|
||||||
if python_abi_tag.startswith("pp") and not python_abi_tag.startswith(
|
platform_tags = [f'macosx_{min_macosx.replace(".", "_")}_x86_64']
|
||||||
("pp37", "pp38")
|
|
||||||
):
|
|
||||||
pypy_macosx = _floor_macosx(macosx_deployment_target, "10.15")
|
|
||||||
platform_tags = [f'macosx_{pypy_macosx.replace(".", "_")}_x86_64']
|
|
||||||
elif python_abi_tag.startswith("cp313"):
|
|
||||||
pypy_macosx = _floor_macosx(macosx_deployment_target, "10.13")
|
|
||||||
platform_tags = [f'macosx_{pypy_macosx.replace(".", "_")}_x86_64']
|
|
||||||
else:
|
|
||||||
platform_tags = [f'macosx_{macosx_deployment_target.replace(".", "_")}_x86_64']
|
|
||||||
|
|
||||||
if include_universal2:
|
if include_universal2:
|
||||||
platform_tags.append(
|
platform_tags.append(f'macosx_{min_macosx.replace(".", "_")}_universal2')
|
||||||
f'macosx_{macosx_deployment_target.replace(".", "_")}_universal2',
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
msg = f"Unsupported platform {platform!r}"
|
msg = f"Unsupported platform {platform!r}"
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ def test_archs_platform_all(platform, intercepted_build_args, monkeypatch):
|
|||||||
Architecture.aarch64,
|
Architecture.aarch64,
|
||||||
Architecture.ppc64le,
|
Architecture.ppc64le,
|
||||||
Architecture.s390x,
|
Architecture.s390x,
|
||||||
|
Architecture.armv7l,
|
||||||
}
|
}
|
||||||
elif platform == "windows":
|
elif platform == "windows":
|
||||||
assert options.globals.architectures == {
|
assert options.globals.architectures == {
|
||||||
|
|||||||
+245
-26
@@ -6,14 +6,23 @@ import platform
|
|||||||
import random
|
import random
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
import textwrap
|
import textwrap
|
||||||
|
from contextlib import nullcontext
|
||||||
from pathlib import Path, PurePath, PurePosixPath
|
from pathlib import Path, PurePath, PurePosixPath
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import tomli_w
|
import tomli_w
|
||||||
|
|
||||||
|
import cibuildwheel.oci_container
|
||||||
from cibuildwheel.environment import EnvironmentAssignmentBash
|
from cibuildwheel.environment import EnvironmentAssignmentBash
|
||||||
from cibuildwheel.oci_container import OCIContainer, OCIContainerEngineConfig
|
from cibuildwheel.errors import OCIEngineTooOldError
|
||||||
|
from cibuildwheel.oci_container import (
|
||||||
|
OCIContainer,
|
||||||
|
OCIContainerEngineConfig,
|
||||||
|
OCIPlatform,
|
||||||
|
_check_engine_version,
|
||||||
|
)
|
||||||
from cibuildwheel.util import CIProvider, detect_ci_provider
|
from cibuildwheel.util import CIProvider, detect_ci_provider
|
||||||
|
|
||||||
# Test utilities
|
# Test utilities
|
||||||
@@ -28,6 +37,14 @@ elif pm in {"aarch64", "arm64"}:
|
|||||||
DEFAULT_IMAGE = DEFAULT_IMAGE_TEMPLATE.format(machine="aarch64")
|
DEFAULT_IMAGE = DEFAULT_IMAGE_TEMPLATE.format(machine="aarch64")
|
||||||
else:
|
else:
|
||||||
DEFAULT_IMAGE = ""
|
DEFAULT_IMAGE = ""
|
||||||
|
DEFAULT_OCI_PLATFORM = {
|
||||||
|
"AMD64": OCIPlatform.AMD64,
|
||||||
|
"x86_64": OCIPlatform.AMD64,
|
||||||
|
"ppc64le": OCIPlatform.PPC64LE,
|
||||||
|
"s390x": OCIPlatform.S390X,
|
||||||
|
"aarch64": OCIPlatform.ARM64,
|
||||||
|
"arm64": OCIPlatform.ARM64,
|
||||||
|
}[pm]
|
||||||
|
|
||||||
PODMAN = OCIContainerEngineConfig(name="podman")
|
PODMAN = OCIContainerEngineConfig(name="podman")
|
||||||
|
|
||||||
@@ -63,24 +80,32 @@ def container_engine(request):
|
|||||||
|
|
||||||
|
|
||||||
def test_simple(container_engine):
|
def test_simple(container_engine):
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
assert container.call(["echo", "hello"], capture_output=True) == "hello\n"
|
assert container.call(["echo", "hello"], capture_output=True) == "hello\n"
|
||||||
|
|
||||||
|
|
||||||
def test_no_lf(container_engine):
|
def test_no_lf(container_engine):
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
assert container.call(["printf", "hello"], capture_output=True) == "hello"
|
assert container.call(["printf", "hello"], capture_output=True) == "hello"
|
||||||
|
|
||||||
|
|
||||||
def test_debug_info(container_engine):
|
def test_debug_info(container_engine):
|
||||||
container = OCIContainer(engine=container_engine, image=DEFAULT_IMAGE)
|
container = OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
)
|
||||||
print(container.debug_info())
|
print(container.debug_info())
|
||||||
with container:
|
with container:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def test_environment(container_engine):
|
def test_environment(container_engine):
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
assert (
|
assert (
|
||||||
container.call(
|
container.call(
|
||||||
["sh", "-c", "echo $TEST_VAR"], env={"TEST_VAR": "1"}, capture_output=True
|
["sh", "-c", "echo $TEST_VAR"], env={"TEST_VAR": "1"}, capture_output=True
|
||||||
@@ -92,7 +117,9 @@ def test_environment(container_engine):
|
|||||||
def test_environment_pass(container_engine, monkeypatch):
|
def test_environment_pass(container_engine, monkeypatch):
|
||||||
monkeypatch.setenv("CIBUILDWHEEL", "1")
|
monkeypatch.setenv("CIBUILDWHEEL", "1")
|
||||||
monkeypatch.setenv("SOURCE_DATE_EPOCH", "1489957071")
|
monkeypatch.setenv("SOURCE_DATE_EPOCH", "1489957071")
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
assert container.call(["sh", "-c", "echo $CIBUILDWHEEL"], capture_output=True) == "1\n"
|
assert container.call(["sh", "-c", "echo $CIBUILDWHEEL"], capture_output=True) == "1\n"
|
||||||
assert (
|
assert (
|
||||||
container.call(["sh", "-c", "echo $SOURCE_DATE_EPOCH"], capture_output=True)
|
container.call(["sh", "-c", "echo $SOURCE_DATE_EPOCH"], capture_output=True)
|
||||||
@@ -102,14 +129,23 @@ def test_environment_pass(container_engine, monkeypatch):
|
|||||||
|
|
||||||
def test_cwd(container_engine):
|
def test_cwd(container_engine):
|
||||||
with OCIContainer(
|
with OCIContainer(
|
||||||
engine=container_engine, image=DEFAULT_IMAGE, cwd="/cibuildwheel/working_directory"
|
engine=container_engine,
|
||||||
|
image=DEFAULT_IMAGE,
|
||||||
|
oci_platform=DEFAULT_OCI_PLATFORM,
|
||||||
|
cwd="/cibuildwheel/working_directory",
|
||||||
) as container:
|
) as container:
|
||||||
assert container.call(["pwd"], capture_output=True) == "/cibuildwheel/working_directory\n"
|
assert container.call(["pwd"], capture_output=True) == "/cibuildwheel/working_directory\n"
|
||||||
assert container.call(["pwd"], capture_output=True, cwd="/opt") == "/opt\n"
|
assert container.call(["pwd"], capture_output=True, cwd="/opt") == "/opt\n"
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(
|
||||||
|
pm == "s390x" and detect_ci_provider() == CIProvider.travis_ci,
|
||||||
|
reason="test is flaky on this platform, see https://github.com/pypa/cibuildwheel/pull/1961#issuecomment-2334678966",
|
||||||
|
)
|
||||||
def test_container_removed(container_engine):
|
def test_container_removed(container_engine):
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
docker_containers_listing = subprocess.run(
|
docker_containers_listing = subprocess.run(
|
||||||
f"{container.engine.name} container ls",
|
f"{container.engine.name} container ls",
|
||||||
shell=True,
|
shell=True,
|
||||||
@@ -141,7 +177,9 @@ def test_large_environment(container_engine):
|
|||||||
"d": "0" * long_env_var_length,
|
"d": "0" * long_env_var_length,
|
||||||
}
|
}
|
||||||
|
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
# check the length of d
|
# check the length of d
|
||||||
assert (
|
assert (
|
||||||
container.call(["sh", "-c", "echo ${#d}"], env=large_environment, capture_output=True)
|
container.call(["sh", "-c", "echo ${#d}"], env=large_environment, capture_output=True)
|
||||||
@@ -150,7 +188,9 @@ def test_large_environment(container_engine):
|
|||||||
|
|
||||||
|
|
||||||
def test_binary_output(container_engine):
|
def test_binary_output(container_engine):
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
# note: the below embedded snippets are in python2
|
# note: the below embedded snippets are in python2
|
||||||
|
|
||||||
# check that we can pass though arbitrary binary data without erroring
|
# check that we can pass though arbitrary binary data without erroring
|
||||||
@@ -200,7 +240,9 @@ def test_binary_output(container_engine):
|
|||||||
|
|
||||||
|
|
||||||
def test_file_operation(tmp_path: Path, container_engine):
|
def test_file_operation(tmp_path: Path, container_engine):
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
# test copying a file in
|
# test copying a file in
|
||||||
test_binary_data = bytes(random.randrange(256) for _ in range(1000))
|
test_binary_data = bytes(random.randrange(256) for _ in range(1000))
|
||||||
original_test_file = tmp_path / "test.dat"
|
original_test_file = tmp_path / "test.dat"
|
||||||
@@ -210,12 +252,17 @@ def test_file_operation(tmp_path: Path, container_engine):
|
|||||||
|
|
||||||
container.copy_into(original_test_file, dst_file)
|
container.copy_into(original_test_file, dst_file)
|
||||||
|
|
||||||
|
owner = container.call(["stat", "-c", "%u:%g", dst_file], capture_output=True).strip()
|
||||||
|
assert owner == "0:0"
|
||||||
|
|
||||||
output = container.call(["cat", dst_file], capture_output=True)
|
output = container.call(["cat", dst_file], capture_output=True)
|
||||||
assert test_binary_data == bytes(output, encoding="utf8", errors="surrogateescape")
|
assert test_binary_data == bytes(output, encoding="utf8", errors="surrogateescape")
|
||||||
|
|
||||||
|
|
||||||
def test_dir_operations(tmp_path: Path, container_engine):
|
def test_dir_operations(tmp_path: Path, container_engine):
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
test_binary_data = bytes(random.randrange(256) for _ in range(1000))
|
test_binary_data = bytes(random.randrange(256) for _ in range(1000))
|
||||||
original_test_file = tmp_path / "test.dat"
|
original_test_file = tmp_path / "test.dat"
|
||||||
original_test_file.write_bytes(test_binary_data)
|
original_test_file.write_bytes(test_binary_data)
|
||||||
@@ -230,6 +277,12 @@ def test_dir_operations(tmp_path: Path, container_engine):
|
|||||||
dst_file = dst_dir / "test.dat"
|
dst_file = dst_dir / "test.dat"
|
||||||
container.copy_into(test_dir, dst_dir)
|
container.copy_into(test_dir, dst_dir)
|
||||||
|
|
||||||
|
owner = container.call(["stat", "-c", "%u:%g", dst_dir], capture_output=True).strip()
|
||||||
|
assert owner == "0:0"
|
||||||
|
|
||||||
|
owner = container.call(["stat", "-c", "%u:%g", dst_file], capture_output=True).strip()
|
||||||
|
assert owner == "0:0"
|
||||||
|
|
||||||
output = container.call(["cat", dst_file], capture_output=True)
|
output = container.call(["cat", dst_file], capture_output=True)
|
||||||
assert test_binary_data == bytes(output, encoding="utf8", errors="surrogateescape")
|
assert test_binary_data == bytes(output, encoding="utf8", errors="surrogateescape")
|
||||||
|
|
||||||
@@ -240,11 +293,18 @@ def test_dir_operations(tmp_path: Path, container_engine):
|
|||||||
new_test_dir = tmp_path / "test_dir_new"
|
new_test_dir = tmp_path / "test_dir_new"
|
||||||
container.copy_out(dst_dir, new_test_dir)
|
container.copy_out(dst_dir, new_test_dir)
|
||||||
|
|
||||||
|
assert os.getuid() == new_test_dir.stat().st_uid
|
||||||
|
assert os.getgid() == new_test_dir.stat().st_gid
|
||||||
|
assert os.getuid() == (new_test_dir / "test.dat").stat().st_uid
|
||||||
|
assert os.getgid() == (new_test_dir / "test.dat").stat().st_gid
|
||||||
|
|
||||||
assert test_binary_data == (new_test_dir / "test.dat").read_bytes()
|
assert test_binary_data == (new_test_dir / "test.dat").read_bytes()
|
||||||
|
|
||||||
|
|
||||||
def test_environment_executor(container_engine):
|
def test_environment_executor(container_engine):
|
||||||
with OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=container_engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
assignment = EnvironmentAssignmentBash("TEST=$(echo 42)")
|
assignment = EnvironmentAssignmentBash("TEST=$(echo 42)")
|
||||||
assert assignment.evaluated_value({}, container.environment_executor) == "42"
|
assert assignment.evaluated_value({}, container.environment_executor) == "42"
|
||||||
|
|
||||||
@@ -252,6 +312,8 @@ def test_environment_executor(container_engine):
|
|||||||
def test_podman_vfs(tmp_path: Path, monkeypatch, container_engine):
|
def test_podman_vfs(tmp_path: Path, monkeypatch, container_engine):
|
||||||
if container_engine.name != "podman":
|
if container_engine.name != "podman":
|
||||||
pytest.skip("only runs with podman")
|
pytest.skip("only runs with podman")
|
||||||
|
if sys.platform.startswith("darwin"):
|
||||||
|
pytest.skip("Skipping test because podman on this platform does not support vfs")
|
||||||
|
|
||||||
# create the VFS configuration
|
# create the VFS configuration
|
||||||
vfs_path = tmp_path / "podman_vfs"
|
vfs_path = tmp_path / "podman_vfs"
|
||||||
@@ -309,7 +371,9 @@ def test_podman_vfs(tmp_path: Path, monkeypatch, container_engine):
|
|||||||
monkeypatch.setenv("CONTAINERS_CONF", str(vfs_containers_conf_fpath))
|
monkeypatch.setenv("CONTAINERS_CONF", str(vfs_containers_conf_fpath))
|
||||||
monkeypatch.setenv("CONTAINERS_STORAGE_CONF", str(vfs_containers_storage_conf_fpath))
|
monkeypatch.setenv("CONTAINERS_STORAGE_CONF", str(vfs_containers_storage_conf_fpath))
|
||||||
|
|
||||||
with OCIContainer(engine=PODMAN, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=PODMAN, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
# test running a command
|
# test running a command
|
||||||
assert container.call(["echo", "hello"], capture_output=True) == "hello\n"
|
assert container.call(["echo", "hello"], capture_output=True) == "hello\n"
|
||||||
|
|
||||||
@@ -346,6 +410,7 @@ def test_create_args_volume(tmp_path: Path, container_engine):
|
|||||||
with OCIContainer(
|
with OCIContainer(
|
||||||
engine=container_engine,
|
engine=container_engine,
|
||||||
image=DEFAULT_IMAGE,
|
image=DEFAULT_IMAGE,
|
||||||
|
oci_platform=DEFAULT_OCI_PLATFORM,
|
||||||
) as container:
|
) as container:
|
||||||
assert container.call(["cat", "/test_mount/test_file.txt"], capture_output=True) == "1234"
|
assert container.call(["cat", "/test_mount/test_file.txt"], capture_output=True) == "1234"
|
||||||
|
|
||||||
@@ -388,24 +453,47 @@ def test_create_args_volume(tmp_path: Path, container_engine):
|
|||||||
"docker",
|
"docker",
|
||||||
("--some-option=value; with; semicolons", "--another-option"),
|
("--some-option=value; with; semicolons", "--another-option"),
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"docker; create_args: --platform=linux/amd64",
|
||||||
|
"docker",
|
||||||
|
(),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"podman; create_args: --platform=linux/amd64",
|
||||||
|
"podman",
|
||||||
|
(),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"docker; create_args: --platform linux/amd64",
|
||||||
|
"docker",
|
||||||
|
(),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"podman; create_args: --platform linux/amd64",
|
||||||
|
"podman",
|
||||||
|
(),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_parse_engine_config(config, name, create_args):
|
def test_parse_engine_config(config, name, create_args, capsys):
|
||||||
engine_config = OCIContainerEngineConfig.from_config_string(config)
|
engine_config = OCIContainerEngineConfig.from_config_string(config)
|
||||||
assert engine_config.name == name
|
assert engine_config.name == name
|
||||||
assert engine_config.create_args == create_args
|
assert engine_config.create_args == create_args
|
||||||
|
if "--platform" in config:
|
||||||
|
captured = capsys.readouterr()
|
||||||
|
assert (
|
||||||
|
"Using '--platform' in 'container-engine::create_args' is deprecated. It will be ignored."
|
||||||
|
in captured.err
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(pm != "x86_64", reason="Only runs on x86_64")
|
@pytest.mark.skipif(pm != "x86_64", reason="Only runs on x86_64")
|
||||||
@pytest.mark.parametrize(
|
def test_enforce_32_bit(container_engine):
|
||||||
("image", "shell_args"),
|
with OCIContainer(
|
||||||
[
|
engine=container_engine,
|
||||||
(DEFAULT_IMAGE_TEMPLATE.format(machine="i686"), ["/bin/bash"]),
|
image=DEFAULT_IMAGE_TEMPLATE.format(machine="i686"),
|
||||||
(DEFAULT_IMAGE_TEMPLATE.format(machine="x86_64"), ["linux32", "/bin/bash"]),
|
oci_platform=OCIPlatform.i386,
|
||||||
],
|
) as container:
|
||||||
)
|
|
||||||
def test_enforce_32_bit(container_engine, image, shell_args):
|
|
||||||
with OCIContainer(engine=container_engine, image=image, enforce_32_bit=True) as container:
|
|
||||||
assert container.call(["uname", "-m"], capture_output=True).strip() == "i686"
|
assert container.call(["uname", "-m"], capture_output=True).strip() == "i686"
|
||||||
container_args = subprocess.run(
|
container_args = subprocess.run(
|
||||||
f"{container.engine.name} inspect -f '{{{{json .Args }}}}' {container.name}",
|
f"{container.engine.name} inspect -f '{{{{json .Args }}}}' {container.name}",
|
||||||
@@ -414,7 +502,7 @@ def test_enforce_32_bit(container_engine, image, shell_args):
|
|||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
text=True,
|
text=True,
|
||||||
).stdout
|
).stdout
|
||||||
assert json.loads(container_args) == shell_args
|
assert json.loads(container_args) == ["/bin/bash"]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
@@ -428,16 +516,147 @@ def test_enforce_32_bit(container_engine, image, shell_args):
|
|||||||
def test_disable_host_mount(tmp_path: Path, container_engine, config, should_have_host_mount):
|
def test_disable_host_mount(tmp_path: Path, container_engine, config, should_have_host_mount):
|
||||||
if detect_ci_provider() in {CIProvider.circle_ci, CIProvider.gitlab}:
|
if detect_ci_provider() in {CIProvider.circle_ci, CIProvider.gitlab}:
|
||||||
pytest.skip("Skipping test because docker on this platform does not support host mounts")
|
pytest.skip("Skipping test because docker on this platform does not support host mounts")
|
||||||
|
if sys.platform.startswith("darwin"):
|
||||||
|
pytest.skip("Skipping test because docker on this platform does not support host mounts")
|
||||||
|
|
||||||
engine = OCIContainerEngineConfig.from_config_string(config.format(name=container_engine.name))
|
engine = OCIContainerEngineConfig.from_config_string(config.format(name=container_engine.name))
|
||||||
|
|
||||||
sentinel_file = tmp_path / "sentinel"
|
sentinel_file = tmp_path / "sentinel"
|
||||||
sentinel_file.write_text("12345")
|
sentinel_file.write_text("12345")
|
||||||
|
|
||||||
with OCIContainer(engine=engine, image=DEFAULT_IMAGE) as container:
|
with OCIContainer(
|
||||||
|
engine=engine, image=DEFAULT_IMAGE, oci_platform=DEFAULT_OCI_PLATFORM
|
||||||
|
) as container:
|
||||||
host_mount_path = "/host" + str(sentinel_file)
|
host_mount_path = "/host" + str(sentinel_file)
|
||||||
if should_have_host_mount:
|
if should_have_host_mount:
|
||||||
assert container.call(["cat", host_mount_path], capture_output=True) == "12345"
|
assert container.call(["cat", host_mount_path], capture_output=True) == "12345"
|
||||||
else:
|
else:
|
||||||
with pytest.raises(subprocess.CalledProcessError):
|
with pytest.raises(subprocess.CalledProcessError):
|
||||||
container.call(["cat", host_mount_path], capture_output=True)
|
container.call(["cat", host_mount_path], capture_output=True)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("platform", list(OCIPlatform))
|
||||||
|
def test_local_image(container_engine, platform, tmp_path: Path):
|
||||||
|
if (
|
||||||
|
detect_ci_provider() in {CIProvider.travis_ci}
|
||||||
|
and pm in {"s390x", "ppc64le"}
|
||||||
|
and platform != DEFAULT_OCI_PLATFORM
|
||||||
|
):
|
||||||
|
pytest.skip("Skipping test because docker on this platform does not support QEMU")
|
||||||
|
if container_engine.name == "podman" and platform == OCIPlatform.ARMV7:
|
||||||
|
# both GHA & local macOS arm64 podman desktop are failing
|
||||||
|
pytest.xfail("podman fails with armv7l images")
|
||||||
|
|
||||||
|
remote_image = "debian:12-slim"
|
||||||
|
platform_name = platform.value.replace("/", "_")
|
||||||
|
local_image = f"cibw_{container_engine.name}_{platform_name}_local:latest"
|
||||||
|
dockerfile = tmp_path / "Dockerfile"
|
||||||
|
dockerfile.write_text(f"FROM {remote_image}")
|
||||||
|
subprocess.run(
|
||||||
|
[container_engine.name, "pull", f"--platform={platform.value}", remote_image],
|
||||||
|
check=True,
|
||||||
|
)
|
||||||
|
subprocess.run(
|
||||||
|
[container_engine.name, "build", f"--platform={platform.value}", "-t", local_image, "."],
|
||||||
|
check=True,
|
||||||
|
cwd=tmp_path,
|
||||||
|
)
|
||||||
|
with OCIContainer(engine=container_engine, image=local_image, oci_platform=platform):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("platform", list(OCIPlatform))
|
||||||
|
def test_multiarch_image(container_engine, platform):
|
||||||
|
if (
|
||||||
|
detect_ci_provider() in {CIProvider.travis_ci}
|
||||||
|
and pm in {"s390x", "ppc64le"}
|
||||||
|
and platform != DEFAULT_OCI_PLATFORM
|
||||||
|
):
|
||||||
|
pytest.skip("Skipping test because docker on this platform does not support QEMU")
|
||||||
|
if container_engine.name == "podman" and platform == OCIPlatform.ARMV7:
|
||||||
|
# both GHA & local macOS arm64 podman desktop are failing
|
||||||
|
pytest.xfail("podman fails with armv7l images")
|
||||||
|
with OCIContainer(
|
||||||
|
engine=container_engine, image="debian:12-slim", oci_platform=platform
|
||||||
|
) as container:
|
||||||
|
output = container.call(["uname", "-m"], capture_output=True)
|
||||||
|
output_map_kernel = {
|
||||||
|
OCIPlatform.i386: ("i686",),
|
||||||
|
OCIPlatform.AMD64: ("x86_64",),
|
||||||
|
OCIPlatform.ARMV7: ("armv7l", "armv8l"),
|
||||||
|
OCIPlatform.ARM64: ("aarch64",),
|
||||||
|
OCIPlatform.PPC64LE: ("ppc64le",),
|
||||||
|
OCIPlatform.S390X: ("s390x",),
|
||||||
|
}
|
||||||
|
assert output.strip() in output_map_kernel[platform]
|
||||||
|
output = container.call(["dpkg", "--print-architecture"], capture_output=True)
|
||||||
|
output_map_dpkg = {
|
||||||
|
OCIPlatform.i386: "i386",
|
||||||
|
OCIPlatform.AMD64: "amd64",
|
||||||
|
OCIPlatform.ARMV7: "armhf",
|
||||||
|
OCIPlatform.ARM64: "arm64",
|
||||||
|
OCIPlatform.PPC64LE: "ppc64el",
|
||||||
|
OCIPlatform.S390X: "s390x",
|
||||||
|
}
|
||||||
|
assert output_map_dpkg[platform] == output.strip()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
("engine_name", "version", "context"),
|
||||||
|
[
|
||||||
|
(
|
||||||
|
"docker",
|
||||||
|
None, # 17.12.1-ce does supports "docker version --format '{{json . }}'" so a version before that
|
||||||
|
pytest.raises(OCIEngineTooOldError),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"docker",
|
||||||
|
'{"Client":{"Version":"19.03.15","ApiVersion": "1.40"},"Server":{"ApiVersion": "1.40"}}',
|
||||||
|
pytest.raises(OCIEngineTooOldError),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"docker",
|
||||||
|
'{"Client":{"Version":"20.10.0","ApiVersion":"1.41"},"Server":{"ApiVersion":"1.41"}}',
|
||||||
|
nullcontext(),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"docker",
|
||||||
|
'{"Client":{"Version":"24.0.0","ApiVersion":"1.43"},"Server":{"ApiVersion":"1.43"}}',
|
||||||
|
nullcontext(),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"docker",
|
||||||
|
'{"Client":{"ApiVersion":"1.43"},"Server":{"ApiVersion":"1.30"}}',
|
||||||
|
pytest.raises(OCIEngineTooOldError),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"docker",
|
||||||
|
'{"Client":{"ApiVersion":"1.30"},"Server":{"ApiVersion":"1.43"}}',
|
||||||
|
pytest.raises(OCIEngineTooOldError),
|
||||||
|
),
|
||||||
|
("podman", '{"Client":{"Version":"5.2.0"},"Server":{"Version":"5.1.2"}}', nullcontext()),
|
||||||
|
("podman", '{"Client":{"Version":"4.9.4-rhel"}}', nullcontext()),
|
||||||
|
(
|
||||||
|
"podman",
|
||||||
|
'{"Client":{"Version":"5.2.0"},"Server":{"Version":"2.1.2"}}',
|
||||||
|
pytest.raises(OCIEngineTooOldError),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"podman",
|
||||||
|
'{"Client":{"Version":"2.2.0"},"Server":{"Version":"5.1.2"}}',
|
||||||
|
pytest.raises(OCIEngineTooOldError),
|
||||||
|
),
|
||||||
|
("podman", '{"Client":{"Version":"3.0~rc1-rhel"}}', nullcontext()),
|
||||||
|
("podman", '{"Client":{"Version":"2.1.0~rc1"}}', pytest.raises(OCIEngineTooOldError)),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
def test_engine_version(engine_name, version, context, monkeypatch):
|
||||||
|
def mockcall(*args, **kwargs):
|
||||||
|
if version is None:
|
||||||
|
raise subprocess.CalledProcessError(1, " ".join(str(arg) for arg in args))
|
||||||
|
return version
|
||||||
|
|
||||||
|
monkeypatch.setattr(cibuildwheel.oci_container, "call", mockcall)
|
||||||
|
engine = OCIContainerEngineConfig.from_config_string(engine_name)
|
||||||
|
with context:
|
||||||
|
_check_engine_version(engine)
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import pytest
|
|||||||
|
|
||||||
from cibuildwheel import linux, util
|
from cibuildwheel import linux, util
|
||||||
from cibuildwheel.__main__ import main
|
from cibuildwheel.__main__ import main
|
||||||
|
from cibuildwheel.oci_container import OCIPlatform
|
||||||
|
|
||||||
ALL_IDS = {
|
ALL_IDS = {
|
||||||
"cp36",
|
"cp36",
|
||||||
@@ -73,7 +74,7 @@ def test_build_default_launches(monkeypatch):
|
|||||||
kwargs = build_in_container.call_args_list[0][1]
|
kwargs = build_in_container.call_args_list[0][1]
|
||||||
assert "quay.io/pypa/manylinux2014_x86_64" in kwargs["container"]["image"]
|
assert "quay.io/pypa/manylinux2014_x86_64" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert not kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.AMD64
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {f"{x}-manylinux_x86_64" for x in ALL_IDS}
|
assert identifiers == {f"{x}-manylinux_x86_64" for x in ALL_IDS}
|
||||||
@@ -81,7 +82,7 @@ def test_build_default_launches(monkeypatch):
|
|||||||
kwargs = build_in_container.call_args_list[1][1]
|
kwargs = build_in_container.call_args_list[1][1]
|
||||||
assert "quay.io/pypa/manylinux2014_i686" in kwargs["container"]["image"]
|
assert "quay.io/pypa/manylinux2014_i686" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.i386
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {f"{x}-manylinux_i686" for x in ALL_IDS}
|
assert identifiers == {f"{x}-manylinux_i686" for x in ALL_IDS}
|
||||||
@@ -89,7 +90,7 @@ def test_build_default_launches(monkeypatch):
|
|||||||
kwargs = build_in_container.call_args_list[2][1]
|
kwargs = build_in_container.call_args_list[2][1]
|
||||||
assert "quay.io/pypa/musllinux_1_2_x86_64" in kwargs["container"]["image"]
|
assert "quay.io/pypa/musllinux_1_2_x86_64" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert not kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.AMD64
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {
|
assert identifiers == {
|
||||||
@@ -99,7 +100,7 @@ def test_build_default_launches(monkeypatch):
|
|||||||
kwargs = build_in_container.call_args_list[3][1]
|
kwargs = build_in_container.call_args_list[3][1]
|
||||||
assert "quay.io/pypa/musllinux_1_2_i686" in kwargs["container"]["image"]
|
assert "quay.io/pypa/musllinux_1_2_i686" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.i386
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {f"{x}-musllinux_i686" for x in ALL_IDS if "pp" not in x}
|
assert identifiers == {f"{x}-musllinux_i686" for x in ALL_IDS if "pp" not in x}
|
||||||
@@ -142,7 +143,7 @@ before-all = "true"
|
|||||||
kwargs = build_in_container.call_args_list[0][1]
|
kwargs = build_in_container.call_args_list[0][1]
|
||||||
assert "quay.io/pypa/manylinux2014_x86_64" in kwargs["container"]["image"]
|
assert "quay.io/pypa/manylinux2014_x86_64" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert not kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.AMD64
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {"cp36-manylinux_x86_64"}
|
assert identifiers == {"cp36-manylinux_x86_64"}
|
||||||
@@ -151,7 +152,7 @@ before-all = "true"
|
|||||||
kwargs = build_in_container.call_args_list[1][1]
|
kwargs = build_in_container.call_args_list[1][1]
|
||||||
assert "quay.io/pypa/manylinux2014_x86_64" in kwargs["container"]["image"]
|
assert "quay.io/pypa/manylinux2014_x86_64" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert not kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.AMD64
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {
|
assert identifiers == {
|
||||||
@@ -164,7 +165,7 @@ before-all = "true"
|
|||||||
kwargs = build_in_container.call_args_list[2][1]
|
kwargs = build_in_container.call_args_list[2][1]
|
||||||
assert "quay.io/pypa/manylinux_2_28_x86_64" in kwargs["container"]["image"]
|
assert "quay.io/pypa/manylinux_2_28_x86_64" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert not kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.AMD64
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {
|
assert identifiers == {
|
||||||
f"{x}-manylinux_x86_64"
|
f"{x}-manylinux_x86_64"
|
||||||
@@ -174,7 +175,7 @@ before-all = "true"
|
|||||||
kwargs = build_in_container.call_args_list[3][1]
|
kwargs = build_in_container.call_args_list[3][1]
|
||||||
assert "quay.io/pypa/manylinux2014_i686" in kwargs["container"]["image"]
|
assert "quay.io/pypa/manylinux2014_i686" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.i386
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {f"{x}-manylinux_i686" for x in ALL_IDS}
|
assert identifiers == {f"{x}-manylinux_i686" for x in ALL_IDS}
|
||||||
@@ -182,7 +183,7 @@ before-all = "true"
|
|||||||
kwargs = build_in_container.call_args_list[4][1]
|
kwargs = build_in_container.call_args_list[4][1]
|
||||||
assert "quay.io/pypa/musllinux_1_1_x86_64" in kwargs["container"]["image"]
|
assert "quay.io/pypa/musllinux_1_1_x86_64" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert not kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.AMD64
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {
|
assert identifiers == {
|
||||||
@@ -192,7 +193,7 @@ before-all = "true"
|
|||||||
kwargs = build_in_container.call_args_list[5][1]
|
kwargs = build_in_container.call_args_list[5][1]
|
||||||
assert "quay.io/pypa/musllinux_1_2_x86_64" in kwargs["container"]["image"]
|
assert "quay.io/pypa/musllinux_1_2_x86_64" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert not kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.AMD64
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {
|
assert identifiers == {
|
||||||
f"{x}-musllinux_x86_64" for x in ALL_IDS - {"cp36", "cp37", "cp38", "cp39"} if "pp" not in x
|
f"{x}-musllinux_x86_64" for x in ALL_IDS - {"cp36", "cp37", "cp38", "cp39"} if "pp" not in x
|
||||||
@@ -201,7 +202,7 @@ before-all = "true"
|
|||||||
kwargs = build_in_container.call_args_list[6][1]
|
kwargs = build_in_container.call_args_list[6][1]
|
||||||
assert "quay.io/pypa/musllinux_1_2_i686" in kwargs["container"]["image"]
|
assert "quay.io/pypa/musllinux_1_2_i686" in kwargs["container"]["image"]
|
||||||
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
assert kwargs["container"]["cwd"] == PurePosixPath("/project")
|
||||||
assert kwargs["container"]["enforce_32_bit"]
|
assert kwargs["container"]["oci_platform"] == OCIPlatform.i386
|
||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {f"{x}-musllinux_i686" for x in ALL_IDS if "pp" not in x}
|
assert identifiers == {f"{x}-musllinux_i686" for x in ALL_IDS if "pp" not in x}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ from pathlib import PurePath
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from cibuildwheel.util import (
|
from cibuildwheel.util import (
|
||||||
|
FlexibleVersion,
|
||||||
find_compatible_wheel,
|
find_compatible_wheel,
|
||||||
fix_ansi_codes_for_github_actions,
|
fix_ansi_codes_for_github_actions,
|
||||||
format_safe,
|
format_safe,
|
||||||
@@ -206,3 +207,17 @@ def test_parse_key_value_string():
|
|||||||
"name": ["docker"],
|
"name": ["docker"],
|
||||||
"create_args": [],
|
"create_args": [],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def test_flexible_version_comparisons():
|
||||||
|
assert FlexibleVersion("2.0") == FlexibleVersion("2")
|
||||||
|
assert FlexibleVersion("2.0") < FlexibleVersion("2.1")
|
||||||
|
assert FlexibleVersion("2.1") > FlexibleVersion("2")
|
||||||
|
assert FlexibleVersion("1.9.9") < FlexibleVersion("2.0")
|
||||||
|
assert FlexibleVersion("1.10") > FlexibleVersion("1.9.9")
|
||||||
|
assert FlexibleVersion("3.0.1") > FlexibleVersion("3.0")
|
||||||
|
assert FlexibleVersion("3.0") < FlexibleVersion("3.0.1")
|
||||||
|
# Suffix should not affect comparisons
|
||||||
|
assert FlexibleVersion("1.0.1-rhel") > FlexibleVersion("1.0")
|
||||||
|
assert FlexibleVersion("1.0.1-rhel") < FlexibleVersion("1.1")
|
||||||
|
assert FlexibleVersion("1.0.1") == FlexibleVersion("v1.0.1")
|
||||||
|
|||||||
Reference in New Issue
Block a user