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

Eli Schwartz eschwartz at archlinux.org
Tue Jun 9 22:20:38 UTC 2020


    Date: Tuesday, June 9, 2020 @ 22:20:37
  Author: eschwartz
Revision: 641075

upgpkg: python-regex 2020.6.8-1: upstream release

Adapt once again to testsuite changes. This time test_main() is broken. Give up
and use python -m unittest as the launcher (with the caveat that on python2 it
doesn't accept filenames).

The good news is python3 no longer unconditionally imports the internal test
module, so, no more checkdepends.

Modified:
  python-regex/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-09 22:03:04 UTC (rev 641074)
+++ PKGBUILD	2020-06-09 22:20:37 UTC (rev 641075)
@@ -6,7 +6,7 @@
 _pkgbase=regex
 pkgbase=python-regex
 pkgname=('python-regex' 'python2-regex')
-pkgver=2020.5.14
+pkgver=2020.6.8
 pkgrel=1
 pkgdesc="Alternative python regular expression module."
 arch=('x86_64')
@@ -13,12 +13,10 @@
 url="https://bitbucket.org/mrabarnett/mrab-regex"
 license=('Python')
 makedepends=('python-setuptools' 'python2-setuptools')
-# https://bitbucket.org/mrabarnett/mrab-regex/issues/366/tests-use-internal-test-module-instead-of
-checkdepends=('python-tests')
 options=(!emptydirs)
 source=("https://files.pythonhosted.org/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
-sha256sums=('ce450ffbfec93821ab1fea94779a8440e10cf63819be6e176eb1973a6017aff5')
-b2sums=('bf846ce6565053e2da25fb250b2f28c5219ca27acc8ad976c180db52ce85737e4b30919ef1f6b515690d7f1333313f251bc8e76bbfaf1b9e154b3752e6f2255b')
+sha256sums=('e9b64e609d37438f7d6e68c2546d2cb8062f3adb27e6336bc129b51be20773ac')
+b2sums=('7b773b72496e7943c3c79b9e4747994a91781ba0b5f85a41ffc1282054eb600710f32617338b6e2130026f2aeb69ba4d625feb202b6b916238fc1442e8f698e8')
 
 build() {
   cd "regex-${pkgver}"
@@ -31,11 +29,11 @@
   cd "regex-${pkgver}"
 
   pushd build/lib.linux-${CARCH}-3*/
-  python -c 'from regex.test_regex import test_main; test_main()'
+  python -m unittest regex/test_regex.py
   popd
 
   pushd build/lib.linux-${CARCH}-2*/
-  python2 -c 'from regex.test_regex import test_main; test_main()'
+  python2 -m unittest regex.test_regex
   popd
 }
 



More information about the arch-commits mailing list