33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
# Template file for 'tox'
|
|
pkgname=tox
|
|
version=4.18.0
|
|
revision=1
|
|
build_style=python3-pep517
|
|
hostmakedepends="hatchling hatch-vcs"
|
|
depends="python3-cachetools python3-chardet python3-colorama python3-filelock
|
|
python3-pluggy python3-pyproject-api python3-virtualenv"
|
|
checkdepends="$depends python3-distlib python3-flaky python3-psutil
|
|
python3-pytest python3-pytest-mock python3-pytest-xdist python3-re-assert
|
|
python3-time-machine python3-wheel"
|
|
short_desc="Generic virtualenv management and test command line tool"
|
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="MIT"
|
|
homepage="https://tox.wiki/"
|
|
changelog="https://raw.githubusercontent.com/tox-dev/tox/main/docs/changelog.rst"
|
|
distfiles="${PYPI_SITE}/t/tox/tox-${version}.tar.gz"
|
|
checksum=5dfa1cab9f146becd6e351333a82f9e0ade374451630ba65ee54584624c27b58
|
|
|
|
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() {
|
|
vlicense LICENSE
|
|
}
|