# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup python 1.0 name py-coverage version 7.4.4 revision 0 categories-append devel maintainers {petr @petrrr} {reneeotten @reneeotten} openmaintainer license Apache-2 description Code coverage measurement for Python long_description Coverage measures code coverage, typically during test \ execution. It uses the code analysis tools and tracing \ hooks provided in the Python standard library to \ determine which lines are executable, and which have \ been executed. homepage https://github.com/nedbat/coveragepy checksums rmd160 b89f44958393b38eea518a8b8518a41a95c98c86 \ sha256 c901df83d097649e257e803be22592aedfd5182f07b3cc87d640bbb9afd50f49 \ size 783727 python.versions 27 35 36 37 38 39 310 311 312 if {${name} ne ${subport}} { depends_build-append \ port:py${python.version}-setuptools patchfiles patch-setup.py.diff post-patch { reinplace "s|coverage run|coverage-${python.branch} run|g" {*}[glob ${worksrcpath}/tests/*.py] reinplace "s|\"coverage\"|\"coverage-${python.branch}\"|g" ${worksrcpath}/tests/coveragetest.py } if {${python.version} in "27 35"} { version 5.5 checksums rmd160 5652a14045197a2e4f051128f4826f9b0dd3c6fa \ sha256 ebe78fe9a0e874362175b02371bdfbee64d8edc42a044253ddf4ee7d3c15212c \ size 691258 revision 0 patchfiles patch-v55_setup.py.diff depends_lib-append \ port:py${python.version}-setuptools } elseif {${python.version} == 36} { version 6.2 checksums rmd160 35831a75c405cfb730ac92da3f6ef76869319420 \ sha256 e2cad8093172b7d1595b4ad66f24270808658e11acf43a8f95b41276162eb5b8 \ size 678664 revision 0 patchfiles patch-setup.py.PY36_37.diff } elseif {${python.version} == 37} { version 7.2.7 checksums rmd160 bed6a64c4ac5165b42fd9aaf02945545bbf1e286 \ sha256 924d94291ca674905fe9481f12294eb11f2d3d3fd1adb20314ba89e94f44ed59 \ size 762575 epoch 1 revision 0 depends_lib-append \ port:py${python.version}-importlib-metadata patchfiles patch-setup.py.PY36_37.diff } post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} README.rst NOTICE.txt \ LICENSE.txt CONTRIBUTORS.txt CHANGES.rst \ ${destroot}${docdir} } livecheck.type none }