Skip to content

Commit

Permalink
🧪🐛 Make coverage use upstream Cython plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 28, 2023
1 parent 61bd3aa commit a36d965
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 71 deletions.
4 changes: 1 addition & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ exclude_lines =
branch = true
cover_pylib = false
parallel = true
# FIXME: https://github.com/cython/cython/issues/3636
# plugins = Cython.Coverage
plugins = cython_coverage
plugins = Cython.Coverage
relative_files = true
source =
tests
Expand Down
62 changes: 0 additions & 62 deletions bin/cython_coverage.py

This file was deleted.

9 changes: 3 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,14 @@ setenv =
COV_CORE_CONFIG = {toxinidir}/.coveragerc
COV_CORE_DATAFILE = {toxinidir}/.coverage
COV_CORE_SOURCE =
PYTHONPATH = {toxinidir}/bin{:}{env:PYTHONPATH:}
SEGFAULT_SIGNALS = all
commands =
-sh -c "CFLAGS=-DCYTHON_TRACE_NOGIL=1 \
{envpython} -m Cython.Build.Cythonize \
--force \
--inplace \
-sh -c "\
{envpython} -Im cython \
--directive=embedsignature=True \
--directive=emit_code_comments=True \
--directive=linetrace=True \
--directive=profile=True \
-3 \
{toxinidir}/src/pylibsshext/*.pyx"
{env:CATCHSEGV_BINARY:} {envpython} -m \
pytest \
Expand Down

0 comments on commit a36d965

Please sign in to comment.