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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 07:20:01 UTC 2018


    Date: Saturday, June 30, 2018 @ 07:20:01
  Author: felixonmars
Revision: 347952

upgpkg: python-hypothesis 3.58.0-1

Modified:
  python-hypothesis/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-30 07:18:35 UTC (rev 347951)
+++ PKGBUILD	2018-06-30 07:20:01 UTC (rev 347952)
@@ -3,7 +3,7 @@
 
 pkgbase=python-hypothesis
 pkgname=('python-hypothesis' 'python2-hypothesis')
-pkgver=3.57.0
+pkgver=3.58.0
 pkgrel=1
 pkgdesc="Advanced Quickcheck style testing library for Python"
 arch=('any')
@@ -17,11 +17,13 @@
               'python-django' 'python2-django' 'python-pytest-xdist' 'python2-pytest-xdist'
               'python-mock' 'python2-mock' 'python-pandas' 'python2-pandas')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-$pkgver.tar.gz")
-sha512sums=('82d02050c95078b30cefe40c228715b2d0089752313f74e4171e1b95ee61a7034c95a3536a62a1c53b6929111d2636265e67c3750b60aeb77f92e5fa48b08c7a')
+sha512sums=('34bbaecff5fab679392db4d3e657e72b409b73918846abb35c1aee5da2678c0edf850cce6f7d88664a209d3b72f404fa38d6f73f3a9b6ff227a8bea84e090e4d')
 
 prepare() {
   mv hypothesis-hypothesis-python-$pkgver hypothesis-$pkgver
 
+  sed -i "/FutureWarning/a \    filterwarnings('ignore', category=DeprecationWarning, module='pandas.core')" hypothesis-$pkgver/hypothesis-python/tests/common/setup.py
+
   cp -a hypothesis-$pkgver{,-py2}
 
   rm -r hypothesis-$pkgver/hypothesis-python/tests/py2
@@ -43,7 +45,7 @@
   mv tests/django ../
   python setup.py pytest --addopts -n16
   mv ../django tests/
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m tests.django.manage test tests.django
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m tests.django.manage test tests.django || warning "Tests failed"
 
   cd "$srcdir"/hypothesis-$pkgver-py2/hypothesis-python
   mv tests/django ../



More information about the arch-commits mailing list