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

Chih-Hsuan Yen yan12125 at archlinux.org
Tue Sep 24 15:13:07 UTC 2019


    Date: Tuesday, September 24, 2019 @ 15:13:07
  Author: yan12125
Revision: 511670

upgpkg: python-cbor 1.0.0-2

* Get rid of hard-coded Python version; preparing for Python 3.8
* Add a note for the excluded test

Modified:
  python-cbor/trunk/PKGBUILD

----------+
 PKGBUILD |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-24 14:25:09 UTC (rev 511669)
+++ PKGBUILD	2019-09-24 15:13:07 UTC (rev 511670)
@@ -2,7 +2,7 @@
 
 pkgname=python-cbor
 pkgver=1.0.0
-pkgrel=1
+pkgrel=2
 # The commit that bumps cbor/VERSION.py to 1.0.0
 _commit=b3af679e7cf3e12d50acb83c3c591fc5db9a658d
 pkgdesc='CBOR rfc7049 for Python'
@@ -27,7 +27,9 @@
 
 check() {
   cd cbor_py-$_commit
-  PYTHONPATH=build/lib.linux-$CARCH-3.7 pytest -k 'not test_sortkeys'
+  pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
+  # test_sortkeys is broken https://github.com/brianolson/cbor_py/issues/6
+  PYTHONPATH=build/lib.linux-$CARCH-$pyver pytest -k 'not test_sortkeys'
 }
 
 package() {


More information about the arch-commits mailing list