build wheels compatible with multiple python versions by using limited binary api.
This commit is contained in:
parent
79eabff719
commit
b817fe3ad6
2 changed files with 10 additions and 9 deletions
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
runs-on: macos-10.15
|
||||
strategy:
|
||||
matrix:
|
||||
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' ]
|
||||
python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
pip3 install cffi
|
||||
pip3 install wheel
|
||||
python setup.py bdist_wheel
|
||||
python setup.py bdist_wheel --py-limited-api=cp37
|
||||
|
||||
- name: Upload build Artifact wheel
|
||||
uses: actions/upload-artifact@v2.2.4
|
||||
|
@ -64,7 +64,7 @@ jobs:
|
|||
runs-on: macos-12
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.10', '3.11.0-alpha - 3.11.0' ]
|
||||
python-version: ['3.10' ]
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -97,7 +97,8 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
pip3 install cffi
|
||||
pip3 install wheel
|
||||
python setup.py bdist_wheel
|
||||
python setup.py bdist_wheel --py-limited-api=cp310
|
||||
|
||||
|
||||
build-linux:
|
||||
runs-on: ubuntu-18.04
|
||||
|
@ -105,7 +106,7 @@ jobs:
|
|||
# You can use PyPy versions in python-version.
|
||||
# For example, pypy2 and pypy3
|
||||
matrix:
|
||||
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' ]
|
||||
python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -140,7 +141,7 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
pip3 install cffi
|
||||
pip3 install wheel
|
||||
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
|
||||
python setup.py bdist_wheel --plat-name manylinux2014_x86_64 --py-limited-api=cp37
|
||||
|
||||
- name: Upload build Artifact wheel
|
||||
uses: actions/upload-artifact@v2.2.4
|
||||
|
@ -173,7 +174,7 @@ jobs:
|
|||
# You can use PyPy versions in python-version.
|
||||
# For example, pypy2 and pypy3
|
||||
matrix:
|
||||
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' ]
|
||||
python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -211,7 +212,7 @@ jobs:
|
|||
del raylib\dynamic\*.dll >nul 2>&1
|
||||
del raylib\dynamic\*.dylib >nul 2>&1
|
||||
del raylib\dynamic\32bit\* >nul 2>&1
|
||||
python setup.py bdist_wheel
|
||||
python setup.py bdist_wheel --py-limited-api=cp37
|
||||
shell: cmd
|
||||
|
||||
- name: Upload build Artifact wheel
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = "4.2.0.0.dev2"
|
||||
__version__ = "4.2.0.0.dev3"
|
Reference in a new issue