From f7776feea8f671d27353c3a22ff6b095c801d85d Mon Sep 17 00:00:00 2001 From: Christian Heitman Date: Mon, 23 Dec 2024 15:54:37 -0300 Subject: [PATCH 1/3] Update Python versions --- .github/workflows/codecov.yml | 2 +- .github/workflows/linux.yml | 2 +- .github/workflows/osx.yml | 2 +- .github/workflows/python.yml | 12 +----------- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index e9477c6ec..a0ec994d6 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.9] + python-version: [3.11] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 6f50adb3a..11356b331 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] boost-interface: ['ON', 'OFF'] capstone-version: ['5.0.3'] steps: diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index d8ba58efe..c6dd4ea49 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -9,7 +9,7 @@ jobs: runs-on: macos-14 strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index baea66b40..a5924b7d8 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -29,13 +29,6 @@ jobs: --volume ${{env.LLVM_PATH}}:/llvm \ build-triton-linux-x86_64 bash /src/src/scripts/docker/build-wheel-linux.sh - - name: Upload Wheel packages (Python 3.8) - uses: actions/upload-artifact@v4 - with: - name: triton_library-${{ env.package-version }}-cp38-cp38-manylinux_2_31_x86_64.whl - path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp38-cp38-manylinux_2_31_x86_64.whl - if-no-files-found: warn - - name: Upload Wheel packages (Python 3.9) uses: actions/upload-artifact@v4 with: @@ -75,11 +68,8 @@ jobs: runs-on: windows-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] include: - - python-version: 3.8 - pycp: cp38-cp38 - pylib: python38.lib - python-version: 3.9 pycp: cp39-cp39 pylib: python39.lib From 01d17100a8a9ccbb1d721aa225abbd31fd04558c Mon Sep 17 00:00:00 2001 From: Christian Heitman Date: Mon, 23 Dec 2024 17:01:08 -0300 Subject: [PATCH 2/3] Remove Python 3.8 from the build wheel script --- src/scripts/docker/build-wheel-linux.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/scripts/docker/build-wheel-linux.sh b/src/scripts/docker/build-wheel-linux.sh index 6b03bee49..917bc72bf 100755 --- a/src/scripts/docker/build-wheel-linux.sh +++ b/src/scripts/docker/build-wheel-linux.sh @@ -39,17 +39,6 @@ export BITWUZLA_LIBRARIES=$DEPENDENCIES_DIR/bitwuzla/install/lib64/libbitwuzla.s export LLVM_INTERFACE=ON export CMAKE_PREFIX_PATH=$LLVM_DIR -# Build Triton Python wheel package for Python 3.8. -echo "[+] Build Triton wheel package for Python 3.8" -cd $SOURCE_DIR -rm -rf $SOURCE_DIR/build -rm -rf $SOURCE_DIR/triton_library.egg-info -export PYTHON_BINARY=/opt/_internal/cpython-3.8.*/bin/python -export PYTHON_INCLUDE_DIRS=$($PYTHON_BINARY -c "from sysconfig import get_paths; print(get_paths()['include'])") -export PYTHON_LIBRARY=$($PYTHON_BINARY -c "from sysconfig import get_paths; print(get_paths()['include'])") - -$PYTHON_BINARY -m build --wheel --outdir $WHEEL_DIR/linux_x86_64 - # Build Triton Python wheel package for Python 3.9. echo "[+] Build Triton wheel package for Python 3.9" cd $SOURCE_DIR From 8d6e4a473eae202a2585206bd6380235837267b5 Mon Sep 17 00:00:00 2001 From: Christian Heitman Date: Tue, 24 Dec 2024 09:20:16 -0300 Subject: [PATCH 3/3] Fix typo --- .github/workflows/python.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a5924b7d8..c07d68f47 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -32,36 +32,36 @@ jobs: - name: Upload Wheel packages (Python 3.9) uses: actions/upload-artifact@v4 with: - name: triton_library-${{ env.package-version }}-cp39-cp39-manylinux_2_31_x86_64.whl - path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp39-cp39-manylinux_2_31_x86_64.whl + name: triton_library-${{ env.package-version }}-cp39-cp39-manylinux_2_34_x86_64.whl + path: wheelhouse/manylinux_2_34_x86_64/triton_library-${{ env.package-version }}-cp39-cp39-manylinux_2_34_x86_64.whl if-no-files-found: warn - name: Upload Wheel packages (Python 3.10) uses: actions/upload-artifact@v4 with: - name: triton_library-${{ env.package-version }}-cp310-cp310-manylinux_2_31_x86_64.whl - path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp310-cp310-manylinux_2_31_x86_64.whl + name: triton_library-${{ env.package-version }}-cp310-cp310-manylinux_2_34_x86_64.whl + path: wheelhouse/manylinux_2_34_x86_64/triton_library-${{ env.package-version }}-cp310-cp310-manylinux_2_34_x86_64.whl if-no-files-found: warn - name: Upload Wheel packages (Python 3.11) uses: actions/upload-artifact@v4 with: - name: triton_library-${{ env.package-version }}-cp311-cp311-manylinux_2_31_x86_64.whl - path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp311-cp311-manylinux_2_31_x86_64.whl + name: triton_library-${{ env.package-version }}-cp311-cp311-manylinux_2_34_x86_64.whl + path: wheelhouse/manylinux_2_34_x86_64/triton_library-${{ env.package-version }}-cp311-cp311-manylinux_2_34_x86_64.whl if-no-files-found: warn - name: Upload Wheel packages (Python 3.12) uses: actions/upload-artifact@v4 with: - name: triton_library-${{ env.package-version }}-cp312-cp312-manylinux_2_31_x86_64.whl - path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp312-cp312-manylinux_2_31_x86_64.whl + name: triton_library-${{ env.package-version }}-cp312-cp312-manylinux_2_34_x86_64.whl + path: wheelhouse/manylinux_2_34_x86_64/triton_library-${{ env.package-version }}-cp312-cp312-manylinux_2_34_x86_64.whl if-no-files-found: warn - name: Upload Wheel packages (Python 3.13) uses: actions/upload-artifact@v4 with: - name: triton_library-${{ env.package-version }}-cp313-cp313-manylinux_2_31_x86_64.whl - path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp313-cp313-manylinux_2_31_x86_64.whl + name: triton_library-${{ env.package-version }}-cp313-cp313-manylinux_2_34_x86_64.whl + path: wheelhouse/manylinux_2_34_x86_64/triton_library-${{ env.package-version }}-cp313-cp313-manylinux_2_34_x86_64.whl if-no-files-found: warn build-windows: