Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Python versions #1382

Open
wants to merge 3 commits into
base: dev-v1.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
32 changes: 11 additions & 21 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,57 +29,47 @@ 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:
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:
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
Expand Down
11 changes: 0 additions & 11 deletions src/scripts/docker/build-wheel-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading