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

David Runge dvzrv at archlinux.org
Wed Jul 29 22:26:22 UTC 2020


    Date: Wednesday, July 29, 2020 @ 22:26:21
  Author: dvzrv
Revision: 665811

upgpkg: python-atpublic 2.0-1: Upgrade to 2.0.

Remove additional pytest options that would drag in python-pytest-cov.

Modified:
  python-atpublic/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-29 22:24:29 UTC (rev 665810)
+++ PKGBUILD	2020-07-29 22:26:21 UTC (rev 665811)
@@ -2,7 +2,7 @@
 
 _name=atpublic
 pkgname=python-atpublic
-pkgver=1.0
+pkgver=2.0
 pkgrel=1
 pkgdesc="@public decorator for Python"
 arch=('any')
@@ -10,13 +10,16 @@
 license=('Apache')
 depends=('python')
 makedepends=('python-setuptools')
-checkdepends=('python-pytest')
+checkdepends=('python-pytest' 'python-sybil')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('f9e6f7bbbe12d86df5bc849c432e789fb55c6d19b9d6b3fb2462ea38aa8ad6602504a30a95ec14e001f62709ae5e11ae29258b9cb7a71eaa48879f9cb0cb19d8')
+sha512sums=('f48f67213b71a8f41c31c1eec4379ba0d2c3a22cf38d246911e223299700b368a070634a3eaa6c1860474b0025c67f75d870aa6340973e8f8c07ed40682156d2')
+b2sums=('2eda14b12705624cc9e6a671bbcb1fc38775f8a040920971fb92ecb739d28b9ae880fc5d0724d618a226158e988cafbdb0e512e35de778880a1cea7cf3de69f1')
 
 prepare() {
   mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
   cd "$pkgname-$pkgver"
+  # do not require to run with python-pytest-cov
+  sed -e '/addopts/d' -i setup.cfg
 }
 
 build() {
@@ -26,8 +29,8 @@
 
 check() {
   cd "$pkgname-$pkgver"
-  export PYTHONPATH=build:${PYTHONPATH}
-  py.test
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
 }
 
 package() {
@@ -34,7 +37,6 @@
   cd "$pkgname-$pkgver"
   python setup.py install --skip-build \
     --optimize=1 \
-    --prefix=/usr \
     --root="${pkgdir}"
-  install -vDm 644 {NEWS,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }


More information about the arch-commits mailing list