Compare commits

..
12 Commits
Author SHA1 Message Date
Joe Rickerby d8c7cb2cea Bump version: v2.0.0 2021-07-16 12:05:12 +01:00
Joe Rickerby 643ad1ad4f Merge pull request #760 from henryiii/henryiii/docs/cmake
docs: add two projects
2021-07-16 10:26:31 +01:00
Joe Rickerby 186296d02a Merge pull request #759 from henryiii/henryiii/docs/multiline
docs: multiline examples
2021-07-16 10:26:19 +01:00
Henry Schreiner 7a830777de chore: update_proj 2021-07-15 22:51:45 -04:00
Henry Schreiner bed7c6980c chore: improvements to the noxfile 2021-07-15 22:44:39 -04:00
Henry Schreiner 64236303df docs: add cmake/ninja to projects 2021-07-15 22:38:58 -04:00
Henry Schreiner d31df17f3a docs: add multiline examples 2021-07-15 22:30:35 -04:00
Henry Schreiner 25c27ad283 style: check spelling in pre-commit (#758) 2021-07-14 13:45:04 -04:00
Joe Rickerby 94ce795776 Merge pull request #754 from pypa/update-dependencies-pr
[Bot] Update dependencies
2021-07-14 18:24:00 +01:00
mayeut e132ce0b0e Update dependencies 2021-07-14 12:41:25 +00:00
Joe Rickerby f6f1568b1e Merge pull request #756 from pypa/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-07-14 09:20:32 +01:00
pre-commit-ci[bot] f5c69b0901 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.20.0 → v2.21.0](https://github.com/asottile/pyupgrade/compare/v2.20.0...v2.21.0)
- [github.com/PyCQA/isort: 5.9.1 → 5.9.2](https://github.com/PyCQA/isort/compare/5.9.1...5.9.2)
2021-07-12 22:42:50 +00:00
31 changed files with 239 additions and 182 deletions
+10 -4
View File
@@ -14,7 +14,7 @@ repos:
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.20.0
rev: v2.21.0
hooks:
- id: pyupgrade
name: PyUpgrade 3.6+
@@ -26,7 +26,7 @@ repos:
args: ["--py37-plus"]
- repo: https://github.com/PyCQA/isort
rev: 5.9.1
rev: 5.9.2
hooks:
- id: isort
@@ -54,7 +54,7 @@ repos:
- types-toml
- id: mypy
name: mypy 3.7+ on bin/
files: ^(bin|docs)/.*py$
files: ^((bin|docs)/.*py|noxfile.py)$
args: ["--python-version=3.7", "--scripts-are-modules"]
additional_dependencies:
- packaging>=21.0
@@ -77,6 +77,12 @@ repos:
- id: disallow-caps
name: Disallow improper capitalization
language: pygrep
entry: PyBind|Numpy|Cmake|Github
entry: PyBind|Numpy|Cmake|Github|PyTest
types:
- markdown
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args: ["-L", "sur"]
+82 -93
View File
@@ -85,7 +85,7 @@ jobs:
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.0.0b2
run: python -m pip install cibuildwheel==2.0.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
@@ -145,6 +145,7 @@ Here are some repos that use cibuildwheel.
| [psutil][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Cross-platform lib for process and system monitoring in Python |
| [scikit-image][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Image processing library. Uses cibuildwheel to build and test a project that uses Cython with platform-native code. |
| [twisted-iocpsupport][] | ![github icon][] | ![windows icon][] | A submodule of Twisted that hooks into native C APIs using Cython. |
| [cmake][] | ![github icon][] ![travisci icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Multitagged binary builds for all supported platforms, using cibw 2 config configuration. |
| [websockets][] | ![travisci icon][] | ![apple icon][] ![linux icon][] | Library for building WebSocket servers and clients. Mostly written in Python, with a small C 'speedups' extension module. |
| [pyzmq][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Python bindings for zeromq, the networking library. Uses Cython and CFFI. |
| [aiortc][] | ![github icon][] | ![apple icon][] ![linux icon][] | WebRTC and ORTC implementation for Python using asyncio. |
@@ -171,29 +172,30 @@ Here are some repos that use cibuildwheel.
| [KDEpy][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Kernel Density Estimation in Python |
| [cyvcf2][] | ![github icon][] | ![apple icon][] ![linux icon][] | cython + htslib == fast VCF and BCF processing |
| [pybind11 python_example][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Example pybind11 module built with a Python-based build system |
| [sourmash][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Quickly search, compare, and analyze genomic and metagenomic data sets. |
| [dd-trace-py][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Uses custom alternate arch emulation on GitHub |
| [iminuit][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Jupyter-friendly Python interface for C++ MINUIT2 |
| [sourmash][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Quickly search, compare, and analyze genomic and metagenomic data sets. |
| [time-machine][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Time mocking library using only the CPython C API. |
| [iminuit][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Jupyter-friendly Python interface for C++ MINUIT2 |
| [CTranslate2][] | ![github icon][] | ![apple icon][] ![linux icon][] | Includes libraries from the [Intel oneAPI toolkit](https://software.intel.com/content/www/us/en/develop/tools/oneapi/base-toolkit.html). The Linux wheels also include CUDA libraries for GPU execution. |
| [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 |
| [Tokenizer][] | ![github icon][] ![travisci icon][] | ![apple icon][] ![linux icon][] | Fast and customizable text tokenization library with BPE and SentencePiece support |
| [PyGLM][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Fast OpenGL Mathematics (GLM) for Python |
| [bx-python][] | ![travisci icon][] | ![apple icon][] ![linux icon][] | A library that includes Cython extensions. |
| [iDynTree][] | ![github icon][] | ![linux icon][] | Uses manylinux_2_24 |
| [boost-histogram][] | ![github icon][] ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Supports full range of wheels, including PyPy and alternate archs. |
| [TgCrypto][] | ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Includes a Windows Travis build. |
| [iDynTree][] | ![github icon][] | ![linux icon][] | Uses manylinux_2_24 |
| [pybase64][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Fast Base64 encoding/decoding in Python |
| [TgCrypto][] | ![travisci icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Includes a Windows Travis build. |
| [etebase-py][] | ![travisci icon][] | ![linux icon][] | Python bindings to a Rust library using `setuptools-rust`, and `sccache` for improved speed. |
| [fathon][] | ![travisci icon][] | ![apple icon][] ![linux icon][] | python package for DFA (Detrended Fluctuation Analysis) and related algorithms |
| [pyjet][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | The interface between FastJet and NumPy |
| [numpythia][] | ![github icon][] | ![apple icon][] ![linux icon][] | The interface between PYTHIA and NumPy |
| [polaroid][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Full range of wheels for setuptools rust, with auto release and PyPI deploy. |
| [ninja][] | ![github icon][] ![travisci icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Multitagged binary builds for all supported platforms, using cibw 2 config configuration. |
| [GSD][] | ![github icon][] | ![apple icon][] ![linux icon][] ![windows icon][] | Cython and NumPy project with 64-bit wheels. |
| [pybind11 scikit_build_example][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | An example combining scikit-build and pybind11 |
| [pyinstrument_cext][] | ![travisci icon][] ![appveyor icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | A simple C extension, without external dependencies |
| [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. |
| [pyinstrument_cext][] | ![travisci icon][] ![appveyor icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | A simple C extension, without external dependencies |
| [xmlstarlet][] | ![github icon][] | ![windows icon][] ![apple icon][] ![linux icon][] | Python 3.6+ CFFI bindings with true MSVC build. |
| [CorrectionLib][] | ![github icon][] | ![apple icon][] ![linux icon][] | Structured JSON powered correction library for HEP, designed for the CMS experiment at CERN. |
| [SiPM][] | ![github icon][] | ![apple icon][] ![linux icon][] | High performance library for SiPM detectors simulation using C++17, OpenMP and AVX2 intrinsics. |
@@ -204,6 +206,7 @@ Here are some repos that use cibuildwheel.
[psutil]: https://github.com/giampaolo/psutil
[scikit-image]: https://github.com/scikit-image/scikit-image
[twisted-iocpsupport]: https://github.com/twisted/twisted-iocpsupport
[cmake]: https://github.com/scikit-build/cmake-python-distributions
[websockets]: https://github.com/aaugustin/websockets
[pyzmq]: https://github.com/zeromq/pyzmq
[aiortc]: https://github.com/aiortc/aiortc
@@ -230,29 +233,30 @@ Here are some repos that use cibuildwheel.
[KDEpy]: https://github.com/tommyod/KDEpy
[cyvcf2]: https://github.com/brentp/cyvcf2
[pybind11 python_example]: https://github.com/pybind/python_example
[sourmash]: https://github.com/dib-lab/sourmash
[dd-trace-py]: https://github.com/DataDog/dd-trace-py
[iminuit]: https://github.com/scikit-hep/iminuit
[sourmash]: https://github.com/dib-lab/sourmash
[time-machine]: https://github.com/adamchainz/time-machine
[iminuit]: https://github.com/scikit-hep/iminuit
[CTranslate2]: https://github.com/OpenNMT/CTranslate2
[matrixprofile]: https://github.com/matrix-profile-foundation/matrixprofile
[jq.py]: https://github.com/mwilliamson/jq.py
[Tokenizer]: https://github.com/OpenNMT/Tokenizer
[PyGLM]: https://github.com/Zuzu-Typ/PyGLM
[bx-python]: https://github.com/bxlab/bx-python
[iDynTree]: https://github.com/robotology/idyntree
[boost-histogram]: https://github.com/scikit-hep/boost-histogram
[TgCrypto]: https://github.com/pyrogram/tgcrypto
[iDynTree]: https://github.com/robotology/idyntree
[pybase64]: https://github.com/mayeut/pybase64
[TgCrypto]: https://github.com/pyrogram/tgcrypto
[etebase-py]: https://github.com/etesync/etebase-py
[fathon]: https://github.com/stfbnc/fathon
[pyjet]: https://github.com/scikit-hep/pyjet
[numpythia]: https://github.com/scikit-hep/numpythia
[polaroid]: https://github.com/daggy1234/polaroid
[ninja]: https://github.com/scikit-build/ninja-python-distributions
[GSD]: https://github.com/glotzerlab/gsd
[pybind11 scikit_build_example]: https://github.com/pybind/scikit_build_example
[pyinstrument_cext]: https://github.com/joerick/pyinstrument_cext
[Imagecodecs (fork)]: https://github.com/czaki/imagecodecs_build
[pyinstrument_cext]: https://github.com/joerick/pyinstrument_cext
[xmlstarlet]: https://github.com/dimitern/xmlstarlet
[CorrectionLib]: https://github.com/cms-nanoAOD/correctionlib
[SiPM]: https://github.com/EdoPro98/SimSiPM
@@ -267,64 +271,66 @@ Here are some repos that use cibuildwheel.
[apple icon]: docs/data/readme_icons/apple.svg
[linux icon]: docs/data/readme_icons/linux.svg
<!-- scikit-learn: 46313, last pushed 0 days ago -->
<!-- Matplotlib: 13847, last pushed 0 days ago -->
<!-- MyPy: 10969, last pushed 0 days ago -->
<!-- psutil: 7454, last pushed 4 days ago -->
<!-- scikit-image: 4405, last pushed 0 days ago -->
<!-- twisted-iocpsupport: 4293, last pushed 8 days ago -->
<!-- websockets: 3442, last pushed 8 days ago -->
<!-- pyzmq: 2832, last pushed 16 days ago -->
<!-- aiortc: 2457, last pushed 23 days ago -->
<!-- River: 1722, last pushed 5 days ago -->
<!-- coverage.py: 1639, last pushed 11 days ago -->
<!-- numexpr: 1600, last pushed 123 days ago -->
<!-- h5py: 1533, last pushed 6 days ago -->
<!-- Dependency Injector: 1422, last pushed 10 days ago -->
<!-- PyAV: 1286, last pushed 28 days ago -->
<!-- PyTables: 1037, last pushed 101 days ago -->
<!-- ruptures: 749, last pushed 6 days ago -->
<!-- aioquic: 693, last pushed 20 days ago -->
<!-- pikepdf: 671, last pushed 4 days ago -->
<!-- google neuroglancer: 655, last pushed 3 days ago -->
<!-- DeepForest: 627, last pushed 34 days ago -->
<!-- AutoPy: 544, last pushed 17 days ago -->
<!-- Parselmouth: 524, last pushed 11 days ago -->
<!-- python-rapidjson: 423, last pushed 9 days ago -->
<!-- Rtree: 412, last pushed 106 days ago -->
<!-- python-snappy: 405, last pushed 129 days ago -->
<!-- markupsafe: 402, last pushed 2 days ago -->
<!-- H3-py: 397, last pushed 22 days ago -->
<!-- pybind11 cmake_example: 285, last pushed 9 days ago -->
<!-- KDEpy: 280, last pushed 31 days ago -->
<!-- cyvcf2: 265, last pushed 66 days ago -->
<!-- pybind11 python_example: 255, last pushed 12 days ago -->
<!-- sourmash: 252, last pushed 0 days ago -->
<!-- dd-trace-py: 251, last pushed 3 days ago -->
<!-- iminuit: 181, last pushed 0 days ago -->
<!-- time-machine: 178, last pushed 1 days ago -->
<!-- CTranslate2: 170, last pushed 3 days ago -->
<!-- matrixprofile: 167, last pushed 9 days ago -->
<!-- jq.py: 159, last pushed 12 days ago -->
<!-- Tokenizer: 147, last pushed 9 days ago -->
<!-- PyGLM: 105, last pushed 54 days ago -->
<!-- bx-python: 103, last pushed 20 days ago -->
<!-- iDynTree: 82, last pushed 19 days ago -->
<!-- boost-histogram: 81, last pushed 4 days ago -->
<!-- TgCrypto: 66, last pushed 35 days ago -->
<!-- pybase64: 65, last pushed 0 days ago -->
<!-- etebase-py: 50, last pushed 181 days ago -->
<!-- fathon: 32, last pushed 32 days ago -->
<!-- pyjet: 29, last pushed 46 days ago -->
<!-- numpythia: 28, last pushed 11 days ago -->
<!-- polaroid: 18, last pushed 6 days ago -->
<!-- GSD: 16, last pushed 3 days ago -->
<!-- pybind11 scikit_build_example: 14, last pushed 12 days ago -->
<!-- pyinstrument_cext: 10, last pushed 4 days ago -->
<!-- Imagecodecs (fork): 10, last pushed 9 days ago -->
<!-- xmlstarlet: 7, last pushed 76 days ago -->
<!-- CorrectionLib: 6, last pushed 12 days ago -->
<!-- SiPM: 4, last pushed 1 days ago -->
<!-- scikit-learn: 46430, last pushed 0 days ago -->
<!-- Matplotlib: 13903, last pushed 0 days ago -->
<!-- MyPy: 11014, last pushed 0 days ago -->
<!-- psutil: 7484, last pushed 15 days ago -->
<!-- scikit-image: 4419, last pushed 0 days ago -->
<!-- twisted-iocpsupport: 4296, last pushed 0 days ago -->
<!-- cmake: 4013, last pushed 0 days ago -->
<!-- websockets: 3457, last pushed 19 days ago -->
<!-- pyzmq: 2848, last pushed 6 days ago -->
<!-- aiortc: 2470, last pushed 4 days ago -->
<!-- River: 1749, last pushed 3 days ago -->
<!-- coverage.py: 1646, last pushed 0 days ago -->
<!-- numexpr: 1605, last pushed 8 days ago -->
<!-- h5py: 1540, last pushed 3 days ago -->
<!-- Dependency Injector: 1447, last pushed 21 days ago -->
<!-- PyAV: 1295, last pushed 39 days ago -->
<!-- PyTables: 1042, last pushed 112 days ago -->
<!-- ruptures: 757, last pushed 9 days ago -->
<!-- aioquic: 708, last pushed 1 days ago -->
<!-- pikepdf: 683, last pushed 2 days ago -->
<!-- google neuroglancer: 661, last pushed 0 days ago -->
<!-- DeepForest: 629, last pushed 0 days ago -->
<!-- AutoPy: 550, last pushed 28 days ago -->
<!-- Parselmouth: 524, last pushed 22 days ago -->
<!-- python-rapidjson: 425, last pushed 20 days ago -->
<!-- Rtree: 413, last pushed 117 days ago -->
<!-- python-snappy: 405, last pushed 140 days ago -->
<!-- markupsafe: 404, last pushed 9 days ago -->
<!-- H3-py: 402, last pushed 33 days ago -->
<!-- pybind11 cmake_example: 289, last pushed 6 days ago -->
<!-- KDEpy: 285, last pushed 42 days ago -->
<!-- cyvcf2: 264, last pushed 77 days ago -->
<!-- pybind11 python_example: 258, last pushed 1 days ago -->
<!-- dd-trace-py: 256, last pushed 0 days ago -->
<!-- sourmash: 253, last pushed 0 days ago -->
<!-- time-machine: 187, last pushed 2 days ago -->
<!-- iminuit: 180, last pushed 11 days ago -->
<!-- CTranslate2: 177, last pushed 0 days ago -->
<!-- matrixprofile: 170, last pushed 20 days ago -->
<!-- jq.py: 162, last pushed 23 days ago -->
<!-- Tokenizer: 148, last pushed 20 days ago -->
<!-- PyGLM: 106, last pushed 65 days ago -->
<!-- bx-python: 103, last pushed 6 days ago -->
<!-- boost-histogram: 82, last pushed 3 days ago -->
<!-- iDynTree: 82, last pushed 0 days ago -->
<!-- pybase64: 68, last pushed 0 days ago -->
<!-- TgCrypto: 67, last pushed 46 days ago -->
<!-- etebase-py: 51, last pushed 192 days ago -->
<!-- fathon: 32, last pushed 43 days ago -->
<!-- pyjet: 29, last pushed 57 days ago -->
<!-- numpythia: 29, last pushed 6 days ago -->
<!-- polaroid: 19, last pushed 17 days ago -->
<!-- ninja: 19, last pushed 0 days ago -->
<!-- GSD: 16, last pushed 14 days ago -->
<!-- pybind11 scikit_build_example: 14, last pushed 6 days ago -->
<!-- Imagecodecs (fork): 11, last pushed 20 days ago -->
<!-- pyinstrument_cext: 10, last pushed 15 days ago -->
<!-- xmlstarlet: 7, last pushed 3 days ago -->
<!-- CorrectionLib: 6, last pushed 23 days ago -->
<!-- SiPM: 4, last pushed 6 days ago -->
<!-- END bin/projects.py -->
@@ -348,33 +354,16 @@ Changelog
<!--changelog-start-->
### v2.0.0 (prerelease)
### v2.0.0 🎉
_This release is currently in prerelease. The below release notes will be condensed into a single entry when we do a final release._
_v2.0.0b2 (9 July 2021)_
- 🐛 Bug fix to the GitHub action (#753)
_v2.0.0b1 (9 July 2021)_
- 🐛 Bug fixes & docs improvements
_v2.0.0a4 (25 June 2021)_
- 🌟 Added support for building wheels with [build](https://github.com/pypa/build), as well as pip. This feature is controlled with the [`CIBW_BUILD_FRONTEND`](https://cibuildwheel.readthedocs.io/en/latest/options/#build-frontend) option.
_v2.0.0a3 (22 June 2021)_
- 🌟 You can now configure cibuildwheel options inside your project's `pyproject.toml`! Environment variables still work of course. Check out the [documentation](https://cibuildwheel.readthedocs.io/en/latest/options/#setting-options) for more info.
_v2.0.0a2 (1 June 2021)_
- 🌟 Added the ability to test building wheels on CPython 3.10! Because CPython 3.10 is in beta, these wheels should not be distributed, because they might not be compatible with the final release, but it's available to build for testing purposes. Use the flag [`--prerelease-pythons` or `CIBW_PRERELEASE_PYTHONS`](https://cibuildwheel.readthedocs.io/en/latest/options/#prerelease-pythons) to test. (#675)
- 🌟 You can now configure cibuildwheel options inside your project's `pyproject.toml`! Environment variables still work of course. Check out the [documentation](https://cibuildwheel.readthedocs.io/en/stable/options/#setting-options) for more info.
- 🌟 Added support for building wheels with [build](https://github.com/pypa/build), as well as pip. This feature is controlled with the [`CIBW_BUILD_FRONTEND`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-frontend) option.
- 🌟 Added the ability to test building wheels on CPython 3.10! Because CPython 3.10 is in beta, these wheels should not be distributed, because they might not be compatible with the final release, but it's available to build for testing purposes. Use the flag [`--prerelease-pythons` or `CIBW_PRERELEASE_PYTHONS`](https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons) to test. (#675) This version of cibuildwheel includes CPython 3.10.0b4.
- ⚠️ **Removed support for building Python 2.7 and Python 3.5 wheels**, for both CPython and PyPy. If you still need to build on these versions, please use the latest v1.x version. (#596)
- ✨ Added the ability to build CPython 3.8 wheels for Apple Silicon. (#704)
- 🛠 Update to the latest build dependencies, including auditwheel 4. (#633)
- 🛠 Update to the latest build dependencies, including Auditwheel 4. (#633)
- 🛠 Use the unified pypa/manylinux images to build PyPy (#671)
- ⚠️ Removed support for building Python 2.7 and Python 3.5 wheels, for both CPython and PyPy. If you still need to build on these versions, please use the latest v1.x version. (#596)
- 🐛 Numerous bug fixes & docs improvements
### v1.12.0
+1 -1
View File
@@ -1 +1 @@
__version__ = "2.0.0b2"
__version__ = "2.0.0"
+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_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 = "cp310-macosx_x86_64", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0b3-macos11.pkg" },
{ identifier = "cp310-macosx_arm64", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0b3-macos11.pkg" },
{ identifier = "cp310-macosx_universal2", version = "3.10", url = "https://www.python.org/ftp/python/3.10.0/python-3.10.0b3-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_arm64", 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.0b4-macos11.pkg" },
{ 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 = "cp39-win32", version = "3.9.6", arch = "32" },
{ identifier = "cp39-win_amd64", version = "3.9.6", arch = "64" },
{ identifier = "cp310-win32", version = "3.10.0-b3", arch = "32" },
{ identifier = "cp310-win_amd64", version = "3.10.0-b3", arch = "64" },
{ identifier = "cp310-win32", version = "3.10.0-b4", arch = "32" },
{ identifier = "cp310-win_amd64", version = "3.10.0-b4", arch = "64" },
{ identifier = "pp37-win_amd64", version = "3.7", arch = "64", url = "https://downloads.python.org/pypy/pypy3.7-v7.3.5-win64.zip" },
]
@@ -4,7 +4,7 @@
#
# bin/update_dependencies.py
#
appdirs==1.4.4
backports.entry-points-selectable==1.1.0
# via virtualenv
delocate==0.8.2
# via -r cibuildwheel/resources/constraints.in
@@ -13,14 +13,18 @@ distlib==0.3.2
filelock==3.0.12
# via virtualenv
importlib-metadata==4.6.1
# via virtualenv
# via
# backports.entry-points-selectable
# virtualenv
importlib-resources==5.2.0
# via virtualenv
platformdirs==2.0.2
# via virtualenv
six==1.16.0
# via virtualenv
typing-extensions==3.10.0.0
# via importlib-metadata
virtualenv==20.4.7
virtualenv==20.5.0
# via -r cibuildwheel/resources/constraints.in
wheel==0.36.2
# via
@@ -4,7 +4,7 @@
#
# bin/update_dependencies.py
#
appdirs==1.4.4
backports.entry-points-selectable==1.1.0
# via virtualenv
delocate==0.8.2
# via -r cibuildwheel/resources/constraints.in
@@ -13,12 +13,16 @@ distlib==0.3.2
filelock==3.0.12
# via virtualenv
importlib-metadata==4.6.1
# via
# backports.entry-points-selectable
# virtualenv
platformdirs==2.0.2
# via virtualenv
six==1.16.0
# via virtualenv
typing-extensions==3.10.0.0
# via importlib-metadata
virtualenv==20.4.7
virtualenv==20.5.0
# via -r cibuildwheel/resources/constraints.in
wheel==0.36.2
# via
@@ -4,7 +4,7 @@
#
# bin/update_dependencies.py
#
appdirs==1.4.4
backports.entry-points-selectable==1.1.0
# via virtualenv
delocate==0.8.2
# via -r cibuildwheel/resources/constraints.in
@@ -12,9 +12,11 @@ distlib==0.3.2
# via virtualenv
filelock==3.0.12
# via virtualenv
platformdirs==2.0.2
# via virtualenv
six==1.16.0
# via virtualenv
virtualenv==20.4.7
virtualenv==20.5.0
# via -r cibuildwheel/resources/constraints.in
wheel==0.36.2
# via
@@ -4,7 +4,7 @@
#
# bin/update_dependencies.py
#
appdirs==1.4.4
backports.entry-points-selectable==1.1.0
# via virtualenv
delocate==0.8.2
# via -r cibuildwheel/resources/constraints.in
@@ -12,9 +12,11 @@ distlib==0.3.2
# via virtualenv
filelock==3.0.12
# via virtualenv
platformdirs==2.0.2
# via virtualenv
six==1.16.0
# via virtualenv
virtualenv==20.4.7
virtualenv==20.5.0
# via -r cibuildwheel/resources/constraints.in
wheel==0.36.2
# via
+4 -2
View File
@@ -4,7 +4,7 @@
#
# bin/update_dependencies.py
#
appdirs==1.4.4
backports.entry-points-selectable==1.1.0
# via virtualenv
delocate==0.8.2
# via -r cibuildwheel/resources/constraints.in
@@ -12,9 +12,11 @@ distlib==0.3.2
# via virtualenv
filelock==3.0.12
# via virtualenv
platformdirs==2.0.2
# via virtualenv
six==1.16.0
# via virtualenv
virtualenv==20.4.7
virtualenv==20.5.0
# via -r cibuildwheel/resources/constraints.in
wheel==0.36.2
# via
+22 -22
View File
@@ -1,38 +1,38 @@
[x86_64]
manylinux1 = quay.io/pypa/manylinux1_x86_64:2021-07-04-13bcf48
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-07-04-1e3ce39
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-07-04-1e3ce39
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-07-04-1e3ce39
manylinux1 = quay.io/pypa/manylinux1_x86_64:2021-07-14-0700e04
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-07-14-67a6e11
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-07-14-67a6e11
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-07-14-67a6e11
[i686]
manylinux1 = quay.io/pypa/manylinux1_i686:2021-07-04-13bcf48
manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-07-04-1e3ce39
manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-07-04-1e3ce39
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-07-04-1e3ce39
manylinux1 = quay.io/pypa/manylinux1_i686:2021-07-14-0700e04
manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-07-14-67a6e11
manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-07-14-67a6e11
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-07-14-67a6e11
[pypy_x86_64]
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-07-04-1e3ce39
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-07-04-1e3ce39
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-07-04-1e3ce39
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-07-14-67a6e11
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-07-14-67a6e11
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-07-14-67a6e11
[pypy_i686]
manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-07-04-1e3ce39
manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-07-04-1e3ce39
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-07-04-1e3ce39
manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-07-14-67a6e11
manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-07-14-67a6e11
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-07-14-67a6e11
[aarch64]
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2021-07-04-1e3ce39
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2021-07-04-1e3ce39
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2021-07-14-67a6e11
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2021-07-14-67a6e11
[ppc64le]
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2021-07-04-1e3ce39
manylinux_2_24 = quay.io/pypa/manylinux_2_24_ppc64le:2021-07-04-1e3ce39
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2021-07-14-67a6e11
manylinux_2_24 = quay.io/pypa/manylinux_2_24_ppc64le:2021-07-14-67a6e11
[s390x]
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2021-07-04-1e3ce39
manylinux_2_24 = quay.io/pypa/manylinux_2_24_s390x:2021-07-04-1e3ce39
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2021-07-14-67a6e11
manylinux_2_24 = quay.io/pypa/manylinux_2_24_s390x:2021-07-14-67a6e11
[pypy_aarch64]
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2021-07-04-1e3ce39
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2021-07-04-1e3ce39
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2021-07-14-67a6e11
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2021-07-14-67a6e11
+2 -2
View File
@@ -144,8 +144,8 @@ class Unbuffered:
self.stream.write(data)
self.stream.flush()
def writelines(self, datas): # type: ignore
self.stream.writelines(datas)
def writelines(self, data): # type: ignore
self.stream.writelines(data)
self.stream.flush()
def __getattr__(self, attr): # type: ignore
+1 -1
View File
@@ -20,7 +20,7 @@ Design Goals
Other notes:
- The platforms are very similar, until they're not. I'd rather have straight-forward code than totally DRY code, so let's keep airy platfrom abstractions to a minimum.
- The platforms are very similar, until they're not. I'd rather have straight-forward code than totally DRY code, so let's keep airy platform abstractions to a minimum.
- I might want to break the options into a shared config file one day, so that config is more easily shared. That has motivated some of the design decisions.
### cibuildwheel's relationship with build errors
+13
View File
@@ -363,3 +363,16 @@
gh: LAMDA-NJU/Deep-Forest
ci: [github]
os: [apple, linux, windows]
- name: cmake
gh: scikit-build/cmake-python-distributions
stars: Kitware/CMake
ci: [github, travisci]
os: [apple, linux, windows]
notes: Multitagged binary builds for all supported platforms, using cibw 2 config configuration.
- name: ninja
gh: scikit-build/ninja-python-distributions
ci: [github, travisci]
os: [apple, linux, windows]
notes: Multitagged binary builds for all supported platforms, using cibw 2 config configuration.
+1 -1
View File
@@ -148,7 +148,7 @@ h1, h2, h3, h4, h5, h6 {
}
.tabs-header button:focus-visible {
/* preserve an outline for accesibility purposes */
/* preserve an outline for accessibility purposes */
outline: 1px solid currentColor;
outline-offset: -1px;
}
+3 -3
View File
@@ -16,7 +16,7 @@ If your wheel didn't compile, check the list below for some debugging tips.
### Building Python 2.7 / PyPy2 wheels
See the [cibuildwheel verison 1 docs](https://cibuildwheel.readthedocs.io/en/1.x/) for information about building Python 2.7 or PyPy2 wheels. There are lots of tricks and workaround there that are no longer required for Python 3 in cibuildwheel 2.
See the [cibuildwheel version 1 docs](https://cibuildwheel.readthedocs.io/en/1.x/) for information about building Python 2.7 or PyPy2 wheels. There are lots of tricks and workaround there that are no longer required for Python 3 in cibuildwheel 2.
### Linux builds on Docker
@@ -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:
```yaml
uses: pypa/cibuildwheel@v2.0.0b2
uses: pypa/cibuildwheel@v2.0.0
```
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
# requirements-cibw.txt
cibuildwheel==2.0.0b2
cibuildwheel==2.0.0
```
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:
+36 -9
View File
@@ -240,7 +240,7 @@ See the [cibuildwheel 1 documentation](https://cibuildwheel.readthedocs.io/en/1.
skip = "pp*"
```
It is generally recommened to set `CIBW_BUILD` as an environment variable, though `skip`
It is generally recommended to set `CIBW_BUILD` as an environment variable, though `skip`
tends to be useful in a config file; you can statically declare that you don't
support pypy, for example.
@@ -337,7 +337,7 @@ This option can also be set using the [command-line option](#command-line) `--ar
archs = ["auto", "aarch64"]
```
It is generally recommmended to use the environment variable or
It is generally recommended to use the environment variable or
command-line option for Linux, as selecting archs often depends
on your specific runner having qemu installed.
@@ -738,6 +738,11 @@ Platform-specific environment variables are also available:<br/>
# Pass the `--lib-sdir .` flag to auditwheel on Linux
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair --lib-sdir . -w {dest_dir} {wheel}"
# Multi-line example - use && to join on all platforms
CIBW_REPAIR_WHEEL_COMMAND: >
python scripts/repair_wheel.py -w {dest_dir} {wheel} &&
python scripts/check_repaired_wheel.py -w {dest_dir} {wheel}
```
!!! tab examples "pyproject.toml"
@@ -745,16 +750,23 @@ Platform-specific environment variables are also available:<br/>
```toml
# Use delvewheel on windows
[tool.cibuildwheel.windows]
before_build = "pip install delvewheel"
repair_wheel_command = "delvewheel repair -w {dest_dir} {wheel}"
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
# Don't repair macOS wheels
[tool.cibuildwheel.macos]
repair_wheel_command = ""
repair-wheel-command = ""
# Pass the `--lib-sdir .` flag to auditwheel on Linux
[tool.cibuildwheel.linux]
repair_wheel_command = "auditwheel repair --lib-sdir . -w {dest_dir} {wheel}"
repair-wheel-command = "auditwheel repair --lib-sdir . -w {dest_dir} {wheel}"
# Multi-line example
[tool.cibuildwheel]
repair-wheel-command = [
'python scripts/repair_wheel.py -w {dest_dir} {wheel}',
'python scripts/check_repaired_wheel.py -w {dest_dir} {wheel}',
]
```
In configuration mode, you can use an inline array, and the items will be joined with `&&`.
@@ -841,7 +853,7 @@ Auditwheel detects the version of the manylinux standard in the Docker image thr
```
Like any other option, these can be placed in `[tool.cibuildwheel.linux]`
if you perfer; they have no effect on `macos` and `windows`.
if you prefer; they have no effect on `macos` and `windows`.
### `CIBW_DEPENDENCY_VERSIONS` {: #dependency-versions}
> Specify how cibuildwheel controls the versions of the tools it uses
@@ -943,6 +955,11 @@ Platform-specific environment variables are also available:<br/>
# Trigger an install of the package, but run nothing of note
CIBW_TEST_COMMAND: "echo Wheel installed"
# Multi-line example - join with && on all platforms
CIBW_TEST_COMMAND: >
pytest {package}/tests &&
python {package}/test.py
```
!!! tab examples "pyproject.toml"
@@ -957,6 +974,12 @@ Platform-specific environment variables are also available:<br/>
# Trigger an install of the package, but run nothing of note
test-command = "echo Wheel installed"
# Multiline example
test-command = [
"pytest {package}/tests",
"python {package}/test.py",
]
```
In configuration files, you can use an array, and the items will be joined with `&&`.
@@ -987,7 +1010,11 @@ Platform-specific environment variables are also available:<br/>
CIBW_BEFORE_TEST: rm -rf ./data/cache && mkdir -p ./data/cache
# Install non pip python package
CIBW_BEFORE_TEST: cd some_dir; ./configure; make; make install
CIBW_BEFORE_TEST: >
cd some_dir &&
./configure &&
make &&
make install
# Install python packages that are required to install test dependencies
CIBW_BEFORE_TEST: pip install cmake scikit-build
@@ -1080,7 +1107,7 @@ Platform-specific environment variables are also available:<br/>
CIBW_TEST_EXTRAS: "test,qt"
```
Seperate multiple items with a comma.
Separate multiple items with a comma.
!!! tab examples "pyproject.toml"
+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
- name: Build wheels
run: pipx run cibuildwheel==2.0.0b2
run: pipx run cibuildwheel==2.0.0
- uses: actions/upload-artifact@v2
with:
@@ -81,7 +81,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.0.0b2
run: python -m pip install cibuildwheel==2.0.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
+1 -1
View File
@@ -12,7 +12,7 @@ stack: python 3.7
init:
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
install: python -m pip install cibuildwheel==2.0.0b2
install: python -m pip install cibuildwheel==2.0.0
build_script: python -m cibuildwheel --output-dir wheelhouse
+3 -3
View File
@@ -6,7 +6,7 @@ jobs:
- bash: |
set -o errexit
python3 -m pip install --upgrade pip
pip3 install cibuildwheel==2.0.0b2
pip3 install cibuildwheel==2.0.0
displayName: Install dependencies
- bash: cibuildwheel --output-dir wheelhouse .
displayName: Build wheels
@@ -20,7 +20,7 @@ jobs:
- bash: |
set -o errexit
python3 -m pip install --upgrade pip
python3 -m pip install cibuildwheel==2.0.0b2
python3 -m pip install cibuildwheel==2.0.0
displayName: Install dependencies
- bash: cibuildwheel --output-dir wheelhouse .
displayName: Build wheels
@@ -34,7 +34,7 @@ jobs:
- bash: |
set -o errexit
python -m pip install --upgrade pip
pip install cibuildwheel==2.0.0b2
pip install cibuildwheel==2.0.0
displayName: Install dependencies
- bash: cibuildwheel --output-dir wheelhouse .
displayName: Build wheels
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
- run:
name: Build the Linux wheels.
command: |
pip3 install --user cibuildwheel==2.0.0b2
pip3 install --user cibuildwheel==2.0.0
cibuildwheel --output-dir wheelhouse
- store_artifacts:
path: wheelhouse/
@@ -25,7 +25,7 @@ jobs:
- run:
name: Build the OS X wheels.
command: |
pip3 install cibuildwheel==2.0.0b2
pip3 install cibuildwheel==2.0.0
cibuildwheel --output-dir wheelhouse
- store_artifacts:
path: wheelhouse/
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- name: Build wheels
uses: pypa/cibuildwheel@v2.0.0b2
uses: pypa/cibuildwheel@v2.0.0
env:
CIBW_ARCHS_MACOS: x86_64 universal2
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
python-version: '3.8'
- name: Build wheels
uses: pypa/cibuildwheel@v2.0.0b2
uses: pypa/cibuildwheel@v2.0.0
- uses: actions/upload-artifact@v2
with:
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- name: Build wheels
uses: pypa/cibuildwheel@v2.0.0b2
uses: pypa/cibuildwheel@v2.0.0
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
platforms: all
- name: Build wheels
uses: pypa/cibuildwheel@v2.0.0b2
uses: pypa/cibuildwheel@v2.0.0
env:
# configure cibuildwheel to build native archs ('auto'), and some
# emulated ones
+1 -1
View File
@@ -12,7 +12,7 @@ linux:
DOCKER_TLS_CERTDIR: ""
script:
- curl -sSL https://get.docker.com/ | sh
- python -m pip install cibuildwheel==2.0.0b2
- python -m pip install cibuildwheel==2.0.0
- cibuildwheel --output-dir wheelhouse
artifacts:
paths:
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
install:
- python3 -m pip install cibuildwheel==2.0.0b2
- python3 -m pip install cibuildwheel==2.0.0
script:
# 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
install:
- python3 -m pip install cibuildwheel==2.0.0b2
- python3 -m pip install cibuildwheel==2.0.0
script:
# build the wheels, put them into './wheelhouse'
+2 -2
View File
@@ -57,7 +57,7 @@ jobs:
- stage: deploy
name: Build and deploy Linux wheels
services: docker
install: python3 -m pip install cibuildwheel==2.0.0b2
install: python3 -m pip install cibuildwheel==2.0.0
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
@@ -67,7 +67,7 @@ jobs:
name: Build and deploy Windows wheels
os: windows
language: shell
install: python3 -m pip install cibuildwheel==2.0.0b2
install: python3 -m pip install cibuildwheel==2.0.0
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
+16 -10
View File
@@ -12,7 +12,7 @@ DIR = Path(__file__).parent.resolve()
@nox.session
def tests(session):
def tests(session: nox.Session) -> None:
"""
Run the unit and regular tests.
"""
@@ -26,16 +26,16 @@ def tests(session):
@nox.session
def lint(session):
def lint(session: nox.Session) -> None:
"""
Run the linter.
"""
session.install("pre-commit")
session.run("pre-commit", "run", "--all-files")
session.run("pre-commit", "run", "--all-files", *session.posargs)
@nox.session(python=PYTHON_ALL_VERSIONS)
def update_constraints(session):
def update_constraints(session: nox.Session) -> None:
"""
Update the dependencies inplace.
"""
@@ -44,7 +44,7 @@ def update_constraints(session):
@nox.session
def update_pins(session):
def update_pins(session: nox.Session) -> None:
"""
Update the python and docker pins version inplace.
"""
@@ -54,16 +54,22 @@ def update_pins(session):
@nox.session
def update_proj(session):
def update_proj(session: nox.Session) -> None:
"""
Update the README inplace.
"""
session.install("-e", ".[bin]")
session.run("python", "bin/projects.py", "docs/data/projects.yml", "--readme=README.md")
session.run(
"python",
"bin/projects.py",
"docs/data/projects.yml",
"--readme=README.md",
*session.posargs,
)
@nox.session
def docs(session):
def docs(session: nox.Session) -> None:
"""
Build the docs.
"""
@@ -73,13 +79,13 @@ def docs(session):
if "serve" in session.posargs:
session.run("mkdocs", "serve")
else:
print("Unrecognized args, use 'serve'")
session.error("Unrecognized args, use 'serve'")
else:
session.run("mkdocs", "build")
@nox.session
def build(session):
def build(session: nox.Session) -> None:
"""
Build an SDist and wheel.
"""
+1 -1
View File
@@ -1,6 +1,6 @@
[metadata]
name = cibuildwheel
version = 2.0.0b2
version = 2.0.0
description = Build Python wheels on CI with minimal configuration.
long_description = file: README.md
long_description_content_type = text/markdown
+4 -2
View File
@@ -106,10 +106,12 @@ def test_substitution_with_backslash():
def test_awkwardly_quoted_variable():
environment_recipe = parse_environment(
'VAR2=something"like this""$VAR1"$VAR1$(echo "theres more")"$(echo "and more!")"'
'VAR2=something"like this""$VAR1"$VAR1$(echo "there is more")"$(echo "and more!")"'
)
# pass the existing process env so PATH is available
environment_dict = environment_recipe.as_dictionary({"VAR1": "but wait"})
assert environment_dict.get("VAR2") == "somethinglike thisbut waitbut waittheres moreand more!"
assert (
environment_dict.get("VAR2") == "somethinglike thisbut waitbut waitthere is moreand more!"
)