Skip to content

Commit

Permalink
nlwpy: try to configure cibuildwheel directly from pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Feb 26, 2024
1 parent f4447ba commit 89170c4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
10 changes: 5 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
variables:
CIBW_SKIP: pp* cp27-* *_i686 *-win32 *musllinux*
CIBW_ARCHS_MACOS: x86_64 universal2
CIBW_TEST_COMMAND: pytest --pyargs nlwpy.test
CIBW_TEST_REQUIRES: --index-url https://pypi.ampl.com --extra-index-url https://pypi.org/simple ampl_module_base ampl_module_gurobi ampl_module_highs ampl_module_minos amplpy pytest pandas numpy scipy
# variables:
# CIBW_SKIP: pp* cp27-* *_i686 *-win32 *musllinux*
# CIBW_ARCHS_MACOS: x86_64 universal2
# CIBW_TEST_COMMAND: pytest --pyargs nlwpy.test
# CIBW_TEST_REQUIRES: --index-url https://pypi.ampl.com --extra-index-url https://pypi.org/simple ampl_module_base ampl_module_gurobi ampl_module_highs ampl_module_minos amplpy pytest pandas numpy scipy

stages:
- stage: native
Expand Down
18 changes: 14 additions & 4 deletions nl-writer2/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ requires = [
]
build-backend = "setuptools.build_meta"


[tool.cibuildwheel]
test-requires = "numpy scipy"
test-command = "python {project}/nlwpy/tests/test.py"
test-skip = "*universal2:arm64"
skip = ["pp*", "cp27-*", "*_i686", "*-win32", "*musllinux*"]
test-requires = [
"--index-url https://pypi.ampl.com",
"--extra-index-url https://pypi.org/simple",
"ampl_module_base",
"ampl_module_gurobi",
"ampl_module_highs",
"ampl_module_minos",
"amplpy", "pandas",
"numpy", scipy", "pytest"]
test-command = "pytest --pyargs nlwpy.test"

[tool.cibuildwheel.macos]
test-skip = "*universal2"
archs = ["x86_64", "universal2"]

[tool.ruff]
target-version = "py37"
Expand Down
1 change: 0 additions & 1 deletion nl-writer2/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Available at setup time due to pyproject.toml
from setuptools import setup, Extension
import pybind11
import glob
Expand Down

0 comments on commit 89170c4

Please sign in to comment.