[arch-commits] Commit in python-pytest-cov/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Thu Jun 17 13:45:32 UTC 2021
Date: Thursday, June 17, 2021 @ 13:45:31
Author: eschwartz
Revision: 964622
upgpkg: python-pytest-cov 2.12.1-2: drop unneeded python2 split package
Modified:
python-pytest-cov/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++--------------------------
1 file changed, 7 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-17 13:35:14 UTC (rev 964621)
+++ PKGBUILD 2021-06-17 13:45:31 UTC (rev 964622)
@@ -3,31 +3,24 @@
# Contributor: Andrey Mikhaylenko <neithere at gmail dot com>
pkgbase=python-pytest-cov
-pkgname=('python-pytest-cov' 'python2-pytest-cov')
+pkgname=python-pytest-cov
pkgver=2.12.1
-pkgrel=1
+pkgrel=2
pkgdesc='py.test plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing'
arch=('any')
license=('MIT')
url='https://github.com/schlamar/pytest-cov'
-makedepends=('python-coverage' 'python2-coverage' 'python-setuptools' 'python2-setuptools'
- 'python-pytest' 'python2-pytest')
-checkdepends=('python-virtualenv' 'python2-virtualenv' 'python-process-tests'
- 'python2-process-tests' 'python-pytest-cache' 'python2-pytest-cache'
- 'python-pytest-xdist' 'python2-pytest-xdist' 'python-fields' 'python2-fields')
+depends=('python-pytest' 'python-coverage')
+makedepends=('python-setuptools')
+checkdepends=('python-virtualenv' 'python-process-tests'
+ 'python-pytest-cache'
+ 'python-pytest-xdist' 'python-fields')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-cov/archive/v$pkgver.tar.gz")
sha512sums=('a9893c81b7c5829c68b71e086719939c82622788fa471e2ab61f27cfb0efcc2008f09ec586ea06dba99ec1a6bf8789b8e3531c2ea8fa6435d7e45712b5cb9ea4')
-prepare() {
- cp -a pytest-cov-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/pytest-cov-$pkgver
python setup.py build
-
- cd "$srcdir"/pytest-cov-$pkgver-py2
- python2 setup.py build
}
check() {
@@ -36,23 +29,11 @@
cd "$srcdir"/pytest-cov-$pkgver
python setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH:$PWD/tests" py.test || echo "Tests failed"
-
- cd "$srcdir"/pytest-cov-$pkgver-py2
- python2 setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD/tests" py.test2 || echo "Tests failed"
}
package_python-pytest-cov() {
- depends=('python-pytest' 'python-coverage')
-
cd pytest-cov-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
-package_python2-pytest-cov() {
- depends=('python2-pytest' 'python2-coverage')
-
- cd pytest-cov-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list