[arch-commits] Commit in python2-pytest/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Mar 15 22:26:30 UTC 2020


    Date: Sunday, March 15, 2020 @ 22:26:30
  Author: felixonmars
Revision: 598726

archrelease: copy trunk to community-any

Added:
  python2-pytest/repos/community-any/PKGBUILD
    (from rev 598725, python2-pytest/trunk/PKGBUILD)
Deleted:
  python2-pytest/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++-----------------------------------
 1 file changed, 32 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-15 22:26:17 UTC (rev 598725)
+++ PKGBUILD	2020-03-15 22:26:30 UTC (rev 598726)
@@ -1,42 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
-
-pkgname=python2-pytest
-pkgver=4.6.8
-pkgrel=3
-pkgdesc="Simple powerful testing with Python"
-arch=('any')
-license=('MIT')
-url="https://pytest.org/"
-depends=('python2-py' 'python2-setuptools' 'python2-pluggy' 'python2-attrs' 'python2-more-itertools'
-         'python2-atomicwrites' 'python2-wcwidth' 'python2-funcsigs' 'python2-pathlib2'
-         'python2-importlib-metadata')
-makedepends=('python2-setuptools-scm')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz"
-        module-rewrite.patch::https://github.com/pytest-dev/pytest/pull/6313.patch)
-sha512sums=('b6280ba1dec3f49bb54639d87e22936f655b2e67829e658715e151d70916b826b19cbc43812c17ead748e7927d5aab0b28f1a3a1059548400c71cd3830956230'
-            '7491b830529da28e6f60ac29bf7fd219f6281349b97d68d6de97ce657b211abb275b1cca7627877a23e761ca2277bd014a9360ada2f3ca22e482572893b29a1c')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-prepare() {
-  cd pytest-$pkgver
-  # https://github.com/pytest-dev/pytest/issues/6301
-  patch -p1 -i ../module-rewrite.patch
-  # Python 2 compatibility
-  sed -i 's/yield from _iter_rewritable_modules(new_package_files)/for _module in _iter_rewritable_modules(new_package_files): yield _module/' src/_pytest/config/__init__.py
-}
-
-build() {
-  cd pytest-$pkgver
-  python2 setup.py build
-}
-
-package() {
-  cd pytest-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  mv "$pkgdir"/usr/bin/py.test{,2}
-  mv "$pkgdir"/usr/bin/pytest{,2}
-}

Copied: python2-pytest/repos/community-any/PKGBUILD (from rev 598725, python2-pytest/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-15 22:26:30 UTC (rev 598726)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgname=python2-pytest
+pkgver=4.6.9
+pkgrel=1
+pkgdesc="Simple powerful testing with Python"
+arch=('any')
+license=('MIT')
+url="https://pytest.org/"
+depends=('python2-py' 'python2-setuptools' 'python2-pluggy' 'python2-attrs' 'python2-more-itertools'
+         'python2-atomicwrites' 'python2-wcwidth' 'python2-funcsigs' 'python2-pathlib2'
+         'python2-importlib-metadata')
+makedepends=('python2-setuptools-scm')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz")
+sha512sums=('a5ae33636c8ff143f3ac73bda89c5789782671157de7af34af1ac995882993f645a57e2fd95de1594c1ebbc5fdd892d47d52b771e0c61506a90fd8ed1285f6bf')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pytest-$pkgver
+  python2 setup.py build
+}
+
+package() {
+  cd pytest-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  mv "$pkgdir"/usr/bin/py.test{,2}
+  mv "$pkgdir"/usr/bin/pytest{,2}
+}



More information about the arch-commits mailing list