Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / python-asteval
Commits: 368d40b3 by Carl Smedstad at 2024-10-06T11:09:21+02:00 upgpkg: 0.9.33-2: Drop unneeded python-pytest-cov dependency https://archlinux.org/todo/drop-python-pytest-cov-dependency-if-unneeded/ - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,11 +1,11 @@ pkgbase = python-asteval pkgdesc = Minimalistic evaluator of python expression using ast module pkgver = 0.9.33 - pkgrel = 1 + pkgrel = 2 url = https://github.com/lmfit/asteval arch = any license = MIT - checkdepends = python-pytest-cov + checkdepends = python-pytest checkdepends = python-numpy checkdepends = tk makedepends = git ===================================== PKGBUILD ===================================== @@ -2,14 +2,14 @@ pkgname=python-asteval pkgver=0.9.33 -pkgrel=1 +pkgrel=2 pkgdesc="Minimalistic evaluator of python expression using ast module" url="https://github.com/lmfit/asteval" license=('MIT') arch=('any') depends=('python') makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel') -checkdepends=('python-pytest-cov' 'python-numpy' 'tk') +checkdepends=('python-pytest' 'python-numpy' 'tk') source=("git+https://github.com/lmfit/asteval.git#tag=$pkgver") sha512sums=('02370327f2b5fb86b928e26d6f9650f7c134f69ba194b312af12022b775fd6e141d7fed4456f4c11f395b4aed974d48ac814365b72bdc45d6d410d52194537e2') @@ -20,7 +20,9 @@ build() { check() { cd asteval - python -m pytest + python -m installer --destdir=tmp_install dist/*.whl + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + PYTHONPATH="$PWD/tmp_install/$site_packages" pytest --override-ini="addopts=" } package() { View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-asteval/-/commit/368d40b35d7f6d9a9acc69d4a522516bef8c8eb7 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-asteval/-/commit/368d40b35d7f6d9a9acc69d4a522516bef8c8eb7 You're receiving this email because of your account on gitlab.archlinux.org.
