[arch-commits] Commit in python-coverage/trunk (PKGBUILD)

Jelle van der Waa jelle at gemini.archlinux.org
Mon Nov 1 09:21:42 UTC 2021


    Date: Monday, November 1, 2021 @ 09:21:41
  Author: jelle
Revision: 1035162

upgpkg: python-coverage 5.5-3

Modified:
  python-coverage/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++---------------------
 1 file changed, 6 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-01 09:05:17 UTC (rev 1035161)
+++ PKGBUILD	2021-11-01 09:21:41 UTC (rev 1035162)
@@ -2,15 +2,16 @@
 # Contributor: Clément Démoulins <clement at archivel.fr>
 # Contributor: Fazlul Shahriar <fshahriar at gmail.com>
 
-pkgbase=python-coverage
-pkgname=(python-coverage python2-coverage)
+pkgname=python-coverage
 pkgver=5.5
-pkgrel=2
+pkgrel=3
 pkgdesc="A tool for measuring code coverage of Python programs"
 arch=('x86_64')
 url="https://nedbatchelder.com/code/coverage/"
 license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+optdepends=('python-toml: for pyproject.toml support')
+makedepends=('python-setuptools')
 checkdepends=('python-flaky' 'python-hypothesis' 'python-mock'
 'python-pycontracts' 'python-pytest' 'python-pytest-xdist' 'python-toml'
 'python-unittest-mixins' 'python-virtualenv')
@@ -25,7 +26,6 @@
 build() {
   cd "${pkgbase}-$pkgver"
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
@@ -43,9 +43,7 @@
   ) || echo "Known failing tests."
 }
 
-package_python-coverage() {
-  depends=('python')
-  optdepends=('python-toml: for pyproject.toml support')
+package() {
   cd "${pkgbase}-$pkgver"
 
   python setup.py install --skip-build \
@@ -53,16 +51,3 @@
     --prefix=/usr \
     --root="${pkgdir}"
 }
-
-package_python2-coverage() {
-  depends=('python2-setuptools')
-  optdepends=('python2-toml: for pyproject.toml support')
-  cd "${pkgbase}-$pkgver"
-
-  python2 setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # circumvent file conflicts with python-coverage
-  mv -v "$pkgdir/usr/bin/coverage"{,2}
-}



More information about the arch-commits mailing list