Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f4987fab9 | ||
|
|
8a45128d8c | ||
|
|
578098a3f8 | ||
|
|
b31559f2e0 | ||
|
|
90024def2c | ||
|
|
bc3d3d123c | ||
|
|
88c8e5c2f5 | ||
|
|
a1342c1b53 | ||
|
|
0bfbd5b309 | ||
|
|
4515cd2203 | ||
|
|
12c64365e2 | ||
|
|
e7da7832ef | ||
|
|
298a8baef7 | ||
|
|
6db5229774 | ||
|
|
b4882894ed |
@@ -0,0 +1,40 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dist:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build SDist and wheel
|
||||||
|
run: pipx run build
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
path: dist/*
|
||||||
|
|
||||||
|
- name: Check metadata
|
||||||
|
run: pipx run twine check dist/*
|
||||||
|
|
||||||
|
publish:
|
||||||
|
needs: [dist]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'release' && github.event.action == 'published'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: artifact
|
||||||
|
path: dist
|
||||||
|
|
||||||
|
- uses: pypa/gh-action-pypi-publish@v1.4.2
|
||||||
|
with:
|
||||||
|
user: __token__
|
||||||
|
password: ${{ secrets.pypi_password }}
|
||||||
@@ -22,6 +22,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
- uses: pre-commit/action@v2.0.3
|
- uses: pre-commit/action@v2.0.3
|
||||||
|
- run: pipx run nox -s check_manifest
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test cibuildwheel on ${{ matrix.os }}
|
name: Test cibuildwheel on ${{ matrix.os }}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: pycln
|
- id: pycln
|
||||||
args: [--config=pyproject.toml]
|
args: [--config=pyproject.toml]
|
||||||
|
stages: [manual] # disabled due to artificial limit on Python 3.10
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/isort
|
- repo: https://github.com/PyCQA/isort
|
||||||
rev: 5.9.3
|
rev: 5.9.3
|
||||||
@@ -70,7 +71,7 @@ repos:
|
|||||||
additional_dependencies: *mypy-dependencies
|
additional_dependencies: *mypy-dependencies
|
||||||
|
|
||||||
- repo: https://github.com/asottile/yesqa
|
- repo: https://github.com/asottile/yesqa
|
||||||
rev: v1.2.3
|
rev: v1.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: yesqa
|
- id: yesqa
|
||||||
additional_dependencies: &flake8-dependencies
|
additional_dependencies: &flake8-dependencies
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
recursive-include cibuildwheel *.cfg
|
||||||
|
recursive-include cibuildwheel *.in
|
||||||
|
recursive-include cibuildwheel *.py
|
||||||
|
recursive-include cibuildwheel *.toml
|
||||||
|
recursive-include cibuildwheel *.txt
|
||||||
|
recursive-include cibuildwheel *.typed
|
||||||
@@ -85,7 +85,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.2.0b1
|
run: python -m pip install cibuildwheel==2.2.2
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: python -m cibuildwheel --output-dir wheelhouse
|
run: python -m cibuildwheel --output-dir wheelhouse
|
||||||
@@ -189,24 +189,39 @@ 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.2.0 (prerelease)
|
### v2.2.2
|
||||||
|
|
||||||
_Currently in prerelease. The below release notes will be condensed into a single entry on final release._
|
_26 October 2021_
|
||||||
|
|
||||||
_v2.2.0b1 (19 October 2021)_
|
- 🐛 Fix bug in the GitHub Action step causing a syntax error (#895)
|
||||||
|
|
||||||
- 🌟 TOML option overrides. This provides much greater flexibility in configuration via pyproject.toml.
|
### v2.2.1
|
||||||
|
|
||||||
|
_26 October 2021_
|
||||||
|
|
||||||
|
- 🛠 Added a `config-file` option on the GitHub Action to specify something other than pyproject.toml in your GitHub Workflow file. (#883)
|
||||||
|
- 🐛 Fix missing resources in sdist and released wheel on PyPI. We've also made some internal changes to our release processes to make them more reliable. (#893, #894)
|
||||||
|
|
||||||
|
### v2.2.0
|
||||||
|
|
||||||
|
_22 October 2021_
|
||||||
|
|
||||||
|
- 🌟 Added support for [musllinux](https://www.python.org/dev/peps/pep-0656/). Support for this new wheel format lets projects build wheels for Linux distributions that use [musl libc](https://musl.libc.org/), notably, [Alpine](https://alpinelinux.org/) Docker containers. (#768)
|
||||||
|
|
||||||
|
Musllinux builds are enabled by default. If you're not ready to build musllinux, add `*-musllinux_*` to your [`CIBW_SKIP`/`skip`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip) option. Or, you might have to make some changes to your options - to simplify that process, you can use...
|
||||||
|
|
||||||
|
- 🌟 TOML option overrides! This provides much greater flexibility in configuration via pyproject.toml. (#854)
|
||||||
|
|
||||||
You can now set build options for any subset of your builds using a match pattern. So, for example, you can customise CPython 3.8 builds with an override on `cp38-*` or musllinux builds by selecting `*musllinux*`. Check out [the docs](https://cibuildwheel.readthedocs.io/en/latest/options/#overrides) for more info on the specifics.
|
You can now set build options for any subset of your builds using a match pattern. So, for example, you can customise CPython 3.8 builds with an override on `cp38-*` or musllinux builds by selecting `*musllinux*`. Check out [the docs](https://cibuildwheel.readthedocs.io/en/latest/options/#overrides) for more info on the specifics.
|
||||||
|
|
||||||
_v2.2.0a1 (23 September 2021)_
|
- 🛠 Added support for building PyPy wheels on macOS 11 CI runners. (#875)
|
||||||
|
|
||||||
- 🌟 Added support for [musllinux](https://www.python.org/dev/peps/pep-0656/). Support for this new wheel format lets projects build wheels for Linux distributions that use [musl libc](https://musl.libc.org/), notably, [Alpine](https://alpinelinux.org/) Docker containers.
|
|
||||||
|
|
||||||
Musllinux builds are enabled by default. To disable them on your project, add `*-musllinux_*` to your [`CIBW_SKIP`/`skip`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip)
|
|
||||||
option. (#768)
|
|
||||||
- 🛠 Setting an empty string for the [`CIBW_*_IMAGE`](https://cibuildwheel.readthedocs.io/en/stable/options/#manylinux-image) option will now fallthrough to the config file or cibuildwheel's default, rather than causing an error. This makes the option easier to use in CI build matricies. (#829)
|
- 🛠 Setting an empty string for the [`CIBW_*_IMAGE`](https://cibuildwheel.readthedocs.io/en/stable/options/#manylinux-image) option will now fallthrough to the config file or cibuildwheel's default, rather than causing an error. This makes the option easier to use in CI build matricies. (#829)
|
||||||
|
|
||||||
|
- 🛠 Support for TOML 1.0 when reading config files, via the `tomli` package. (#876)
|
||||||
|
|
||||||
|
<sup>Note: This version is not available on PyPI due to some missing resources in the release files. Please use a later version instead.</sup>
|
||||||
|
|
||||||
### v2.1.3
|
### v2.1.3
|
||||||
|
|
||||||
_6 October 2021_
|
_6 October 2021_
|
||||||
@@ -221,21 +236,6 @@ _14 September 2021_
|
|||||||
- 📚 Multiple docs updates
|
- 📚 Multiple docs updates
|
||||||
- 🐛 Improved warnings when built binaries are bundled into the container on Linux. (#807)
|
- 🐛 Improved warnings when built binaries are bundled into the container on Linux. (#807)
|
||||||
|
|
||||||
### 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.
|
|
||||||
|
|
||||||
<!-- END bin/update_readme_changelog.py -->
|
<!-- END bin/update_readme_changelog.py -->
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ inputs:
|
|||||||
description: 'Folder to place the outputs in, defaults to "wheelhouse"'
|
description: 'Folder to place the outputs in, defaults to "wheelhouse"'
|
||||||
required: false
|
required: false
|
||||||
default: wheelhouse
|
default: wheelhouse
|
||||||
|
config-file:
|
||||||
|
description: 'File containing the config, defaults to {package}/pyproject.toml'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
branding:
|
branding:
|
||||||
icon: package
|
icon: package
|
||||||
color: yellow
|
color: yellow
|
||||||
@@ -24,5 +28,6 @@ runs:
|
|||||||
cibuildwheel
|
cibuildwheel
|
||||||
${{ inputs.package-dir }}
|
${{ inputs.package-dir }}
|
||||||
--output-dir ${{ inputs.output-dir }}
|
--output-dir ${{ inputs.output-dir }}
|
||||||
|
--config-file "${{ inputs.config-file }}"
|
||||||
2>&1
|
2>&1
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = "2.2.0b1"
|
__version__ = "2.2.2"
|
||||||
|
|||||||
@@ -57,14 +57,15 @@ def main() -> None:
|
|||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--output-dir",
|
"--output-dir",
|
||||||
help="Destination folder for the wheels.",
|
help="Destination folder for the wheels. Default: wheelhouse.",
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--config-file",
|
"--config-file",
|
||||||
|
default="",
|
||||||
help="""
|
help="""
|
||||||
TOML config file for cibuildwheel. Defaults to pyproject.toml, but
|
TOML config file. Default: "", meaning {package}/pyproject.toml,
|
||||||
can be overridden with this option.
|
if it exists.
|
||||||
""",
|
""",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class CommandLineArguments:
|
|||||||
platform: Literal["auto", "linux", "macos", "windows"]
|
platform: Literal["auto", "linux", "macos", "windows"]
|
||||||
archs: Optional[str]
|
archs: Optional[str]
|
||||||
output_dir: Optional[str]
|
output_dir: Optional[str]
|
||||||
config_file: Optional[str]
|
config_file: str
|
||||||
package_dir: str
|
package_dir: str
|
||||||
print_build_identifiers: bool
|
print_build_identifiers: bool
|
||||||
allow_empty: bool
|
allow_empty: bool
|
||||||
@@ -335,8 +335,9 @@ class Options:
|
|||||||
def config_file_path(self) -> Optional[Path]:
|
def config_file_path(self) -> Optional[Path]:
|
||||||
args = self.command_line_arguments
|
args = self.command_line_arguments
|
||||||
|
|
||||||
if args.config_file is not None:
|
if args.config_file:
|
||||||
return Path(args.config_file.format(package=args.package_dir))
|
return Path(args.config_file.format(package=args.package_dir))
|
||||||
|
|
||||||
# return pyproject.toml, if it's available
|
# return pyproject.toml, if it's available
|
||||||
pyproject_toml_path = Path(args.package_dir) / "pyproject.toml"
|
pyproject_toml_path = Path(args.package_dir) / "pyproject.toml"
|
||||||
if pyproject_toml_path.exists():
|
if pyproject_toml_path.exists():
|
||||||
|
|||||||
+24
-9
@@ -2,24 +2,39 @@
|
|||||||
title: Changelog
|
title: Changelog
|
||||||
---
|
---
|
||||||
|
|
||||||
### v2.2.0 (prerelease)
|
### v2.2.2
|
||||||
|
|
||||||
_Currently in prerelease. The below release notes will be condensed into a single entry on final release._
|
_26 October 2021_
|
||||||
|
|
||||||
_v2.2.0b1 (19 October 2021)_
|
- 🐛 Fix bug in the GitHub Action step causing a syntax error (#895)
|
||||||
|
|
||||||
- 🌟 TOML option overrides. This provides much greater flexibility in configuration via pyproject.toml.
|
### v2.2.1
|
||||||
|
|
||||||
|
_26 October 2021_
|
||||||
|
|
||||||
|
- 🛠 Added a `config-file` option on the GitHub Action to specify something other than pyproject.toml in your GitHub Workflow file. (#883)
|
||||||
|
- 🐛 Fix missing resources in sdist and released wheel on PyPI. We've also made some internal changes to our release processes to make them more reliable. (#893, #894)
|
||||||
|
|
||||||
|
### v2.2.0
|
||||||
|
|
||||||
|
_22 October 2021_
|
||||||
|
|
||||||
|
- 🌟 Added support for [musllinux](https://www.python.org/dev/peps/pep-0656/). Support for this new wheel format lets projects build wheels for Linux distributions that use [musl libc](https://musl.libc.org/), notably, [Alpine](https://alpinelinux.org/) Docker containers. (#768)
|
||||||
|
|
||||||
|
Musllinux builds are enabled by default. If you're not ready to build musllinux, add `*-musllinux_*` to your [`CIBW_SKIP`/`skip`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip) option. Or, you might have to make some changes to your options - to simplify that process, you can use...
|
||||||
|
|
||||||
|
- 🌟 TOML option overrides! This provides much greater flexibility in configuration via pyproject.toml. (#854)
|
||||||
|
|
||||||
You can now set build options for any subset of your builds using a match pattern. So, for example, you can customise CPython 3.8 builds with an override on `cp38-*` or musllinux builds by selecting `*musllinux*`. Check out [the docs](https://cibuildwheel.readthedocs.io/en/latest/options/#overrides) for more info on the specifics.
|
You can now set build options for any subset of your builds using a match pattern. So, for example, you can customise CPython 3.8 builds with an override on `cp38-*` or musllinux builds by selecting `*musllinux*`. Check out [the docs](https://cibuildwheel.readthedocs.io/en/latest/options/#overrides) for more info on the specifics.
|
||||||
|
|
||||||
_v2.2.0a1 (23 September 2021)_
|
- 🛠 Added support for building PyPy wheels on macOS 11 CI runners. (#875)
|
||||||
|
|
||||||
- 🌟 Added support for [musllinux](https://www.python.org/dev/peps/pep-0656/). Support for this new wheel format lets projects build wheels for Linux distributions that use [musl libc](https://musl.libc.org/), notably, [Alpine](https://alpinelinux.org/) Docker containers.
|
|
||||||
|
|
||||||
Musllinux builds are enabled by default. To disable them on your project, add `*-musllinux_*` to your [`CIBW_SKIP`/`skip`](https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip)
|
|
||||||
option. (#768)
|
|
||||||
- 🛠 Setting an empty string for the [`CIBW_*_IMAGE`](https://cibuildwheel.readthedocs.io/en/stable/options/#manylinux-image) option will now fallthrough to the config file or cibuildwheel's default, rather than causing an error. This makes the option easier to use in CI build matricies. (#829)
|
- 🛠 Setting an empty string for the [`CIBW_*_IMAGE`](https://cibuildwheel.readthedocs.io/en/stable/options/#manylinux-image) option will now fallthrough to the config file or cibuildwheel's default, rather than causing an error. This makes the option easier to use in CI build matricies. (#829)
|
||||||
|
|
||||||
|
- 🛠 Support for TOML 1.0 when reading config files, via the `tomli` package. (#876)
|
||||||
|
|
||||||
|
<sup>Note: This version is not available on PyPI due to some missing resources in the release files. Please use a later version instead.</sup>
|
||||||
|
|
||||||
### v2.1.3
|
### v2.1.3
|
||||||
|
|
||||||
_6 October 2021_
|
_6 October 2021_
|
||||||
|
|||||||
@@ -127,13 +127,10 @@ bin/bump_version.py
|
|||||||
|
|
||||||
You'll be prompted to enter the new version number. Update the changelog when prompted. The script will create a 'bump version' commit and version tag.
|
You'll be prompted to enter the new version number. Update the changelog when prompted. The script will create a 'bump version' commit and version tag.
|
||||||
|
|
||||||
Finally, cut the release and upload to PyPI/GitHub.
|
Finally, cut the release and push to GitHub.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
rm -rf dist
|
|
||||||
python setup.py sdist bdist_wheel
|
|
||||||
twine upload dist/*
|
|
||||||
git push && git push --tags
|
git push && git push --tags
|
||||||
```
|
```
|
||||||
|
|
||||||
Then head to https://github.com/pypa/cibuildwheel/releases and create a GitHub release from the new tag, pasting in the changelog entry.
|
Then head to https://github.com/pypa/cibuildwheel/releases and create a GitHub release from the new tag, pasting in the changelog entry. Once the release is created inside GitHub, a CI job will create the assets and upload them to PyPI.
|
||||||
|
|||||||
+2
-2
@@ -127,7 +127,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.2.0b1
|
uses: pypa/cibuildwheel@v2.2.2
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
@@ -153,7 +153,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.2.0b1
|
cibuildwheel==2.2.2
|
||||||
```
|
```
|
||||||
|
|
||||||
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:
|
||||||
|
|||||||
+2
-2
@@ -118,7 +118,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.2.0b1
|
run: pipx run cibuildwheel==2.2.2
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@@ -153,7 +153,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.2.0b1
|
run: python -m pip install cibuildwheel==2.2.2
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: python -m cibuildwheel --output-dir wheelhouse
|
run: python -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|||||||
@@ -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.2.0b1
|
install: python -m pip install cibuildwheel==2.2.2
|
||||||
|
|
||||||
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.2.0b1
|
pip3 install cibuildwheel==2.2.2
|
||||||
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.2.0b1
|
python3 -m pip install cibuildwheel==2.2.2
|
||||||
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.2.0b1
|
pip install cibuildwheel==2.2.2
|
||||||
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: |
|
||||||
pip3 install --user cibuildwheel==2.2.0b1
|
pip3 install --user cibuildwheel==2.2.2
|
||||||
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.2.0b1
|
pip3 install cibuildwheel==2.2.2
|
||||||
cibuildwheel --output-dir wheelhouse
|
cibuildwheel --output-dir wheelhouse
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: wheelhouse/
|
path: wheelhouse/
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.2.0b1
|
uses: pypa/cibuildwheel@v2.2.2
|
||||||
env:
|
env:
|
||||||
CIBW_ARCHS_MACOS: x86_64 universal2
|
CIBW_ARCHS_MACOS: x86_64 universal2
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ jobs:
|
|||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.2.0b1
|
uses: pypa/cibuildwheel@v2.2.2
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.2.0b1
|
uses: pypa/cibuildwheel@v2.2.2
|
||||||
# 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
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
platforms: all
|
platforms: all
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.2.0b1
|
uses: pypa/cibuildwheel@v2.2.2
|
||||||
env:
|
env:
|
||||||
# configure cibuildwheel to build native archs ('auto'), and some
|
# configure cibuildwheel to build native archs ('auto'), and some
|
||||||
# emulated ones
|
# emulated ones
|
||||||
|
|||||||
@@ -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.2.0b1
|
- python -m pip install cibuildwheel==2.2.2
|
||||||
- cibuildwheel --output-dir wheelhouse
|
- cibuildwheel --output-dir wheelhouse
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -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.2.0b1
|
- python3 -m pip install cibuildwheel==2.2.2
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# build the wheels, put them into './wheelhouse'
|
# build the wheels, put them into './wheelhouse'
|
||||||
|
|||||||
@@ -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.2.0b1
|
- python3 -m pip install cibuildwheel==2.2.2
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# build the wheels, put them into './wheelhouse'
|
# build the wheels, put them into './wheelhouse'
|
||||||
|
|||||||
@@ -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.2.0b1
|
install: python3 -m pip install cibuildwheel==2.2.2
|
||||||
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.2.0b1
|
install: python3 -m pip install cibuildwheel==2.2.2
|
||||||
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
|
||||||
|
|||||||
+11
-1
@@ -4,7 +4,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
import nox
|
import nox
|
||||||
|
|
||||||
nox.options.sessions = ["lint", "tests"]
|
nox.options.sessions = ["lint", "check_manifest", "tests"]
|
||||||
|
|
||||||
PYTHON_ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
|
PYTHON_ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
|
||||||
|
|
||||||
@@ -34,6 +34,16 @@ def lint(session: nox.Session) -> None:
|
|||||||
session.run("pre-commit", "run", "--all-files", *session.posargs)
|
session.run("pre-commit", "run", "--all-files", *session.posargs)
|
||||||
|
|
||||||
|
|
||||||
|
@nox.session
|
||||||
|
def check_manifest(session: nox.Session) -> None:
|
||||||
|
"""
|
||||||
|
Ensure all needed files are included in the manifest.
|
||||||
|
"""
|
||||||
|
|
||||||
|
session.install("check-manifest")
|
||||||
|
session.run("check-manifest", *session.posargs)
|
||||||
|
|
||||||
|
|
||||||
@nox.session(python=PYTHON_ALL_VERSIONS)
|
@nox.session(python=PYTHON_ALL_VERSIONS)
|
||||||
def update_constraints(session: nox.Session) -> None:
|
def update_constraints(session: nox.Session) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -67,3 +67,18 @@ ignore_missing_imports = true
|
|||||||
|
|
||||||
[tool.pycln]
|
[tool.pycln]
|
||||||
all = true
|
all = true
|
||||||
|
|
||||||
|
[tool.check-manifest]
|
||||||
|
ignore = [
|
||||||
|
".*",
|
||||||
|
".circleci/**",
|
||||||
|
"test/**",
|
||||||
|
"unit_test/**",
|
||||||
|
"docs/**",
|
||||||
|
"examples/**",
|
||||||
|
"bin/**",
|
||||||
|
"*.yml",
|
||||||
|
"CI.md", # TODO: can change test/test_ssl and remove this
|
||||||
|
"requirements-dev.txt",
|
||||||
|
"noxfile.py",
|
||||||
|
]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = cibuildwheel
|
name = cibuildwheel
|
||||||
version = 2.2.0b1
|
version = 2.2.2
|
||||||
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
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ def get_default_command_line_arguments() -> CommandLineArguments:
|
|||||||
defaults.platform = "auto"
|
defaults.platform = "auto"
|
||||||
defaults.allow_empty = False
|
defaults.allow_empty = False
|
||||||
defaults.archs = None
|
defaults.archs = None
|
||||||
defaults.config_file = None
|
defaults.config_file = ""
|
||||||
defaults.output_dir = None
|
defaults.output_dir = None
|
||||||
defaults.package_dir = "."
|
defaults.package_dir = "."
|
||||||
defaults.prerelease_pythons = False
|
defaults.prerelease_pythons = False
|
||||||
|
|||||||
Reference in New Issue
Block a user