python3-coverage: update to 7.2.7.
This commit is contained in:
parent
cc88fbd5dc
commit
42b6b61fe5
2 changed files with 30 additions and 27 deletions
|
@ -1,16 +0,0 @@
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -86,12 +86,9 @@ setup_args = dict(
|
|
||||||
},
|
|
||||||
|
|
||||||
entry_points={
|
|
||||||
- # Install a script as "coverage", and as "coverage[23]", and as
|
|
||||||
- # "coverage-2.7" (or whatever).
|
|
||||||
+ # Install a script as "coverage"
|
|
||||||
'console_scripts': [
|
|
||||||
'coverage = coverage.cmdline:main',
|
|
||||||
- 'coverage%d = coverage.cmdline:main' % sys.version_info[:1],
|
|
||||||
- 'coverage-%d.%d = coverage.cmdline:main' % sys.version_info[:2],
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
|
@ -1,17 +1,36 @@
|
||||||
# Template file for 'python3-coverage'
|
# Template file for 'python3-coverage'
|
||||||
pkgname=python3-coverage
|
pkgname=python3-coverage
|
||||||
version=5.0.3
|
version=7.2.7
|
||||||
revision=5
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-pep517
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools python3-wheel"
|
||||||
makedepends="python3-devel"
|
makedepends="python3-devel"
|
||||||
depends="python3-setuptools"
|
checkdepends="$depends python3-pytest-xdist python3-flaky python3-hypothesis"
|
||||||
checkdepends="python3-pytest-xdist python3-flaky python3-unittest-mixins"
|
short_desc="Code coverage tool for Python"
|
||||||
short_desc="Code coverage testing for Python3"
|
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://bitbucket.org/ned/coveragepy"
|
homepage="https://github.com/nedbat/coveragepy"
|
||||||
|
changelog="https://raw.githubusercontent.com/nedbat/coveragepy/master/CHANGES.rst"
|
||||||
distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
|
||||||
checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
|
checksum=924d94291ca674905fe9481f12294eb11f2d3d3fd1adb20314ba89e94f44ed59
|
||||||
# coverage executable needs to run for many tests
|
|
||||||
make_check=no
|
pre_check() {
|
||||||
|
# required setup, see tox.ini
|
||||||
|
python igor.py zip_mods
|
||||||
|
}
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
# Running via PYTHONPATH breaks a few tests so we use a venv
|
||||||
|
local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
|
||||||
|
python3 -m venv --system-site-packages --without-pip "${testdir}"
|
||||||
|
|
||||||
|
local testpy="${testdir}/bin/python3"
|
||||||
|
"${testpy}" -m installer dist/*.whl
|
||||||
|
PATH="${testdir}/bin:${PATH}" "${testpy}" -m pytest -n ${XBPS_MAKEJOBS}
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
# remove versioned scripts (keep only /usr/bin/coverage)
|
||||||
|
rm ${DESTDIR}/usr/bin/coverage3
|
||||||
|
rm ${DESTDIR}/usr/bin/coverage-${py3_ver}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue