From 78c75f698aac8b471fa75487648cf2f8c922539d Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 19:03:54 +0100 Subject: [PATCH 01/20] Fix PEP 517 build by adding cffi to build requirements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add cffi>=1.17.1 to pyproject.toml build-system requirements to prevent pip from falling back to legacy build mode. This ensures CFFI is available in the isolated build environment that PEP 517 uses. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fed528d4..fbd9696b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools"] +requires = ["setuptools", "cffi>=1.17.1"] build-backend = "setuptools.build_meta" From 9fb7b1c83b6ec2ca90a209ccb61e4819a2d833b6 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 19:11:46 +0100 Subject: [PATCH 02/20] Remove deprecated setup_requires to enforce PEP 517 builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove setup_requires from setup.py since build requirements are now properly declared in pyproject.toml. This eliminates the deprecated fetch_build_eggs code path and forces proper PEP 517 build behavior. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 1ae324b9..6dd94a7f 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,6 @@ def has_ext_modules(foo): ], packages=["raylib", "pyray"], include_package_data=True, - setup_requires=["cffi>=1.17.1"], install_requires=["cffi>=1.17.1"], distclass=BinaryDistribution, cffi_modules=["raylib/build.py:ffibuilder"] From c0cc2e5703cf0bd477dccdc6bb64ebf0d0cf0e1b Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 19:41:56 +0100 Subject: [PATCH 03/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5139c59..8d279bda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -155,11 +155,13 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade "cffi>=1.17.1" ${{ matrix.python-version }} -m pip install --upgrade wheel ${{ matrix.python-version }} -m pip install --upgrade setuptools - ${{ matrix.python-version }} setup.py bdist_wheel --plat-name manylinux2014_x86_64 + ${{ matrix.python-version }} -m pip install --upgrade auditwheel + ${{ matrix.python-version }} -m build --wheel + ${{ matrix.python-version }} -m auditwheel repair dist/*.whl shell: bash - name: Test run: | - ${{ matrix.python-version }} -m pip install dist/*.whl + ${{ matrix.python-version }} -m pip install wheelhouse/*.whl cd / ${{ matrix.python-version }} -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true cat /tmp/output @@ -176,7 +178,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: wheel-linux-${{ matrix.raylib-platform }}-${{ matrix.python-version }} - path: dist/* + path: wheelhouse/* build-windows: From c1c2114839f3b72eb10c222f3a05d32e07aab031 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 19:48:02 +0100 Subject: [PATCH 04/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 1 + setup.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d279bda..0cbd711a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -155,6 +155,7 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade "cffi>=1.17.1" ${{ matrix.python-version }} -m pip install --upgrade wheel ${{ matrix.python-version }} -m pip install --upgrade setuptools + ${{ matrix.python-version }} -m pip install --upgrade build ${{ matrix.python-version }} -m pip install --upgrade auditwheel ${{ matrix.python-version }} -m build --wheel ${{ matrix.python-version }} -m auditwheel repair dist/*.whl diff --git a/setup.py b/setup.py index 6dd94a7f..8f73de70 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,6 @@ def has_ext_modules(foo): url="https://github.com/electronstudio/raylib-python-cffi", author="Electron Studio", author_email="github@electronstudio.co.uk", - license="EPL-2.0", license_files = ['LICENSE'], classifiers=[ "Programming Language :: Python :: 3", From ea40dd150749bdbf00e414ca661005ed634a7e6c Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 19:52:16 +0100 Subject: [PATCH 05/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0cbd711a..8781bba2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,11 +81,14 @@ jobs: pip3 install --upgrade "cffi>=1.17.1" pip3 install --upgrade wheel pip3 install --upgrade setuptools - python setup.py bdist_wheel --plat-name macosx_10_13_x86_64 + python -m pip install --upgrade build + python -m pip install --upgrade auditwheel + python -m build --wheel + python -m auditwheel repair dist/*.whl - name: Test run: | - pip3 install dist/*.whl + pip3 install wheelhouse/*.whl cd / python3 -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true cat /tmp/output @@ -101,7 +104,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: wheel-mac-${{ matrix.raylib-platform }}-${{ matrix.python-version }} - path: dist/* + path: wheelhouse/* @@ -157,6 +160,7 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade setuptools ${{ matrix.python-version }} -m pip install --upgrade build ${{ matrix.python-version }} -m pip install --upgrade auditwheel + ${{ matrix.python-version }} -m pip install --upgrade patchelf ${{ matrix.python-version }} -m build --wheel ${{ matrix.python-version }} -m auditwheel repair dist/*.whl shell: bash From 40657125b6e107886afca92ee2cc6c7bfa83317f Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 20:01:34 +0100 Subject: [PATCH 06/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8781bba2..ed6170b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,13 +82,11 @@ jobs: pip3 install --upgrade wheel pip3 install --upgrade setuptools python -m pip install --upgrade build - python -m pip install --upgrade auditwheel python -m build --wheel - python -m auditwheel repair dist/*.whl - name: Test run: | - pip3 install wheelhouse/*.whl + pip3 install dist/*.whl cd / python3 -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true cat /tmp/output @@ -104,7 +102,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: wheel-mac-${{ matrix.raylib-platform }}-${{ matrix.python-version }} - path: wheelhouse/* + path: dist/* @@ -162,6 +160,7 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade auditwheel ${{ matrix.python-version }} -m pip install --upgrade patchelf ${{ matrix.python-version }} -m build --wheel + ${{ matrix.python-version }} -m auditwheel show --verbose dist/*.whl ${{ matrix.python-version }} -m auditwheel repair dist/*.whl shell: bash - name: Test From 8877301ad3ecf577956af408eafcbd48b27d2b86 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 20:07:45 +0100 Subject: [PATCH 07/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed6170b8..3c91c373 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -160,7 +160,7 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade auditwheel ${{ matrix.python-version }} -m pip install --upgrade patchelf ${{ matrix.python-version }} -m build --wheel - ${{ matrix.python-version }} -m auditwheel show --verbose dist/*.whl + ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl ${{ matrix.python-version }} -m auditwheel repair dist/*.whl shell: bash - name: Test From bc48188edf7209f0d040dde14932979d2a74a996 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 20:35:10 +0100 Subject: [PATCH 08/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c91c373..2e20d861 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -165,7 +165,7 @@ jobs: shell: bash - name: Test run: | - ${{ matrix.python-version }} -m pip install wheelhouse/*.whl + ${{ matrix.python-version }} -m pip install --force-reinstall --no-deps wheelhouse/*.whl cd / ${{ matrix.python-version }} -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true cat /tmp/output @@ -248,11 +248,12 @@ jobs: pip3 install --upgrade "cffi>=1.17.1" pip3 install --upgrade wheel pip3 install --upgrade setuptools + pip3 install --upgrade build del raylib\dynamic\*.so* >nul 2>&1 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 -m build --wheel shell: cmd - name: Test From 6268a17ba4de5ed6511a54047cdd1eeb6df0580f Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 20:47:56 +0100 Subject: [PATCH 09/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e20d861..f0419a75 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -159,6 +159,8 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade build ${{ matrix.python-version }} -m pip install --upgrade auditwheel ${{ matrix.python-version }} -m pip install --upgrade patchelf + cp -vf /opt/pypy*/bin/* /usr/bin/ + cp -vf $HOME/.local/bin/* /usr/bin/ ${{ matrix.python-version }} -m build --wheel ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl ${{ matrix.python-version }} -m auditwheel repair dist/*.whl From bbd8bd463146c350022f20b2e052041120eea42a Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 20:52:39 +0100 Subject: [PATCH 10/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f0419a75..fc6eb9a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -159,8 +159,11 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade build ${{ matrix.python-version }} -m pip install --upgrade auditwheel ${{ matrix.python-version }} -m pip install --upgrade patchelf - cp -vf /opt/pypy*/bin/* /usr/bin/ - cp -vf $HOME/.local/bin/* /usr/bin/ + ${{ matrix.python-version }} -m pip show -f patchelf + cp -vf /opt/pypy*/bin/audit* /usr/bin/ + cp -vf /opt/pypy*/bin/patch* /usr/bin/ + cp -vf $HOME/.local/bin/audit* /usr/bin/ + cp -vf $HOME/.local/bin/patch* /usr/bin/ ${{ matrix.python-version }} -m build --wheel ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl ${{ matrix.python-version }} -m auditwheel repair dist/*.whl From 40bb814381af7d3d7b60408ccdd378f6a26dad75 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 20:56:06 +0100 Subject: [PATCH 11/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc6eb9a5..10df53ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -160,10 +160,10 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade auditwheel ${{ matrix.python-version }} -m pip install --upgrade patchelf ${{ matrix.python-version }} -m pip show -f patchelf - cp -vf /opt/pypy*/bin/audit* /usr/bin/ - cp -vf /opt/pypy*/bin/patch* /usr/bin/ - cp -vf $HOME/.local/bin/audit* /usr/bin/ - cp -vf $HOME/.local/bin/patch* /usr/bin/ +# cp -vf /opt/pypy*/bin/audit* /usr/bin/ +# cp -vf /opt/pypy*/bin/patch* /usr/bin/ +# cp -vf $HOME/.local/bin/audit* /usr/bin/ +# cp -vf $HOME/.local/bin/patch* /usr/bin/ ${{ matrix.python-version }} -m build --wheel ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl ${{ matrix.python-version }} -m auditwheel repair dist/*.whl From ce690ae961c7821c6e321b22cf865cfdf0bf6de6 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 20:56:54 +0100 Subject: [PATCH 12/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10df53ec..d396970c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -160,10 +160,6 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade auditwheel ${{ matrix.python-version }} -m pip install --upgrade patchelf ${{ matrix.python-version }} -m pip show -f patchelf -# cp -vf /opt/pypy*/bin/audit* /usr/bin/ -# cp -vf /opt/pypy*/bin/patch* /usr/bin/ -# cp -vf $HOME/.local/bin/audit* /usr/bin/ -# cp -vf $HOME/.local/bin/patch* /usr/bin/ ${{ matrix.python-version }} -m build --wheel ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl ${{ matrix.python-version }} -m auditwheel repair dist/*.whl From 1da3e51dab1fd6249c2e85756c7e0f71e9e07e9a Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 21:04:03 +0100 Subject: [PATCH 13/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d396970c..634c379b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -166,7 +166,7 @@ jobs: shell: bash - name: Test run: | - ${{ matrix.python-version }} -m pip install --force-reinstall --no-deps wheelhouse/*.whl + ${{ matrix.python-version }} -m pip install --force-reinstall --no-deps --platform linux_x86_64 wheelhouse/*.whl cd / ${{ matrix.python-version }} -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true cat /tmp/output From 2820ceee48ee6db279f75c9646af8ff9f4eb3238 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 21:27:22 +0100 Subject: [PATCH 14/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 634c379b..7d973eab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -164,19 +164,37 @@ jobs: ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl ${{ matrix.python-version }} -m auditwheel repair dist/*.whl shell: bash + - name: Rename wheel for testing + run: | + # Rename wheelhouse wheels to be maximally compatible for testing + for wheel in wheelhouse/raylib*.whl; do + if [ -f "$wheel" ]; then + basename=$(basename "$wheel") + # Extract package and version using regex + if [[ $basename =~ ^([^-]+)-([^-]+.*)-[^-]+-[^-]+-[^-]+\.whl$ ]]; then + package="${BASH_REMATCH[1]}" + version="${BASH_REMATCH[2]}" + new_name="${package}-${version}-py3-none-linux_x86_64.whl" + echo "Renaming: $basename -> $new_name" + cp "$wheel" "wheelhouse/$new_name" + fi + fi + done + shell: bash - name: Test run: | - ${{ matrix.python-version }} -m pip install --force-reinstall --no-deps --platform linux_x86_64 wheelhouse/*.whl + ${{ matrix.python-version }} -m pip install --no-deps wheelhouse/*-py3-none-linux_x86_64.whl cd / ${{ matrix.python-version }} -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true cat /tmp/output if grep -q "INFO: Initializing raylib" /tmp/output; then echo "Passed" - exit 0 else echo "Failed" exit 1 fi + # Clean up test wheels + rm -f wheelhouse/*-py3-none-linux_x86_64.whl - name: Upload build Artifact wheel From 5436c02e29de11f88886d03398a746490a6f0e09 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 21:35:26 +0100 Subject: [PATCH 15/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d973eab..c8a1c0d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -157,7 +157,11 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade wheel ${{ matrix.python-version }} -m pip install --upgrade setuptools ${{ matrix.python-version }} -m pip install --upgrade build - ${{ matrix.python-version }} -m pip install --upgrade auditwheel + if [[ "${{ matrix.python-version }}" == pypy* ]]; then + ${{ matrix.python-version }} -m pip install "auditwheel<5.0" + else + ${{ matrix.python-version }} -m pip install --upgrade auditwheel + fi ${{ matrix.python-version }} -m pip install --upgrade patchelf ${{ matrix.python-version }} -m pip show -f patchelf ${{ matrix.python-version }} -m build --wheel From 04f3a5222d7040d82ea4f4ca7f5afd68e60ee021 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 21:41:58 +0100 Subject: [PATCH 16/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8a1c0d9..27ccdc71 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -157,16 +157,19 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade wheel ${{ matrix.python-version }} -m pip install --upgrade setuptools ${{ matrix.python-version }} -m pip install --upgrade build - if [[ "${{ matrix.python-version }}" == pypy* ]]; then - ${{ matrix.python-version }} -m pip install "auditwheel<5.0" - else + if [[ "${{ matrix.python-version }}" != pypy* ]]; then ${{ matrix.python-version }} -m pip install --upgrade auditwheel + ${{ matrix.python-version }} -m pip install --upgrade patchelf + ${{ matrix.python-version }} -m pip show -f patchelf fi - ${{ matrix.python-version }} -m pip install --upgrade patchelf - ${{ matrix.python-version }} -m pip show -f patchelf ${{ matrix.python-version }} -m build --wheel - ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl - ${{ matrix.python-version }} -m auditwheel repair dist/*.whl + if [[ "${{ matrix.python-version }}" != pypy* ]]; then + ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl + ${{ matrix.python-version }} -m auditwheel repair dist/*.whl + else + mkdir -p wheelhouse + cp dist/*.whl wheelhouse/ + fi shell: bash - name: Rename wheel for testing run: | From 9033ebdc0a06f6fabebf586beb4489721858f2dc Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 22:25:19 +0100 Subject: [PATCH 17/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27ccdc71..6033217b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,6 +84,18 @@ jobs: python -m pip install --upgrade build python -m build --wheel + - name: Rename wheels from universal2 to x86_64 + run: | + # Rename universal2 wheels to x86_64 since they aren't truly universal + for wheel in dist/*-universal2.whl; do + if [ -f "$wheel" ]; then + new_wheel=$(echo "$wheel" | sed 's/universal2/x86_64/') + echo "Renaming: $(basename "$wheel") -> $(basename "$new_wheel")" + mv "$wheel" "$new_wheel" + fi + done + shell: bash + - name: Test run: | pip3 install dist/*.whl @@ -191,6 +203,8 @@ jobs: - name: Test run: | ${{ matrix.python-version }} -m pip install --no-deps wheelhouse/*-py3-none-linux_x86_64.whl + # Clean up test wheels + rm -f wheelhouse/*-py3-none-linux_x86_64.whl cd / ${{ matrix.python-version }} -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true cat /tmp/output @@ -200,8 +214,6 @@ jobs: echo "Failed" exit 1 fi - # Clean up test wheels - rm -f wheelhouse/*-py3-none-linux_x86_64.whl - name: Upload build Artifact wheel From c49e83e5ff51312bd28bdd65d79ec1fcb56c19c9 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 22:51:40 +0100 Subject: [PATCH 18/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6033217b..a3f35f08 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,7 +87,7 @@ jobs: - name: Rename wheels from universal2 to x86_64 run: | # Rename universal2 wheels to x86_64 since they aren't truly universal - for wheel in dist/*-universal2.whl; do + for wheel in dist/*universal2.whl; do if [ -f "$wheel" ]; then new_wheel=$(echo "$wheel" | sed 's/universal2/x86_64/') echo "Renaming: $(basename "$wheel") -> $(basename "$new_wheel")" From 57fd66e42a039537896f6afbe2eb2f4b6f35e505 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 27 Aug 2025 22:59:19 +0100 Subject: [PATCH 19/20] try to fix license files not be accepting by twine --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 8f73de70..4ef65e9d 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,6 @@ def has_ext_modules(foo): url="https://github.com/electronstudio/raylib-python-cffi", author="Electron Studio", author_email="github@electronstudio.co.uk", - license_files = ['LICENSE'], classifiers=[ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.13", From c194be10bdc4dee4efdeee28a4c886db39473292 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 28 Aug 2025 14:09:06 +0100 Subject: [PATCH 20/20] try to fix license files not be accepting by twine --- .github/workflows/build.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3f35f08..7699752c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -169,19 +169,10 @@ jobs: ${{ matrix.python-version }} -m pip install --upgrade wheel ${{ matrix.python-version }} -m pip install --upgrade setuptools ${{ matrix.python-version }} -m pip install --upgrade build - if [[ "${{ matrix.python-version }}" != pypy* ]]; then - ${{ matrix.python-version }} -m pip install --upgrade auditwheel - ${{ matrix.python-version }} -m pip install --upgrade patchelf - ${{ matrix.python-version }} -m pip show -f patchelf - fi ${{ matrix.python-version }} -m build --wheel - if [[ "${{ matrix.python-version }}" != pypy* ]]; then - ${{ matrix.python-version }} -m auditwheel -v show dist/*.whl - ${{ matrix.python-version }} -m auditwheel repair dist/*.whl - else - mkdir -p wheelhouse - cp dist/*.whl wheelhouse/ - fi + python3.13 -m pip install --upgrade auditwheel + python3.13 -m pip install --upgrade patchelf + python3.13 -m auditwheel repair dist/*.whl shell: bash - name: Rename wheel for testing run: |