Skip to content

Commit b817fe3

Browse files
build wheels compatible with multiple python versions by using limited binary api.
1 parent 79eabff commit b817fe3

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: macos-10.15
1818
strategy:
1919
matrix:
20-
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
20+
python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2323
- uses: actions/checkout@v2
@@ -52,7 +52,7 @@ jobs:
5252
python -m pip install --upgrade pip
5353
pip3 install cffi
5454
pip3 install wheel
55-
python setup.py bdist_wheel
55+
python setup.py bdist_wheel --py-limited-api=cp37
5656
5757
- name: Upload build Artifact wheel
5858
uses: actions/[email protected]
@@ -64,7 +64,7 @@ jobs:
6464
runs-on: macos-12
6565
strategy:
6666
matrix:
67-
python-version: ['3.10', '3.11.0-alpha - 3.11.0' ]
67+
python-version: ['3.10' ]
6868
steps:
6969
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
7070
- uses: actions/checkout@v2
@@ -97,15 +97,16 @@ jobs:
9797
python -m pip install --upgrade pip
9898
pip3 install cffi
9999
pip3 install wheel
100-
python setup.py bdist_wheel
100+
python setup.py bdist_wheel --py-limited-api=cp310
101+
101102
102103
build-linux:
103104
runs-on: ubuntu-18.04
104105
strategy:
105106
# You can use PyPy versions in python-version.
106107
# For example, pypy2 and pypy3
107108
matrix:
108-
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
109+
python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
109110
steps:
110111
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
111112
- uses: actions/checkout@v2
@@ -140,7 +141,7 @@ jobs:
140141
python -m pip install --upgrade pip
141142
pip3 install cffi
142143
pip3 install wheel
143-
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
144+
python setup.py bdist_wheel --plat-name manylinux2014_x86_64 --py-limited-api=cp37
144145
145146
- name: Upload build Artifact wheel
146147
uses: actions/[email protected]
@@ -173,7 +174,7 @@ jobs:
173174
# You can use PyPy versions in python-version.
174175
# For example, pypy2 and pypy3
175176
matrix:
176-
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
177+
python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
177178
steps:
178179
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
179180
- uses: actions/checkout@v2
@@ -211,7 +212,7 @@ jobs:
211212
del raylib\dynamic\*.dll >nul 2>&1
212213
del raylib\dynamic\*.dylib >nul 2>&1
213214
del raylib\dynamic\32bit\* >nul 2>&1
214-
python setup.py bdist_wheel
215+
python setup.py bdist_wheel --py-limited-api=cp37
215216
shell: cmd
216217

217218
- name: Upload build Artifact wheel

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.2.0.0.dev2"
1+
__version__ = "4.2.0.0.dev3"

0 commit comments

Comments
 (0)