From 3b01e59338592368a7aa11166df1631c788bd70c Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 27 Oct 2023 03:10:53 +0100 Subject: [PATCH] add python 3.12 and pypy 3.10 to builds --- .cirrus.yml | 12 +++++++----- .github/workflows/build.yml | 11 ++++++++--- version.py | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 78cf2e3..2a031e0 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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/*" \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 09d54a6..cb5c828 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/version.py b/version.py index dd82a30..0e06ac8 100644 --- a/version.py +++ b/version.py @@ -1 +1 @@ -__version__ = "4.5.0.0" \ No newline at end of file +__version__ = "4.5.0.1" \ No newline at end of file