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

Jelle van der Waa jelle at gemini.archlinux.org
Sat Nov 13 16:08:56 UTC 2021


    Date: Saturday, November 13, 2021 @ 16:08:56
  Author: jelle
Revision: 1045569

Drop unused python2 module

Modified:
  python-pytest-expect/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-13 16:08:04 UTC (rev 1045568)
+++ PKGBUILD	2021-11-13 16:08:56 UTC (rev 1045569)
@@ -1,16 +1,15 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
 
 _pkgname=pytest-expect
-pkgbase='python-pytest-expect'
-pkgname=('python-pytest-expect' 'python2-pytest-expect')
+pkgname='python-pytest-expect'
 pkgver=1.1.0
-pkgrel=6
+pkgrel=7
 pkgdesc="py.test plugin to store test expectations and mark tests based on them"
 arch=('any')
 url="https://github.com/gsnedders/${_pkgname}"
 license=('MIT')
-makedepends=('python-setuptools' 'python-pytest' 'python-u-msgpack'
-             'python2-setuptools' 'python2-pytest' 'python2-u-msgpack')
+depends=('python-pytest' 'python-u-msgpack')
+makedepends=('python-setuptools' 'python-pytest' 'python-u-msgpack')
 source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
 sha256sums=('8392093123dfc9807c28fee251e1d710aaed0d46ee77c7531528fb0a265eb798')
 
@@ -18,23 +17,11 @@
   cd "${srcdir}/${_pkgname}-${pkgver}"
 
   python setup.py build
-  python2 setup.py build
 }
 
 package_python-pytest-expect() {
-  depends=('python-pytest' 'python-u-msgpack')
-
   cd "${srcdir}/${_pkgname}-${pkgver}"
   python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
 
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
-
-package_python2-pytest-expect() {
-  depends+=('python2-pytest' 'python2-u-msgpack')
-
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-
-  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}



More information about the arch-commits mailing list