Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit 4405119

Browse files
authored
Python 3.11 (#332)
* Python 3.11 * Allow alpha through release Python versions * add 3.11 to new wheels workflow * cibw prerelease * update to pybind11 2.10.0 * Update build-wheels.yml * Update build-test.yaml * just call cibuildwheel ourselves * manylinux2014 for CPython 3.11 Intel * just call cibuildwheel ourselves (more like the others) * stop doubling up on allowing alpha pythons * oops
1 parent 74e0dac commit 4405119

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

.github/workflows/build-test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os: [macos-latest, ubuntu-latest, windows-latest]
26-
python: ['3.7', '3.8', '3.9', '3.10']
26+
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
2727

2828
steps:
2929
- name: Checkout code
3030
uses: actions/checkout@v3
3131

32-
- uses: actions/setup-python@v2
33-
name: Install Python
32+
- uses: chia-network/actions/setup-python@main
3433
with:
3534
python-version: ${{ matrix.python }}
3635

.github/workflows/build-wheels.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,34 @@ jobs:
4343
python:
4444
- major-dot-minor: '3.7'
4545
cibw-build: 'cp37-*'
46+
manylinux:
47+
arch: manylinux2014
48+
intel: manylinux2010
4649
matrix: '3.7'
4750
- major-dot-minor: '3.8'
4851
cibw-build: 'cp38-*'
52+
manylinux:
53+
arch: manylinux2014
54+
intel: manylinux2010
4955
matrix: '3.8'
5056
- major-dot-minor: '3.9'
5157
cibw-build: 'cp39-*'
58+
manylinux:
59+
arch: manylinux2014
60+
intel: manylinux2010
5261
matrix: '3.9'
5362
- major-dot-minor: '3.10'
5463
cibw-build: 'cp310-*'
64+
manylinux:
65+
arch: manylinux2014
66+
intel: manylinux2010
5567
matrix: '3.10'
68+
- major-dot-minor: '3.11'
69+
cibw-build: 'cp311-*'
70+
manylinux:
71+
arch: manylinux2014
72+
intel: manylinux2014
73+
matrix: '3.11'
5674
arch:
5775
- name: ARM
5876
matrix: arm
@@ -114,18 +132,17 @@ jobs:
114132
- name: Install pipx
115133
run: |
116134
pip install pipx
135+
117136
- name: Build and test
118-
uses: pypa/cibuildwheel@v2.7.0
119-
with:
120-
output-dir: dist
121137
env:
138+
CIBW_PRERELEASE_PYTHONS: True
122139
CIBW_BUILD_VERBOSITY_MACOS: 0
123140
CIBW_BUILD_VERBOSITY_LINUX: 0
124141
CIBW_BUILD_VERBOSITY_WINDOWS: 0
125142
CIBW_BUILD: ${{ matrix.python.cibw-build }}
126143
CIBW_SKIP: '*-manylinux_i686 *-win32 *-musllinux_*'
127-
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
128-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010
144+
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.python.manylinux['arm'] }}
145+
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.python.manylinux['intel'] }}
129146
CIBW_ENVIRONMENT_LINUX: "PATH=/project/cmake-3.17.3-Linux-`uname -m`/bin:$PATH"
130147
CIBW_BEFORE_ALL_LINUX: >
131148
yum -y install epel-release
@@ -176,6 +193,8 @@ jobs:
176193
&& cp {wheel} {dest_dir}
177194
CIBW_TEST_REQUIRES: pytest
178195
CIBW_TEST_COMMAND: py.test -v {project}/python-bindings/test.py
196+
run:
197+
pipx run --spec='cibuildwheel==2.9.0' cibuildwheel --output-dir dist 2>&1
179198

180199
- name: Upload artifacts
181200
uses: actions/upload-artifact@v3

python-bindings/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FetchContent_Declare(
33
pybind11
44
GIT_REPOSITORY https://github.com/pybind/pybind11.git
5-
GIT_TAG v2.6.2
5+
GIT_TAG v2.10.0
66
)
77
FetchContent_MakeAvailable(pybind11 relic)
88

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ def build_extensions(self):
196196
long_description_content_type="text/markdown",
197197
url="https://github.com/Chia-Network/bls-signatures",
198198
python_requires=">=3.7",
199-
setup_requires=["pybind11>=2.5.0"],
200-
install_requires=["pybind11>=2.5.0"],
199+
setup_requires=["pybind11>=2.10.0"],
200+
install_requires=["pybind11>=2.10.0"],
201201
ext_modules=ext_modules,
202202
cmdclass={"build_ext": BuildExt},
203203
zip_safe=False,

0 commit comments

Comments
 (0)