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

Jelle van der Waa jelle at gemini.archlinux.org
Wed Oct 27 20:08:42 UTC 2021


    Date: Wednesday, October 27, 2021 @ 20:08:42
  Author: jelle
Revision: 1034780

Drop python2 module

Modified:
  python-pytest-forked/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-27 20:05:01 UTC (rev 1034779)
+++ PKGBUILD	2021-10-27 20:08:42 UTC (rev 1034780)
@@ -1,20 +1,18 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pytest-forked
-pkgname=('python-pytest-forked' 'python2-pytest-forked')
+pkgname=python-pytest-forked
 pkgver=1.3.0
-pkgrel=3
+pkgrel=4
 pkgdesc='run tests in isolated forked subprocesses'
 arch=('any')
 license=('MIT')
 url='https://github.com/pytest-dev/pytest-forked'
-makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm')
+makedepends=('python-pytest' 'python-setuptools-scm')
+depends=('python-pytest')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-forked/archive/v$pkgver.tar.gz")
 sha512sums=('3fbbde21b4157eb8d2f72ae4285e2a84718a1ba85781ee10b53cc36d8de21512c6f2285fad5fa3cf40dcb6df767cc87fc8e749897011d89e84dcf153fc466ba6')
 
 prepare() {
-  cp -a pytest-forked-$pkgver{,-py2}
-
   export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 }
 
@@ -21,37 +19,19 @@
 build() {
   cd "$srcdir"/pytest-forked-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pytest-forked-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   # Hack entry points by installing it
-
   cd "$srcdir"/pytest-forked-$pkgver
   python setup.py install --root="$PWD/tmp_install" --optimize=1
   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" py.test
-
-  cd "$srcdir"/pytest-forked-$pkgver-py2
-  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
 }
 
-package_python-pytest-forked() {
-  depends=('python-pytest')
-
+package() {
   cd pytest-forked-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
-package_python2-pytest-forked() {
-  depends=('python2-pytest')
-
-  cd pytest-forked-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list