add python 3.12 and pypy 3.10 to builds

This commit is contained in:
Richard Smith 2023-10-27 03:10:53 +01:00
parent ef20eaf7c9
commit 3b01e59338
3 changed files with 16 additions and 9 deletions

View file

@ -1,18 +1,20 @@
#container:
# image: python:3.11
# download at https://api.cirrus-ci.com/v1/artifact/github/electronstudio/raylib-python-cffi/main/binary.zip
task:
macos_instance:
matrix:
- image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
- image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
- image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
env:
matrix:
- PY_VER: "3.9"
- PY_VER: "3.10"
- PY_VER: "3.11"
- PY_VER: "3.12"
setup_script:
- brew update
- brew install python@${PY_VER}
@ -27,10 +29,10 @@ task:
build_script:
- sudo cp physac/src/physac.h /usr/local/include/
- sudo cp raygui/src/raygui.h /usr/local/include/
- /opt/homebrew/bin/python${PY_VER} -m pip install --upgrade pip
- /opt/homebrew/bin/python${PY_VER} -m pip install cffi
- /opt/homebrew/bin/python${PY_VER} -m pip install setuptools
- /opt/homebrew/bin/python${PY_VER} -m pip install wheel
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages --upgrade pip
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages cffi
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages setuptools
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages wheel
- /opt/homebrew/bin/python${PY_VER} setup.py bdist_wheel
artifacts:
path: "dist/*"

View file

@ -17,7 +17,7 @@ jobs:
runs-on: macos-11
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
@ -52,6 +52,7 @@ jobs:
python -m pip install --upgrade pip
pip3 install cffi
pip3 install wheel
pip3 install setuptools
python setup.py bdist_wheel --plat-name macosx_10_15_x86_64
- name: Upload build Artifact wheel
@ -164,7 +165,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', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
@ -199,6 +200,7 @@ jobs:
python -m pip install --upgrade pip
pip3 install cffi
pip3 install wheel
pip3 install setuptools
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
- name: Upload build Artifact wheel
@ -246,7 +248,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', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
@ -280,6 +282,7 @@ jobs:
python -m pip install --upgrade pip
pip3 install cffi
pip3 install wheel
pip3 install setuptools
del raylib\dynamic\*.so* >nul 2>&1
del raylib\dynamic\*.dll >nul 2>&1
del raylib\dynamic\*.dylib >nul 2>&1
@ -330,6 +333,7 @@ jobs:
python -m pip install --upgrade pip
pip3 install cffi
pip3 install wheel
pip3 install setuptools
python setup.py sdist
- name: Upload build Artifact wheel
@ -360,6 +364,7 @@ jobs:
python -m pip install --upgrade pip
pip3 install cffi
pip3 install wheel
pip3 install setuptools
cd dynamic
python setup.py sdist

View file

@ -1 +1 @@
__version__ = "4.5.0.0"
__version__ = "4.5.0.1"