Use better qualified name for cpython extension module shared library#113
Conversation
Some vcpkg ports have some Python tests files that should not be collected by pytest.
CMake Python module defines a python_add_library command to easily compile a cpython extension module.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #113 +/- ##
==========================================
+ Coverage 87.71% 94.20% +6.48%
==========================================
Files 14 14
Lines 1180 1190 +10
==========================================
+ Hits 1035 1121 +86
+ Misses 145 69 -76 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Shared library for a cpython extension module should be suffixed by the value of the EXT_SUFFIX configuration variable from the sysconfig module. Fixes python-project-templates#24.
|
Codecov report seems wrong as this what i get when testing locally: |
|
I do not get why my changes in I also get the same locally when displaying coverage report in VS code. |
Ah I see, the code is executed by |
But this can be fixed by enabling subprocess support in pytest-cov. I pushed a new commit with that fix. |
Shared library for a
cpythonextension module should be suffixed bythe value of the
EXT_SUFFIXconfiguration variable from thesysconfigmodule.
Fixes #24.