Skip to content

Commit 36a7f67

Browse files
committed
ci: support Python 3.11-dev
Also update 3.10 to final, better PyPy usage
1 parent 7c58058 commit 36a7f67

File tree

3 files changed

+15
-29
lines changed

3 files changed

+15
-29
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ jobs:
1818
matrix:
1919
runs-on: [ubuntu-latest, windows-latest, macos-latest]
2020
python:
21-
- 2.7
22-
- 3.5
23-
- 3.6
24-
- 3.9
25-
- 3.10-dev
26-
- pypy2
27-
- pypy3
21+
- '2.7'
22+
- '3.5'
23+
- '3.6'
24+
- '3.9'
25+
- '3.10'
26+
- '3.11-dev'
27+
- pypy-3.6
28+
- pypy-3.7
2829

2930
# Items in here will either be added to the build matrix (if not
3031
# present), or add new keys to an existing matrix element if all the
@@ -43,18 +44,6 @@ jobs:
4344
args: >
4445
-DPYBIND11_FINDPYTHON=ON
4546
46-
# These items will be removed from the build matrix, keys must match.
47-
exclude:
48-
# Currently 32bit only, and we build 64bit
49-
- runs-on: windows-latest
50-
python: pypy2
51-
- runs-on: windows-latest
52-
python: pypy3
53-
54-
# TODO: PyPy2 7.3.3 segfaults, while 7.3.2 was fine.
55-
- runs-on: ubuntu-latest
56-
python: pypy2
57-
5847
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}"
5948
runs-on: ${{ matrix.runs-on }}
6049

@@ -113,7 +102,7 @@ jobs:
113102

114103
- name: C++11 tests
115104
# TODO: Figure out how to load the DLL on Python 3.8+
116-
if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10-dev'))"
105+
if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10' || matrix.python == '3.11-dev'))"
117106
run: cmake --build . --target cpptest -j 2
118107

119108
- name: Interface test C++11
@@ -141,7 +130,7 @@ jobs:
141130

142131
- name: C++ tests
143132
# TODO: Figure out how to load the DLL on Python 3.8+
144-
if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10-dev'))"
133+
if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10' || matrix.python == '3.11-dev'))"
145134
run: cmake --build build2 --target cpptest
146135

147136
# Third build - C++17 mode with unstable ABI
@@ -195,7 +184,7 @@ jobs:
195184
- python-version: 3.9
196185
python-debug: true
197186
valgrind: true
198-
- python-version: 3.10-dev
187+
- python-version: 3.11-dev
199188
python-debug: false
200189

201190
name: "🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64"
@@ -735,7 +724,7 @@ jobs:
735724
- 3.7
736725
- 3.8
737726
- 3.9
738-
- pypy3
727+
- pypy-3.7
739728
# TODO: fix hang on pypy2
740729

741730
include:

tests/requirements.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
--extra-index-url https://antocuni.github.io/pypy-wheels/manylinux2010/
2-
numpy==1.16.6; python_version<"3.6" and sys_platform!="win32"
3-
numpy==1.18.0; platform_python_implementation=="PyPy" and sys_platform=="darwin" and python_version>="3.6"
4-
numpy==1.19.3; (platform_python_implementation!="PyPy" or sys_platform=="linux") and python_version=="3.6"
5-
numpy==1.21.2; (platform_python_implementation!="PyPy" or sys_platform=="linux") and python_version>="3.7" and python_version<"3.10"
6-
numpy==1.21.2; platform_python_implementation!="PyPy" and sys_platform=="linux" and python_version=="3.10"
2+
numpy==1.16.6; python_version<"3.5"
3+
oldest-supported-numpy==0.10; python_version>="3.6"
74
pytest==4.6.9; python_version<"3.5"
85
pytest==6.1.2; python_version=="3.5"
96
pytest==6.2.4; python_version>="3.6"

tools/pybind11Tools.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ endif()
3838

3939
# A user can set versions manually too
4040
set(Python_ADDITIONAL_VERSIONS
41-
"3.10;3.9;3.8;3.7;3.6;3.5;3.4"
41+
"3.11;3.10;3.9;3.8;3.7;3.6;3.5;3.4"
4242
CACHE INTERNAL "")
4343

4444
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")

0 commit comments

Comments
 (0)