Skip to content

Commit 611bb44

Browse files
authored
Include tests as a module in the package (#75)
* Include tests as a module in the package * consistently mark the dtypes we do/don't support
1 parent 252f135 commit 611bb44

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.github/workflows/wheels.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
CIBW_TEST_EXTRAS: "test"
112112

113113
# run tests
114-
CIBW_TEST_COMMAND: "pytest {project}/suitesparse_graphblas/tests"
114+
CIBW_TEST_COMMAND: "pytest --pyargs suitesparse_graphblas"
115115

116116
# GitHub Actions macOS Intel runner cannot run ARM tests.
117117
CIBW_TEST_SKIP: "*-macosx_arm64"

MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ include suitesparse_graphblas/*.pxd
66
include suitesparse_graphblas/*.pyx
77
include suitesparse_graphblas/*.c
88
include suitesparse_graphblas/*.h
9-
include suitesparse_graphblas/tests/*.py

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ test = [
6161
[tool.setuptools]
6262
packages = [
6363
'suitesparse_graphblas',
64-
# 'suitesparse_graphblas.tests',
64+
'suitesparse_graphblas.tests',
6565
'suitesparse_graphblas.io',
6666
]
6767

suitesparse.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ cd GraphBLAS-${VERSION}/build
5252
# echo "#define GxB_NO_BOOL 1" >> ../Source/GB_control.h #
5353
# echo "#define GxB_NO_FP32 1" >> ../Source/GB_control.h #
5454
# echo "#define GxB_NO_FP64 1" >> ../Source/GB_control.h #
55-
echo "#define GxB_NO_FC32 1" >> ../Source/GB_control.h #
56-
echo "#define GxB_NO_FC64 1" >> ../Source/GB_control.h #
57-
# echo "#define GxB_NO_INT16 1" >> ../Source/GB_control.h
58-
# echo "#define GxB_NO_INT32 1" >> ../Source/GB_control.h
55+
echo "#define GxB_NO_FC32 1" >> ../Source/GB_control.h
56+
echo "#define GxB_NO_FC64 1" >> ../Source/GB_control.h
57+
# echo "#define GxB_NO_INT16 1" >> ../Source/GB_control.h #
58+
# echo "#define GxB_NO_INT32 1" >> ../Source/GB_control.h #
5959
# echo "#define GxB_NO_INT64 1" >> ../Source/GB_control.h #
60-
# echo "#define GxB_NO_INT8 1" >> ../Source/GB_control.h
60+
# echo "#define GxB_NO_INT8 1" >> ../Source/GB_control.h #
6161
echo "#define GxB_NO_UINT16 1" >> ../Source/GB_control.h
6262
echo "#define GxB_NO_UINT32 1" >> ../Source/GB_control.h
63-
# echo "#define GxB_NO_UINT64 1" >> ../Source/GB_control.h
63+
# echo "#define GxB_NO_UINT64 1" >> ../Source/GB_control.h #
6464
echo "#define GxB_NO_UINT8 1" >> ../Source/GB_control.h
6565

6666
# Disable all Source/Generated2 kernels. For workflow development only.

suitesparse_graphblas/tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)