Skip to content

Commit

Permalink
Fix wheels workflow (#1)
Browse files Browse the repository at this point in the history
* Exclude Windows

* Install libomp for macOS

* Build wheels only for 64-bit archs

* Only build CPython 3.9 wheels

* Build wheels for Python 3.6 - 3.10

* Fix python_requires
  • Loading branch information
zhanpon authored Mar 5, 2022
1 parent 8a2747d commit 8fd2311
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
CIBW_TEST_COMMAND: pytest {project}/tests
CIBW_TEST_EXTRAS: test
CIBW_ARCHS: auto64


jobs:
Expand Down Expand Up @@ -41,13 +42,17 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Install libomp for macOS
if: runner.os == 'macOS'
run: brew install libomp

- uses: pypa/[email protected]

- name: Verify clean directory
Expand Down
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@ build-backend = "setuptools.build_meta"

[tool.isort]
profile = "black"

[tool.cibuildwheel]
build = [
"cp36-manylinux_x86_64",
"cp36-macosx_x86_64",
"cp37-manylinux_x86_64",
"cp37-macosx_x86_64",
"cp38-manylinux_x86_64",
"cp38-macosx_x86_64",
"cp39-manylinux_x86_64",
"cp39-macosx_x86_64",
"cp310-manylinux_x86_64",
"cp310-macosx_x86_64",
]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
cmake_install_dir="src/ngtpy",
include_package_data=True,
extras_require={"test": ["pytest"]},
python_requires=">=3.7",
python_requires=">=3.6",
install_requires=["numpy"],
)

0 comments on commit 8fd2311

Please sign in to comment.