Skip to content

Commit 2272ebd

Browse files
committed
test: reenable setuptools coverage build
1 parent 292fa0d commit 2272ebd

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed
File renamed without changes.

.coveragerc.setuptools

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
plugins = Cython.Coverage

bin/activate

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export C_INCLUDE_PATH=$(pwd)/.local/include
22
export LIBRARY_PATH=$(pwd)/.local/lib
33
export LD_LIBRARY_PATH=$(pwd)/.local/lib
4+
export PKG_CONFIG_PATH=$(pwd)/.local/lib/pkgconfig

bin/coverage.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@
1515
#
1616
set -o errexit
1717

18+
RC="--rcfile=.coveragerc.meson"
19+
20+
# See https://github.com/cython/cython/issues/6658
21+
# Needed for Python 3.13 only
22+
#pip uninstall cython
23+
#pip install git+https://github.com/cython/cython.git@fdbca99
24+
1825
meson setup build -Dcoverage=true
19-
spin run -- coverage run -m flint.test $@
20-
coverage report -m --sort=cover
21-
coverage html
26+
spin run -- coverage run $RC -m flint.test $@
27+
coverage report $RC -m --sort=cover
28+
coverage html $RC

bin/coverage_setuptools.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
RC="--rcfile=.coveragerc.setuptools"
4+
5+
# Comment out various lines below for speed if running multiple times.
6+
7+
# See https://github.com/cython/cython/issues/6658
8+
# Needed for Python 3.13 only
9+
#pip uninstall cython
10+
#pip install git+https://github.com/cython/cython.git@fdbca99
11+
12+
touch src/*/*/*.pyx
13+
PYTHON_FLINT_COVERAGE=1 python setup.py build_ext --inplace
14+
PYTHONPATH=src coverage run $RC -m flint.test
15+
coverage report $RC -m --sort=cover
16+
coverage html $RC

0 commit comments

Comments
 (0)