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

Felix Yan felixonmars at archlinux.org
Wed Jul 17 03:04:47 UTC 2019


    Date: Wednesday, July 17, 2019 @ 03:04:46
  Author: felixonmars
Revision: 490117

upgpkg: python-pytest 5.0.1-1

Modified:
  python-pytest/trunk/PKGBUILD

----------+
 PKGBUILD |   56 +++++++++++++-------------------------------------------
 1 file changed, 13 insertions(+), 43 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-17 03:00:27 UTC (rev 490116)
+++ PKGBUILD	2019-07-17 03:04:46 UTC (rev 490117)
@@ -1,67 +1,37 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
 
-pkgbase=python-pytest
-pkgname=('python-pytest' 'python2-pytest')
-pkgver=4.6.4
+pkgname=python-pytest
+pkgver=5.0.1
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')
 url="http://pytest.org/"
-makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-py' 'python2-py' 'python-pluggy'
-             'python2-pluggy' 'python-attrs' 'python2-attrs' 'python-more-itertools'
-             'python2-more-itertools' 'python-atomicwrites' 'python2-atomicwrites'
-             'python2-funcsigs' 'python2-pathlib2' 'python-wcwidth' 'python2-wcwidth')
-checkdepends=('lsof' 'python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-tox'
-              'python2-tox' 'python-yaml' 'python2-yaml' 'python-pytest-xdist'
-              'python2-pytest-xdist' 'python-twisted' 'python2-twisted' 'python-requests'
-              'python2-requests' 'python-hypothesis' 'python2-hypothesis')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz")
-sha512sums=('58eed6f9e367b23944805eb10f1d727e95a8e42f65fbef673b890656a6395746aee5d0891a0849d2bfa5bb46fafda6120bb1d0b532b0d95586bb196942395dd0')
+depends=('python-py' 'python-setuptools' 'python-pluggy' 'python-attrs' 'python-more-itertools'
+         'python-atomicwrites' 'python-wcwidth')
+makedepends=('python-setuptools-scm')
+checkdepends=('lsof' 'python-nose' 'python-mock' 'python-tox' 'python-yaml' 'python-pytest-xdist'
+              'python-twisted' 'python-requests' 'python-hypothesis')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz")
+sha512sums=('738f8a3b38ad36be6a66ad036999a9b78023c40dd6c9cb9bd01a023841011ae276fec556eb6dabf35638a6c7cf49304c140d90d5174ded710e0f51b51145e5cb')
 
-prepare() {
-  sed -i 's/==0/>=0/' pytest-$pkgver/setup.py
-  cp -a pytest-$pkgver{,-py2}
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-}
-
 build() {
-  cd "$srcdir"/pytest-$pkgver
+  cd pytest-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pytest-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   # Skip test_collect_pyargs_with_testpaths because it mangles PYTHONPATH
 
-  cd "$srcdir"/pytest-$pkgver
+  cd pytest-$pkgver
   PYTHONPATH="$PWD"/build/lib python src/pytest.py -k 'not test_collect_pyargs_with_testpaths'
-
-  cd "$srcdir"/pytest-$pkgver-py2
-  PYTHONPATH="$PWD"/build/lib python2 src/pytest.py -k 'not test_collect_pyargs_with_testpaths'
 }
 
-package_python-pytest() {
-  depends=('python-py' 'python-setuptools' 'python-pluggy' 'python-attrs' 'python-more-itertools'
-           'python-atomicwrites' 'python-wcwidth')
-
+package() {
   cd pytest-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-pytest() {
-  depends=('python2-py' 'python2-setuptools' 'python2-pluggy' 'python2-attrs' 'python2-wcwidth'
-           'python2-more-itertools' 'python2-atomicwrites' 'python2-funcsigs' 'python2-pathlib2')
-
-  cd pytest-$pkgver-py2
-  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