Skip to content

Commit 51d81da

Browse files
authored
Improve CI (zhanpon#2)
* Polish CIBW configurations * Add cmake_args * No need for data files
1 parent 3c2bca3 commit 51d81da

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/wheels.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ on:
1010
types:
1111
- published
1212

13-
env:
14-
CIBW_TEST_COMMAND: pytest {project}/tests
15-
CIBW_TEST_EXTRAS: test
16-
CIBW_ARCHS: auto64
17-
18-
1913
jobs:
2014
build_sdist:
2115
name: Build SDist

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ build = [
2525
"cp310-manylinux_x86_64",
2626
"cp310-macosx_x86_64",
2727
]
28+
29+
test-requires = "pytest"
30+
test-command = "pytest {project}/tests"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
packages=find_packages(where="src"),
2121
package_dir={"": "src"},
2222
cmake_install_dir="src/ngtpy",
23-
include_package_data=True,
23+
cmake_args=["-DNGT_MARCH_NATIVE_DISABLED=ON", "-DNGT_AVX_DISABLED=ON"],
2424
extras_require={"test": ["pytest"]},
2525
python_requires=">=3.6",
2626
install_requires=["numpy"],

0 commit comments

Comments
 (0)