Skip to content
Closed
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
10 changes: 5 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
CIBW_ENVIRONMENT: CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=OFF -DProtobuf_USE_STATIC_LIBS=ON -DONNX_USE_LITE_PROTO=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5"
CIBW_ENVIRONMENT_WINDOWS: USE_MSVC_STATIC_RUNTIME=0 CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=OFF -DProtobuf_USE_STATIC_LIBS=ON -DONNX_USE_LITE_PROTO=ON"
CIBW_BUILD: "${{ matrix.python }}-*"
# Skip python 3.6
CIBW_SKIP: "cp36-* *-win32 *-manylinux_i686 *-musllinux_*"
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*"
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-2019, macos-15]
os: [ubuntu-24.04, windows-2019, macos-15]
# Only build on Python 3 and skip 32-bit builds
python: ["cp39", "cp310", "cp311"]
python: ["cp39", "cp310", "cp311",'cp312']
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -87,6 +87,6 @@ jobs:
skip_existing: true
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ addopts = -n auto
testpaths = onnxoptimizer/test/

[metadata]
license-file = LICENSE
license_files = LICENSE

[flake8]
select = B,C,E,F,P,T4,W,B9
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import re
from textwrap import dedent
import multiprocessing

import shutil

TOP_DIR = os.path.realpath(os.path.dirname(__file__))
SRC_DIR = os.path.join(TOP_DIR, 'onnxoptimizer')
Expand All @@ -32,7 +32,8 @@
WINDOWS = (os.name == 'nt')
MACOS = sys.platform.startswith("darwin")

CMAKE = find_executable('cmake')
CMAKE = shutil.which('cmake')


install_requires = []
setup_requires = []
Expand Down
Loading