Merge remote-tracking branch 'origin/main' into readme-tidy

This commit is contained in:
Joe Rickerby
2021-08-23 18:53:58 +01:00
30 changed files with 173 additions and 131 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
- name: "Run update: python configs" - name: "Run update: python configs"
run: nox --force-color -s update_pins run: nox --force-color -s update_pins
- name: "Run update: docs user projects" - name: "Run update: docs user projects"
run: nox --force-color -s update_proj 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 # we use this step to grab a Github App auth token, so that PRs generated by this workflow
# run the GHA tests. # run the GHA tests.
+3 -3
View File
@@ -14,7 +14,7 @@ repos:
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.21.0 rev: v2.23.3
hooks: hooks:
- id: pyupgrade - id: pyupgrade
name: PyUpgrade 3.6+ name: PyUpgrade 3.6+
@@ -26,12 +26,12 @@ repos:
args: ["--py37-plus"] args: ["--py37-plus"]
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.9.2 rev: 5.9.3
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 21.6b0 rev: 21.7b0
hooks: hooks:
- id: black - id: black
+18 -28
View File
@@ -28,10 +28,9 @@ What does it do?
| CPython 3.7 | ✅ | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | CPython 3.7 | ✅ | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| CPython 3.8 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | CPython 3.8 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| CPython 3.9 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | CPython 3.9 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| CPython 3.10¹ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | CPython 3.10 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| PyPy 3.7 v7.3 | ✅ | N/A | ✅ | N/A | ✅ | ✅ | ✅ | N/A | N/A | | PyPy 3.7 v7.3 | ✅ | N/A | ✅ | N/A | ✅ | ✅ | ✅ | N/A | N/A |
<sup>¹ Available as a prerelease under a [flag](https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons)</sup><br>
- Builds manylinux, macOS 10.9+, and Windows wheels for CPython and PyPy - Builds manylinux, macOS 10.9+, and Windows wheels for CPython and PyPy
- Works on GitHub Actions, Azure Pipelines, Travis CI, AppVeyor, CircleCI, and GitLab CI - Works on GitHub Actions, Azure Pipelines, Travis CI, AppVeyor, CircleCI, and GitLab CI
@@ -85,7 +84,7 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
- name: Install cibuildwheel - name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.0.0 run: python -m pip install cibuildwheel==2.1.1
- name: Build wheels - name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse run: python -m cibuildwheel --output-dir wheelhouse
@@ -109,7 +108,7 @@ Options
| | [`CIBW_BUILD`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip) <br> [`CIBW_SKIP`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip) | Choose the Python versions to build | | | [`CIBW_BUILD`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip) <br> [`CIBW_SKIP`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip) | Choose the Python versions to build |
| | [`CIBW_ARCHS`](https://cibuildwheel.readthedocs.io/en/stable/options/#archs) | Change the architectures built on your machine by default. | | | [`CIBW_ARCHS`](https://cibuildwheel.readthedocs.io/en/stable/options/#archs) | Change the architectures built on your machine by default. |
| | [`CIBW_PROJECT_REQUIRES_PYTHON`](https://cibuildwheel.readthedocs.io/en/stable/options/#requires-python) | Manually set the Python compatibility of your project | | | [`CIBW_PROJECT_REQUIRES_PYTHON`](https://cibuildwheel.readthedocs.io/en/stable/options/#requires-python) | Manually set the Python compatibility of your project |
| | [`CIBW_PRERELEASE_PYTHONS`](https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons) | Enable building with pre-release versions of Python | | | [`CIBW_PRERELEASE_PYTHONS`](https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons) | Enable building with pre-release versions of Python if available |
| **Build customization** | [`CIBW_BUILD_FRONTEND`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-frontend) | Set the tool to use to build, either "pip" (default for now) or "build" | | **Build customization** | [`CIBW_BUILD_FRONTEND`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-frontend) | Set the tool to use to build, either "pip" (default for now) or "build" |
| | [`CIBW_ENVIRONMENT`](https://cibuildwheel.readthedocs.io/en/stable/options/#environment) | Set environment variables needed during the build | | | [`CIBW_ENVIRONMENT`](https://cibuildwheel.readthedocs.io/en/stable/options/#environment) | Set environment variables needed during the build |
| | [`CIBW_BEFORE_ALL`](https://cibuildwheel.readthedocs.io/en/stable/options/#before-all) | Execute a shell command on the build system before any wheels are built. | | | [`CIBW_BEFORE_ALL`](https://cibuildwheel.readthedocs.io/en/stable/options/#before-all) | Execute a shell command on the build system before any wheels are built. |
@@ -189,6 +188,21 @@ 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.1.1
_7 August 2021_
- ✨ Corresponding with the release of CPython 3.10.0rc1, which is ABI stable, cibuildwheel now builds CPython 3.10 by default - without the CIBW_PRERELEASE_PYTHONS flag.
<sup>Note: v2.1.0 was a bad release, it was yanked from PyPI.</sup>
### v2.0.1
_25 July 2021_
- 📚 Docs improvements (#767)
- 🛠 Dependency updates, including delocate 0.9.0.
### v2.0.0 🎉 ### v2.0.0 🎉
_16 July 2021_ _16 July 2021_
@@ -216,30 +230,6 @@ _28 May 2021_
- 📚 Minor docs changes, fixing links related to the above transition - 📚 Minor docs changes, fixing links related to the above transition
- 🛠 Update manylinux pins to the last version containing Python 2.7 and 3.5. (#674) - 🛠 Update manylinux pins to the last version containing Python 2.7 and 3.5. (#674)
### v1.11.0
_1 May 2021_
- 📚 Lots of docs improvements! (#650, #623, #616, #609, #606)
- 🐛 Fix nuget "Package is not found" error on Windows. (#653)
- ⚠️ cibuildwheel will no longer build Windows 2.7 wheels, unless you specify a custom toolchain using `DISTUTILS_USE_SDK=1` and `MSSdk=1`. This is because Microsoft have stopped distributing Visual C++ Compiler for Python 2.7. See [this FAQ entry](https://cibuildwheel.readthedocs.io/en/stable/faq/#windows-and-python-27) for more details. (#649)
- 🐛 Fix crash on Windows due to missing `which` command (#641).
### v1.10.0
_22 Feb 2021_
- ✨ Added `manylinux_2_24` support. To use these new Debian-based manylinux
images, set your [manylinux image](https://cibuildwheel.readthedocs.io/en/stable/options/#manylinux-image)
options to `manylinux_2_24`.
- 🛠 On macOS, we now set `MACOSX_DEPLOYMENT_TARGET` in before running
`CIBW_BEFORE_ALL`. This is useful when using `CIBW_BEFORE_ALL` to build a
shared library.
- 🛠 An empty `CIBW_BUILD` option is now the same as being unset i.e, `*`.
This makes some build matrix configuration easier. (#588)
- 📚 Neatened up documentation - added tabs to a few places (#576), fixed some
formatting issues.
<!-- END bin/update_readme_changelog.py --> <!-- END bin/update_readme_changelog.py -->
--- ---
+1 -1
View File
@@ -1 +1 @@
__version__ = "2.0.0" __version__ = "2.1.1"
+5 -5
View File
@@ -40,9 +40,9 @@ python_configurations = [
{ identifier = "cp39-macosx_x86_64", version = "3.9", url = "https://www.python.org/ftp/python/3.9.6/python-3.9.6-macos11.pkg" }, { identifier = "cp39-macosx_x86_64", version = "3.9", url = "https://www.python.org/ftp/python/3.9.6/python-3.9.6-macos11.pkg" },
{ identifier = "cp39-macosx_arm64", version = "3.9", url = "https://www.python.org/ftp/python/3.9.6/python-3.9.6-macos11.pkg" }, { identifier = "cp39-macosx_arm64", version = "3.9", url = "https://www.python.org/ftp/python/3.9.6/python-3.9.6-macos11.pkg" },
{ identifier = "cp39-macosx_universal2", version = "3.9", url = "https://www.python.org/ftp/python/3.9.6/python-3.9.6-macos11.pkg" }, { identifier = "cp39-macosx_universal2", version = "3.9", url = "https://www.python.org/ftp/python/3.9.6/python-3.9.6-macos11.pkg" },
{ identifier = "cp310-macosx_x86_64", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0b4-macos11.pkg" }, { identifier = "cp310-macosx_x86_64", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0rc1-macos11.pkg" },
{ identifier = "cp310-macosx_arm64", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0b4-macos11.pkg" }, { identifier = "cp310-macosx_arm64", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0rc1-macos11.pkg" },
{ identifier = "cp310-macosx_universal2", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0b4-macos11.pkg" }, { identifier = "cp310-macosx_universal2", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0rc1-macos11.pkg" },
{ identifier = "pp37-macosx_x86_64", version = "3.7", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.5-osx64.tar.bz2" }, { identifier = "pp37-macosx_x86_64", version = "3.7", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.5-osx64.tar.bz2" },
] ]
@@ -56,7 +56,7 @@ python_configurations = [
{ identifier = "cp38-win_amd64", version = "3.8.10", arch = "64" }, { identifier = "cp38-win_amd64", version = "3.8.10", arch = "64" },
{ identifier = "cp39-win32", version = "3.9.6", arch = "32" }, { identifier = "cp39-win32", version = "3.9.6", arch = "32" },
{ identifier = "cp39-win_amd64", version = "3.9.6", arch = "64" }, { identifier = "cp39-win_amd64", version = "3.9.6", arch = "64" },
{ identifier = "cp310-win32", version = "3.10.0-b4", arch = "32" }, { identifier = "cp310-win32", version = "3.10.0-rc1", arch = "32" },
{ identifier = "cp310-win_amd64", version = "3.10.0-b4", arch = "64" }, { identifier = "cp310-win_amd64", version = "3.10.0-rc1", arch = "64" },
{ identifier = "pp37-win_amd64", version = "3.7", arch = "64", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.5-win64.zip" }, { identifier = "pp37-win_amd64", version = "3.7", arch = "64", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.5-win64.zip" },
] ]
+14 -10
View File
@@ -6,27 +6,31 @@
# #
backports.entry-points-selectable==1.1.0 backports.entry-points-selectable==1.1.0
# via virtualenv # via virtualenv
delocate==0.8.2 delocate==0.9.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
distlib==0.3.2 distlib==0.3.2
# via virtualenv # via virtualenv
filelock==3.0.12 filelock==3.0.12
# via virtualenv # via virtualenv
importlib-metadata==4.6.1 importlib-metadata==4.6.4
# via # via
# backports.entry-points-selectable # backports.entry-points-selectable
# virtualenv # virtualenv
importlib-resources==5.2.0 importlib-resources==5.2.2
# via virtualenv # via virtualenv
platformdirs==2.0.2 platformdirs==2.2.0
# via virtualenv # via virtualenv
six==1.16.0 six==1.16.0
# via virtualenv # via
# delocate
# virtualenv
typing-extensions==3.10.0.0 typing-extensions==3.10.0.0
# via importlib-metadata # via
virtualenv==20.5.0 # delocate
# importlib-metadata
virtualenv==20.7.2
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
wheel==0.36.2 wheel==0.37.0
# via # via
# -r cibuildwheel/resources/constraints.in # -r cibuildwheel/resources/constraints.in
# delocate # delocate
@@ -36,7 +40,7 @@ zipp==3.5.0
# importlib-resources # importlib-resources
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:
pip==21.1.3 pip==21.2.4
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
setuptools==57.1.0 setuptools==57.4.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
@@ -6,25 +6,29 @@
# #
backports.entry-points-selectable==1.1.0 backports.entry-points-selectable==1.1.0
# via virtualenv # via virtualenv
delocate==0.8.2 delocate==0.9.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
distlib==0.3.2 distlib==0.3.2
# via virtualenv # via virtualenv
filelock==3.0.12 filelock==3.0.12
# via virtualenv # via virtualenv
importlib-metadata==4.6.1 importlib-metadata==4.6.4
# via # via
# backports.entry-points-selectable # backports.entry-points-selectable
# virtualenv # virtualenv
platformdirs==2.0.2 platformdirs==2.2.0
# via virtualenv # via virtualenv
six==1.16.0 six==1.16.0
# via virtualenv # via
# delocate
# virtualenv
typing-extensions==3.10.0.0 typing-extensions==3.10.0.0
# via importlib-metadata # via
virtualenv==20.5.0 # delocate
# importlib-metadata
virtualenv==20.7.2
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
wheel==0.36.2 wheel==0.37.0
# via # via
# -r cibuildwheel/resources/constraints.in # -r cibuildwheel/resources/constraints.in
# delocate # delocate
@@ -32,7 +36,7 @@ zipp==3.5.0
# via importlib-metadata # via importlib-metadata
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:
pip==21.1.3 pip==21.2.4
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
setuptools==57.1.0 setuptools==57.4.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
@@ -6,25 +6,29 @@
# #
backports.entry-points-selectable==1.1.0 backports.entry-points-selectable==1.1.0
# via virtualenv # via virtualenv
delocate==0.8.2 delocate==0.9.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
distlib==0.3.2 distlib==0.3.2
# via virtualenv # via virtualenv
filelock==3.0.12 filelock==3.0.12
# via virtualenv # via virtualenv
platformdirs==2.0.2 platformdirs==2.2.0
# via virtualenv # via virtualenv
six==1.16.0 six==1.16.0
# via virtualenv # via
virtualenv==20.5.0 # delocate
# virtualenv
typing-extensions==3.10.0.0
# via delocate
virtualenv==20.7.2
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
wheel==0.36.2 wheel==0.37.0
# via # via
# -r cibuildwheel/resources/constraints.in # -r cibuildwheel/resources/constraints.in
# delocate # delocate
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:
pip==21.1.3 pip==21.2.4
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
setuptools==57.1.0 setuptools==57.4.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
@@ -6,25 +6,29 @@
# #
backports.entry-points-selectable==1.1.0 backports.entry-points-selectable==1.1.0
# via virtualenv # via virtualenv
delocate==0.8.2 delocate==0.9.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
distlib==0.3.2 distlib==0.3.2
# via virtualenv # via virtualenv
filelock==3.0.12 filelock==3.0.12
# via virtualenv # via virtualenv
platformdirs==2.0.2 platformdirs==2.2.0
# via virtualenv # via virtualenv
six==1.16.0 six==1.16.0
# via virtualenv # via
virtualenv==20.5.0 # delocate
# virtualenv
typing-extensions==3.10.0.0
# via delocate
virtualenv==20.7.2
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
wheel==0.36.2 wheel==0.37.0
# via # via
# -r cibuildwheel/resources/constraints.in # -r cibuildwheel/resources/constraints.in
# delocate # delocate
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:
pip==21.1.3 pip==21.2.4
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
setuptools==57.1.0 setuptools==57.4.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
+11 -7
View File
@@ -6,25 +6,29 @@
# #
backports.entry-points-selectable==1.1.0 backports.entry-points-selectable==1.1.0
# via virtualenv # via virtualenv
delocate==0.8.2 delocate==0.9.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
distlib==0.3.2 distlib==0.3.2
# via virtualenv # via virtualenv
filelock==3.0.12 filelock==3.0.12
# via virtualenv # via virtualenv
platformdirs==2.0.2 platformdirs==2.2.0
# via virtualenv # via virtualenv
six==1.16.0 six==1.16.0
# via virtualenv # via
virtualenv==20.5.0 # delocate
# virtualenv
typing-extensions==3.10.0.0
# via delocate
virtualenv==20.7.2
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
wheel==0.36.2 wheel==0.37.0
# via # via
# -r cibuildwheel/resources/constraints.in # -r cibuildwheel/resources/constraints.in
# delocate # delocate
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:
pip==21.1.3 pip==21.2.4
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
setuptools==57.1.0 setuptools==57.4.0
# via -r cibuildwheel/resources/constraints.in # via -r cibuildwheel/resources/constraints.in
+22 -22
View File
@@ -1,38 +1,38 @@
[x86_64] [x86_64]
manylinux1 = quay.io/pypa/manylinux1_x86_64:2021-07-14-0700e04 manylinux1 = quay.io/pypa/manylinux1_x86_64:2021-08-21-78eb32a
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-07-14-67a6e11 manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-08-21-cbf585b
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-07-14-67a6e11 manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-08-21-cbf585b
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-07-14-67a6e11 manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-08-21-cbf585b
[i686] [i686]
manylinux1 = quay.io/pypa/manylinux1_i686:2021-07-14-0700e04 manylinux1 = quay.io/pypa/manylinux1_i686:2021-08-21-78eb32a
manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-07-14-67a6e11 manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-08-21-cbf585b
manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-07-14-67a6e11 manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-08-21-cbf585b
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-07-14-67a6e11 manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-08-21-cbf585b
[pypy_x86_64] [pypy_x86_64]
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-07-14-67a6e11 manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-08-21-cbf585b
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-07-14-67a6e11 manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-08-21-cbf585b
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-07-14-67a6e11 manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-08-21-cbf585b
[pypy_i686] [pypy_i686]
manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-07-14-67a6e11 manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-08-21-cbf585b
manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-07-14-67a6e11 manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-08-21-cbf585b
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-07-14-67a6e11 manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-08-21-cbf585b
[aarch64] [aarch64]
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2021-07-14-67a6e11 manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2021-08-21-cbf585b
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2021-07-14-67a6e11 manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2021-08-21-cbf585b
[ppc64le] [ppc64le]
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2021-07-14-67a6e11 manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2021-08-21-cbf585b
manylinux_2_24 = quay.io/pypa/manylinux_2_24_ppc64le:2021-07-14-67a6e11 manylinux_2_24 = quay.io/pypa/manylinux_2_24_ppc64le:2021-08-21-cbf585b
[s390x] [s390x]
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2021-07-14-67a6e11 manylinux2014 = quay.io/pypa/manylinux2014_s390x:2021-08-21-cbf585b
manylinux_2_24 = quay.io/pypa/manylinux_2_24_s390x:2021-07-14-67a6e11 manylinux_2_24 = quay.io/pypa/manylinux_2_24_s390x:2021-08-21-cbf585b
[pypy_aarch64] [pypy_aarch64]
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2021-07-14-67a6e11 manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2021-08-21-cbf585b
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2021-07-14-67a6e11 manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2021-08-21-cbf585b
+1 -1
View File
@@ -67,7 +67,7 @@ class IdentifierSelector:
""" """
# a pattern that skips prerelease versions, when include_prereleases is False. # a pattern that skips prerelease versions, when include_prereleases is False.
PRERELEASE_SKIP = "cp310-*" PRERELEASE_SKIP = ""
def __init__( def __init__(
self, self,
+15
View File
@@ -2,6 +2,21 @@
title: Changelog title: Changelog
--- ---
### v2.1.1
_7 August 2021_
- ✨ Corresponding with the release of CPython 3.10.0rc1, which is ABI stable, cibuildwheel now builds CPython 3.10 by default - without the CIBW_PRERELEASE_PYTHONS flag.
<sup>Note: v2.1.0 was a bad release, it was yanked from PyPI.</sup>
### v2.0.1
_25 July 2021_
- 📚 Docs improvements (#767)
- 🛠 Dependency updates, including delocate 0.9.0.
### v2.0.0 🎉 ### v2.0.0 🎉
_16 July 2021_ _16 July 2021_
+7
View File
@@ -376,3 +376,10 @@
ci: [github, travisci] ci: [github, travisci]
os: [apple, linux, windows] os: [apple, linux, windows]
notes: Multitagged binary builds for all supported platforms, using cibw 2 config configuration. notes: Multitagged binary builds for all supported platforms, using cibw 2 config configuration.
- name: tgcalls
gh: MarshalX/tgcalls
pypi: pytgcalls
ci: [github]
os: [apple, windows]
notes: Python `pybind11` binding to Telegram's WebRTC library with third party dependencies like `OpenSSL`, `MozJPEG`, `FFmpeg`, etc.
+2 -2
View File
@@ -210,7 +210,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.0.0 uses: pypa/cibuildwheel@v2.1.1
``` ```
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.
@@ -236,7 +236,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.0.0 cibuildwheel==2.1.1
``` ```
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:
+16 -8
View File
@@ -406,7 +406,7 @@ This option is not available in `pyproject.toml` under
``` ```
### `CIBW_PRERELEASE_PYTHONS` {: #prerelease-pythons} ### `CIBW_PRERELEASE_PYTHONS` {: #prerelease-pythons}
> Enable building with pre-release versions of Python > Enable building with pre-release versions of Python if available
During the beta period, when new versions of Python are being tested, During the beta period, when new versions of Python are being tested,
cibuildwheel will often gain early support for beta releases. If you would cibuildwheel will often gain early support for beta releases. If you would
@@ -494,19 +494,23 @@ Platform-specific environment variables are also available:<br/>
```yaml ```yaml
# Set some compiler flags # Set some compiler flags
CIBW_ENVIRONMENT: "CFLAGS='-g -Wall' CXXFLAGS='-Wall'" CIBW_ENVIRONMENT: CFLAGS='-g -Wall' CXXFLAGS='-Wall'
# Append a directory to the PATH variable (this is expanded in the build environment) # Append a directory to the PATH variable (this is expanded in the build environment)
CIBW_ENVIRONMENT: "PATH=$PATH:/usr/local/bin" CIBW_ENVIRONMENT: PATH=$PATH:/usr/local/bin
# Prepend a directory containing spaces on Windows.
CIBW_ENVIRONMENT_WINDOWS: >
PATH="C:\\Program Files\\PostgreSQL\\13\\bin;$PATH"
# Set BUILD_TIME to the output of the `date` command # Set BUILD_TIME to the output of the `date` command
CIBW_ENVIRONMENT: "BUILD_TIME=$(date)" CIBW_ENVIRONMENT: BUILD_TIME="$(date)"
# Supply options to `pip` to affect how it downloads dependencies # Supply options to `pip` to affect how it downloads dependencies
CIBW_ENVIRONMENT: "PIP_EXTRA_INDEX_URL=https://pypi.myorg.com/simple" CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://pypi.myorg.com/simple
# Set two flags on linux only # Set two flags on linux only
CIBW_ENVIRONMENT_LINUX: "BUILD_TIME=$(date) SAMPLE_TEXT=\"sample text\"" CIBW_ENVIRONMENT_LINUX: BUILD_TIME="$(date)" SAMPLE_TEXT="sample text"
``` ```
Separate multiple values with a space. Separate multiple values with a space.
@@ -524,6 +528,10 @@ Platform-specific environment variables are also available:<br/>
# Append a directory to the PATH variable (this is expanded in the build environment) # Append a directory to the PATH variable (this is expanded in the build environment)
environment = { PATH="$PATH:/usr/local/bin" } environment = { PATH="$PATH:/usr/local/bin" }
# Prepend a directory containing spaces on Windows.
[tool.cibuildwheel.windows]
environment = { PATH='C:\\Program Files\\PostgreSQL\\13\\bin;$PATH' }
# Set BUILD_TIME to the output of the `date` command # Set BUILD_TIME to the output of the `date` command
environment = { BUILD_TIME="$(date)" } environment = { BUILD_TIME="$(date)" }
@@ -568,7 +576,7 @@ Platform-specific environment variables also available:<br/>
CIBW_BEFORE_ALL: make -C third_party_lib CIBW_BEFORE_ALL: make -C third_party_lib
# Install system library # Install system library
CIBW_BEFORE_ALL_LINUX: yum install -y libffi-dev CIBW_BEFORE_ALL_LINUX: yum install -y libffi-devel
# Chain multiple commands using && and > in a YAML file, like: # Chain multiple commands using && and > in a YAML file, like:
CIBW_BEFORE_ALL: > CIBW_BEFORE_ALL: >
@@ -590,7 +598,7 @@ Platform-specific environment variables also available:<br/>
# Install system library # Install system library
[tool.cibuildwheel.linux] [tool.cibuildwheel.linux]
before-all = "yum install -y libffi-dev" before-all = "yum install -y libffi-devel"
# Run multiple commands using an array # Run multiple commands using an array
before-all = [ before-all = [
+2 -2
View File
@@ -46,7 +46,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build wheels - name: Build wheels
run: pipx run cibuildwheel==2.0.0 run: pipx run cibuildwheel==2.1.1
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
@@ -81,7 +81,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
- name: Install cibuildwheel - name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.0.0 run: python -m pip install cibuildwheel==2.1.1
- name: Build wheels - name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse run: python -m cibuildwheel --output-dir wheelhouse
+1 -1
View File
@@ -12,7 +12,7 @@ stack: python 3.7
init: init:
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH% - cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
install: python -m pip install cibuildwheel==2.0.0 install: python -m pip install cibuildwheel==2.1.1
build_script: python -m cibuildwheel --output-dir wheelhouse build_script: python -m cibuildwheel --output-dir wheelhouse
+3 -3
View File
@@ -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.0.0 pip3 install cibuildwheel==2.1.1
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.0.0 python3 -m pip install cibuildwheel==2.1.1
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.0.0 pip install cibuildwheel==2.1.1
displayName: Install dependencies displayName: Install dependencies
- bash: cibuildwheel --output-dir wheelhouse . - bash: cibuildwheel --output-dir wheelhouse .
displayName: Build wheels displayName: Build wheels
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
- run: - run:
name: Build the Linux wheels. name: Build the Linux wheels.
command: | command: |
pip3 install --user cibuildwheel==2.0.0 pip3 install --user cibuildwheel==2.1.1
cibuildwheel --output-dir wheelhouse cibuildwheel --output-dir wheelhouse
- store_artifacts: - store_artifacts:
path: wheelhouse/ path: wheelhouse/
@@ -25,7 +25,7 @@ jobs:
- run: - run:
name: Build the OS X wheels. name: Build the OS X wheels.
command: | command: |
pip3 install cibuildwheel==2.0.0 pip3 install cibuildwheel==2.1.1
cibuildwheel --output-dir wheelhouse cibuildwheel --output-dir wheelhouse
- store_artifacts: - store_artifacts:
path: wheelhouse/ path: wheelhouse/
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.0.0 uses: pypa/cibuildwheel@v2.1.1
env: env:
CIBW_ARCHS_MACOS: x86_64 universal2 CIBW_ARCHS_MACOS: x86_64 universal2
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
python-version: '3.8' python-version: '3.8'
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.0.0 uses: pypa/cibuildwheel@v2.1.1
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.0.0 uses: pypa/cibuildwheel@v2.1.1
# to supply options, put them in 'env', like: # to supply options, put them in 'env', like:
# env: # env:
# CIBW_SOME_OPTION: value # CIBW_SOME_OPTION: value
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
platforms: all platforms: all
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.0.0 uses: pypa/cibuildwheel@v2.1.1
env: env:
# configure cibuildwheel to build native archs ('auto'), and some # configure cibuildwheel to build native archs ('auto'), and some
# emulated ones # emulated ones
+1 -1
View File
@@ -12,7 +12,7 @@ linux:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
script: script:
- curl -sSL https://get.docker.com/ | sh - curl -sSL https://get.docker.com/ | sh
- python -m pip install cibuildwheel==2.0.0 - python -m pip install cibuildwheel==2.1.1
- cibuildwheel --output-dir wheelhouse - cibuildwheel --output-dir wheelhouse
artifacts: artifacts:
paths: paths:
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
- ln -s /c/Python38/python.exe /c/Python38/python3.exe - ln -s /c/Python38/python.exe /c/Python38/python3.exe
install: install:
- python3 -m pip install cibuildwheel==2.0.0 - python3 -m pip install cibuildwheel==2.1.1
script: script:
# build the wheels, put them into './wheelhouse' # build the wheels, put them into './wheelhouse'
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
- ln -s /c/Python38/python.exe /c/Python38/python3.exe - ln -s /c/Python38/python.exe /c/Python38/python3.exe
install: install:
- python3 -m pip install cibuildwheel==2.0.0 - python3 -m pip install cibuildwheel==2.1.1
script: script:
# build the wheels, put them into './wheelhouse' # build the wheels, put them into './wheelhouse'
+2 -2
View File
@@ -57,7 +57,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.0.0 install: python3 -m pip install cibuildwheel==2.1.1
script: python3 -m cibuildwheel --output-dir wheelhouse script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: | after_success: |
python3 -m pip install twine python3 -m pip install twine
@@ -67,7 +67,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.0.0 install: python3 -m pip install cibuildwheel==2.1.1
script: python3 -m cibuildwheel --output-dir wheelhouse script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: | after_success: |
python3 -m pip install twine python3 -m pip install twine
+1 -1
View File
@@ -1,6 +1,6 @@
[metadata] [metadata]
name = cibuildwheel name = cibuildwheel
version = 2.0.0 version = 2.1.1
description = Build Python wheels on CI with minimal configuration. description = Build Python wheels on CI with minimal configuration.
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown long_description_content_type = text/markdown
+4 -2
View File
@@ -1,3 +1,4 @@
import pytest
from packaging.specifiers import SpecifierSet from packaging.specifiers import SpecifierSet
from cibuildwheel.util import BuildSelector from cibuildwheel.util import BuildSelector
@@ -8,7 +9,7 @@ def test_build():
assert build_selector("cp36-manylinux_x86_64") assert build_selector("cp36-manylinux_x86_64")
assert build_selector("cp37-manylinux_x86_64") assert build_selector("cp37-manylinux_x86_64")
assert not build_selector("cp310-manylinux_x86_64") assert build_selector("cp310-manylinux_x86_64")
assert build_selector("pp36-manylinux_x86_64") assert build_selector("pp36-manylinux_x86_64")
assert build_selector("pp37-manylinux_x86_64") assert build_selector("pp37-manylinux_x86_64")
assert build_selector("cp36-manylinux_i686") assert build_selector("cp36-manylinux_i686")
@@ -26,11 +27,12 @@ def test_build():
assert not build_selector("pp37-win32") assert not build_selector("pp37-win32")
assert build_selector("cp36-win_amd64") assert build_selector("cp36-win_amd64")
assert build_selector("cp37-win_amd64") assert build_selector("cp37-win_amd64")
assert not build_selector("cp310-win_amd64") assert build_selector("cp310-win_amd64")
assert not build_selector("pp36-win_amd64") assert not build_selector("pp36-win_amd64")
assert not build_selector("pp37-win_amd64") assert not build_selector("pp37-win_amd64")
@pytest.mark.skip("this test only makes sense when we have a prerelease python to test with")
def test_build_filter_pre(): def test_build_filter_pre():
build_selector = BuildSelector( build_selector = BuildSelector(
build_config="cp3*-* *-manylinux*", build_config="cp3*-* *-manylinux*",