Skip to content

Commit

Permalink
Python 3.11 (#16)
Browse files Browse the repository at this point in the history
* Python 3.11

* Add 3.11 to aarch64 wheel build

* Add 3.11 to m1 wheel build

* cibw prerelease

* require pybind11>=2.10.0 (but we were already getting that)

* Update build.yml

* buildwheel 2.9.0

* just call cibuildwheel ourselves

* let it use python

* manylinux2014 for CPython 3.11 Intel
  • Loading branch information
altendky authored Aug 31, 2022
1 parent 87eff9d commit f80a76b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,34 @@ jobs:
python:
- major-dot-minor: '3.7'
cibw-build: 'cp37-*'
manylinux:
arch: manylinux2014
intel: manylinux2010
matrix: '3.7'
- major-dot-minor: '3.8'
cibw-build: 'cp38-*'
manylinux:
arch: manylinux2014
intel: manylinux2010
matrix: '3.8'
- major-dot-minor: '3.9'
cibw-build: 'cp39-*'
manylinux:
arch: manylinux2014
intel: manylinux2010
matrix: '3.9'
- major-dot-minor: '3.10'
cibw-build: 'cp310-*'
manylinux:
arch: manylinux2014
intel: manylinux2010
matrix: '3.10'
- major-dot-minor: '3.11'
cibw-build: 'cp311-*'
manylinux:
arch: manylinux2014
intel: manylinux2014
matrix: '3.11'
arch:
- name: ARM
matrix: arm
Expand Down Expand Up @@ -116,35 +134,35 @@ jobs:
pip install pipx
- name: Build and test
uses: pypa/cibuildwheel@v2.7.0
with:
output-dir: dist
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_BUILD_VERBOSITY_MACOS: 0
CIBW_BUILD_VERBOSITY_LINUX: 0
CIBW_BUILD_VERBOSITY_WINDOWS: 0
CIBW_BUILD: ${{ matrix.python.cibw-build }}
CIBW_SKIP: '*-manylinux_i686 *-win32 *-musllinux_*'
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.python.manylinux['arm'] }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.python.manylinux['intel'] }}
CIBW_BEFORE_ALL_LINUX: >
yum -y install boost-devel gcc-c++
&& uname -a
CIBW_BEFORE_BUILD_LINUX: >
python -m pip install --upgrade pip
&& pip install pybind11
&& pip install pybind11>=2.10.0
CIBW_ARCHS_MACOS: ${{ matrix.os.cibw-archs-macos[matrix.arch.matrix] }}
CIBW_BEFORE_ALL_MACOS: >
brew install boost
CIBW_BEFORE_BUILD_MACOS: >
python -m pip install --upgrade pip
&& pip install pybind11
&& pip install pybind11>=2.10.0
CIBW_ENVIRONMENT_MACOS: "MACOSX_DEPLOYMENT_TARGET=10.14"
CIBW_BEFORE_ALL_WINDOWS: >
python -m pip install --upgrade pip
&& pip install pybind11
&& pip install pybind11>=2.10.0
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: py.test -v {project}/tests
run:
pipx run --spec='cibuildwheel==2.9.0' cibuildwheel --output-dir dist 2>&1

- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.5.0", "pybind11>=2.6.2"]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.5.0", "pybind11>=2.10.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def build_extensions(self):
python_requires=">=3.7",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
setup_requires=["pybind11>=2.5.0"],
setup_requires=["pybind11>=2.10.0"],
url="https://github.com/Chia-Network/chiabip158",
ext_modules=ext_modules,
cmdclass={"build_ext": BuildExt},
Expand Down

0 comments on commit f80a76b

Please sign in to comment.