Skip to content
Draft

Py HiPO #2756

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
24e16e6
openblas vcpkg config required
galabovaa Nov 3, 2025
5ef10ab
some link errors
galabovaa Nov 3, 2025
5347d6f
wip
galabovaa Nov 3, 2025
18b5a28
add hipo test
galabovaa Nov 3, 2025
ba916d2
next try metis-ts
galabovaa Nov 3, 2025
92e1d72
modified metis
galabovaa Nov 3, 2025
980cf3c
try win ci
galabovaa Nov 4, 2025
c979855
file first
galabovaa Nov 4, 2025
eefdc5b
env
galabovaa Nov 4, 2025
6beae4a
try
galabovaa Nov 4, 2025
1dfdcf4
forward slashes
galabovaa Nov 4, 2025
7ee9c68
toolchain file
galabovaa Nov 4, 2025
3723421
openblas allow non-config too
galabovaa Nov 4, 2025
c977bc1
openblas triplet
galabovaa Nov 4, 2025
cab6daf
ubuntu
galabovaa Nov 4, 2025
b8eb07e
unix
galabovaa Nov 4, 2025
2467147
expand metis path
galabovaa Nov 4, 2025
4cf13b4
blas python
galabovaa Nov 4, 2025
2125ba8
typo
galabovaa Nov 4, 2025
a9c8b19
lib
galabovaa Nov 4, 2025
7f5d614
update latest
galabovaa Nov 10, 2025
5db9be8
fix tests for highspy w/o hipo
galabovaa Nov 10, 2025
791b3fc
skip hipo test in build-python-package
galabovaa Nov 10, 2025
9269e4e
cibw windows
galabovaa Nov 10, 2025
b412dbc
test_hipo name
galabovaa Nov 10, 2025
998f559
Merge branch 'openblas-win-config' into windows-nov-py-args
galabovaa Nov 10, 2025
c31055a
recover .pyi files
galabovaa Nov 10, 2025
040f1d3
win openblas config merged from openblas-win-config
galabovaa Nov 10, 2025
30aeda2
python tests no hipo
galabovaa Nov 12, 2025
8b13060
Merge branch 'latest' into py-hipo
galabovaa Nov 12, 2025
f0cbb01
clean up
galabovaa Nov 12, 2025
b283f86
tests linux no hipo
galabovaa Nov 12, 2025
3a33ba2
add new cpp file to python
galabovaa Nov 13, 2025
f7ab938
clean up
galabovaa Nov 13, 2025
13df0f6
Merge branch 'latest' into py-hipo-fetch
galabovaa Dec 15, 2025
3911247
merge wip
galabovaa Dec 15, 2025
eb3352f
sources python update
galabovaa Dec 15, 2025
44ecd56
wip
galabovaa Dec 15, 2025
fb94ebe
linux OK locally
galabovaa Dec 15, 2025
eb6a2c3
Merge branch 'hipo-cpack' into py-hipo-fetch
galabovaa Dec 16, 2025
ca6e051
try to build wheels
galabovaa Dec 16, 2025
5f7248d
recover missing lines in python win workflow
galabovaa Dec 16, 2025
75537f8
test wheel build
galabovaa Dec 16, 2025
3652af3
edit pyproject win
galabovaa Dec 16, 2025
c279309
windows 32bit openblas
galabovaa Dec 16, 2025
8b6a131
push if success
galabovaa Dec 16, 2025
7055824
wip, win 32bit still not working locally
galabovaa Dec 16, 2025
7a879fa
add blas integer model 32
galabovaa Dec 17, 2025
c9188b7
threaded works
galabovaa Dec 17, 2025
64f7f43
merge updates
galabovaa Dec 17, 2025
7f7e288
u
galabovaa Dec 17, 2025
aaa9fb2
merge
galabovaa Dec 17, 2025
6d0d2e9
add filikat's points 1. and 2.
galabovaa Dec 17, 2025
e2fd74b
merge origin
galabovaa Jan 5, 2026
8ad289c
Merge branch 'hipo-cpack-l' into py-l
galabovaa Jan 5, 2026
54698f0
Merge branch 'hipo-cpack-l' into py-l
galabovaa Jan 5, 2026
7396d6a
Merge branch 'hipo-cpack-l' into py-l
galabovaa Jan 5, 2026
2a2d01f
clean up
galabovaa Jan 5, 2026
0818dbb
clean up
galabovaa Jan 5, 2026
82402a5
more clean
galabovaa Jan 5, 2026
49da99b
undo hipo check
galabovaa Jan 6, 2026
cd080a8
no hipo by default
galabovaa Jan 6, 2026
8523add
hipo win
galabovaa Jan 6, 2026
8b69190
use cmake define
galabovaa Jan 6, 2026
d7ed036
wip
galabovaa Jan 6, 2026
52a4a92
wiP
galabovaa Jan 6, 2026
176d25b
add pytest
galabovaa Jan 6, 2026
079c9dc
wip package-hipo
galabovaa Jan 6, 2026
3987872
hipo python package
galabovaa Jan 6, 2026
53fd3b2
hipo python sdist
galabovaa Jan 6, 2026
fde3231
workflow names
galabovaa Jan 6, 2026
bcdde6d
Merge branch 'latest' into py-l
galabovaa Jan 12, 2026
313db47
remove autodetect
galabovaa Jan 12, 2026
342c9a1
clean up package without hipo tests
galabovaa Jan 12, 2026
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
269 changes: 269 additions & 0 deletions .github/workflows/build-python-package-hipo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
name: build-python-package-hipo

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Build sdist
run: |
python3 -m pip install build
python3 -m build --sdist

- name: Install sdist
run: |
ls dist
python3 -m pip install dist/*.tar.gz \
--config-settings=cmake.define.HIPO=ON \
--config-settings=cmake.define.BUILD_OPENBLAS=ON

- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest $GITHUB_WORKSPACE/check/test_highspy_hipo.py

build_sdist_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Build sdist
run: |
python3 -m pip install build --break-system-packages
python3 -m build --sdist

- name: Install sdist
run: |
ls dist
python3 -m pip install dist/*.tar.gz \
--config-settings=cmake.define.HIPO=ON \
--break-system-packages

- name: Test highspy
run: |
python3 -m pip install pytest --break-system-packages
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest $GITHUB_WORKSPACE/check/test_highspy_hipo.py

build_sdist_win:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4

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

- name: Build sdist
run: |
python -m pip install build
python -m build --sdist

- name: Install sdist
run: |
$item = Get-ChildItem dist
python -m pip install "$item" `
--config-settings=cmake.define.HIPO=ON `
--config-settings=cmake.define.BUILD_OPENBLAS=ON
python -c "import highspy; print(dir(highspy))"

- name: Test highspy
run: |
python -m pip install pytest
python -m pytest
python -m pytest $env:GITHUB_WORKSPACE/check/test_highspy_hipo.py

build_wheel_linux:
runs-on: ubuntu-24.04
strategy:
matrix:
python: [3.11]
steps:
- uses: actions/checkout@v4

- name: Install correct python version
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Build wheel
run: |
python3 --version
python3 -m pip install cibuildwheel
export CIBW_CONFIG_SETTINGS="cmake.define.HIPO=ON cmake.define.BUILD_OPENBLAS=ON"
python3 -m cibuildwheel --only cp311-manylinux_x86_64 $GITHUB_WORKSPACE

- name: Install wheel
run: |
ls wheelhouse
python3 -m pip install wheelhouse/*.whl

- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest $GITHUB_WORKSPACE/check/test_highspy_hipo.py

build_wheel_linux_arm:
runs-on: ubuntu-24.04-arm
strategy:
matrix:
python: [3.11]
steps:
- uses: actions/checkout@v4

- name: Install python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Build wheel
run: |
python3 --version
python3 -m pip install cibuildwheel
export CIBW_CONFIG_SETTINGS="cmake.define.HIPO=ON cmake.define.BUILD_OPENBLAS=ON"
python3 -m cibuildwheel --only cp311-manylinux_aarch64 $GITHUB_WORKSPACE

- name: Install wheel
run: |
ls wheelhouse
python3 -m pip install wheelhouse/*.whl

- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest $GITHUB_WORKSPACE/check/test_highspy_hipo.py

build_wheel_macos_intel:
runs-on: macos-15-intel
strategy:
matrix:
python: [3.11]
steps:
- uses: actions/checkout@v4

- name: Install correct python version
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Build wheel
run: |
python3 -m pip install cibuildwheel
export CIBW_CONFIG_SETTINGS="cmake.define.HIPO=ON"
python3 -m cibuildwheel --only cp311-macosx_x86_64 $GITHUB_WORKSPACE

- name: Install wheel
run: |
ls wheelhouse
python3 --version
python3 -m pip install wheelhouse/*.whl
python3 -c "import highspy; print(dir(highspy))"

- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest $GITHUB_WORKSPACE/check/test_highspy_hipo.py

build_wheel_macos_arm:
runs-on: macos-14 # macos-14 is arm64
strategy:
matrix:
python: [3.11]
steps:
- uses: actions/checkout@v4

- name: Install correct python version
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Build wheel
run: |
python3 -m pip install cibuildwheel
export CIBW_CONFIG_SETTINGS="cmake.define.HIPO=ON"
python3 -m cibuildwheel --only cp311-macosx_arm64 $GITHUB_WORKSPACE

- name: Install wheel
run: |
ls wheelhouse
python3 --version
python3 -m pip install wheelhouse/*.whl
python3 -c "import highspy; print(dir(highspy))"

- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest $GITHUB_WORKSPACE/check/test_highspy_hipo.py

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

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

- name: Build wheel
run: |
python -m pip install cibuildwheel
$env:CIBW_CONFIG_SETTINGS="cmake.define.HIPO=ON cmake.define.BUILD_OPENBLAS=ON"
python -m cibuildwheel --only cp39-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
python -m pytest $env:GITHUB_WORKSPACE/check/test_highspy_hipo.py

build_wheel_windows_313:
runs-on: windows-2022
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
$env:CIBW_CONFIG_SETTINGS="cmake.define.HIPO=ON cmake.define.BUILD_OPENBLAS=ON"
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
python -m pytest $env:GITHUB_WORKSPACE/check/test_highspy_hipo.py

33 changes: 16 additions & 17 deletions .github/workflows/build-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Build sdist
run: |
python3 -m pip install build
python3 -m pip install build
python3 -m build --sdist

- name: Install sdist
Expand All @@ -26,8 +26,8 @@ jobs:
- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest

build_sdist_mac:
runs-on: macos-latest
steps:
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Test highspy
run: |
python3 -m pip install pytest --break-system-packages
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest

build_sdist_win:
runs-on: windows-2022
Expand All @@ -72,8 +72,8 @@ jobs:
- name: Test highspy
run: |
python -m pip install pytest
python -m pytest
python -m pytest

build_wheel_linux:
runs-on: ubuntu-24.04
strategy:
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest

build_wheel_linux_arm:
runs-on: ubuntu-24.04-arm
Expand Down Expand Up @@ -130,13 +130,13 @@ jobs:
- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest

build_wheel_macos_intel:
runs-on: macos-15-intel
strategy:
matrix:
python: [3.11]
python: [3.11]
steps:
- uses: actions/checkout@v4

Expand All @@ -160,13 +160,13 @@ jobs:
- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest

build_wheel_macos_arm:
runs-on: macos-14 # macos-14 is arm64
strategy:
matrix:
python: [3.11]
python: [3.11]
steps:
- uses: actions/checkout@v4

Expand All @@ -190,7 +190,7 @@ jobs:
- name: Test highspy
run: |
python3 -m pip install pytest
python3 -m pytest $GITHUB_WORKSPACE
python3 -m pytest

build_wheel_windows:
runs-on: windows-2022
Expand All @@ -217,8 +217,8 @@ jobs:
- name: Test highspy
run: |
python -m pip install pytest
python -m pytest
python -m pytest

build_wheel_windows_313:
runs-on: windows-2022
steps:
Expand All @@ -244,5 +244,4 @@ jobs:
- name: Test highspy
run: |
python -m pip install pytest
python -m pytest

python -m pytest
Loading
Loading