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

Add wheels for Python 3.13 #2012

Merged
merged 1 commit into from
Nov 4, 2024
Merged
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
27 changes: 27 additions & 0 deletions .github/workflows/build-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,31 @@ jobs:
run: |
python -m pip install pytest
python -m pytest

build_wheel_windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4

- name: Install correct python version
uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Build wheel
run: |
python -m pip install cibuildwheel
python -m cibuildwheel --only cp313-win_amd64 $GITHUB_WORKSPACE

- name: Install wheel
run: |
ls wheelhouse
$item = Get-ChildItem wheelhouse
python -m pip install "$item"
python -c "import highspy; print(dir(highspy))"

- name: Test highspy
run: |
python -m pip install pytest
python -m pytest

6 changes: 3 additions & 3 deletions .github/workflows/build-wheels-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- [macos-14, macosx_arm64]
- [windows-2019, win_amd64]
- [windows-2019, win32]
python: ["cp38", "cp39","cp310", "cp311","cp312"]
python: ["cp38", "cp39","cp310", "cp311","cp312", "cp313"]

steps:
- uses: actions/checkout@v4
Expand All @@ -65,14 +65,14 @@ jobs:

- name: Build wheels (aarch64)
if: ${{ contains(matrix.buildplat[1], 'aarch64') }}
uses: pypa/cibuildwheel@v2.19
uses: pypa/cibuildwheel@v2.21
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_ARCHS_LINUX: aarch64

- name: Build wheels (not aarch64)
if: ${{ !contains(matrix.buildplat[1], 'aarch64') }}
uses: pypa/cibuildwheel@v2.19
uses: pypa/cibuildwheel@v2.21
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- [macos-14, macosx_arm64]
- [windows-2019, win_amd64]
- [windows-2019, win32]
python: ["cp38", "cp39","cp310", "cp311","cp312"]
python: ["cp38", "cp39","cp310", "cp311","cp312", "cp313"]

steps:
- uses: actions/checkout@v4
Expand All @@ -51,13 +51,13 @@ jobs:

- name: Build wheels (aarch64)
if: ${{ contains(matrix.buildplat[1], 'aarch64') }}
uses: pypa/cibuildwheel@v2.19
uses: pypa/cibuildwheel@v2.21
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_ARCHS_LINUX: aarch64

- name: Build wheels (not aarch64)
if: ${{ !contains(matrix.buildplat[1], 'aarch64') }}
uses: pypa/cibuildwheel@v2.19
uses: pypa/cibuildwheel@v2.21
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]

Expand Down Expand Up @@ -195,6 +196,9 @@ testpaths = ["tests"]
build = "*"
skip = "cp3{6,7}-*"

# Enable free-threaded support
free-threaded-support = true

test-command = "pytest {project}/tests"
test-extras = ["test", "numpy"]
test-skip = ["*universal2:arm64"]
Expand Down
Loading