[arch-commits] Commit in python-cbor/repos/community-x86_64 (PKGBUILD PKGBUILD)

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


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

archrelease: copy trunk to community-x86_64

Added:
  python-cbor/repos/community-x86_64/PKGBUILD
    (from rev 511670, python-cbor/trunk/PKGBUILD)
Deleted:
  python-cbor/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 38 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-24 15:13:07 UTC (rev 511670)
+++ PKGBUILD	2019-09-24 15:13:24 UTC (rev 511671)
@@ -1,36 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-cbor
-pkgver=1.0.0
-pkgrel=1
-# The commit that bumps cbor/VERSION.py to 1.0.0
-_commit=b3af679e7cf3e12d50acb83c3c591fc5db9a658d
-pkgdesc='CBOR rfc7049 for Python'
-arch=(x86_64)
-url='https://github.com/brianolson/cbor_py'
-license=(Apache)
-makedepends=(python-setuptools)
-depends=(python)
-checkdepends=(python-pytest)
-source=("$pkgname-$pkgver.tar.gz"::"https://github.com/brianolson/cbor_py/archive/$_commit.tar.gz")
-sha256sums=('d9211361e37363dfbf54fcb21d23e610aa25679609044844305c2ee5b80b78d9')
-
-prepare() {
-  cd cbor_py-$_commit
-  sed -i 's#logger.warn(#logger.warning(#' cbor/tests/*.py
-}
-
-build() {
-  cd cbor_py-$_commit
-  python setup.py build
-}
-
-check() {
-  cd cbor_py-$_commit
-  PYTHONPATH=build/lib.linux-$CARCH-3.7 pytest -k 'not test_sortkeys'
-}
-
-package() {
-  cd cbor_py-$_commit
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-cbor/repos/community-x86_64/PKGBUILD (from rev 511670, python-cbor/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-24 15:13:24 UTC (rev 511671)
@@ -0,0 +1,38 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-cbor
+pkgver=1.0.0
+pkgrel=2
+# The commit that bumps cbor/VERSION.py to 1.0.0
+_commit=b3af679e7cf3e12d50acb83c3c591fc5db9a658d
+pkgdesc='CBOR rfc7049 for Python'
+arch=(x86_64)
+url='https://github.com/brianolson/cbor_py'
+license=(Apache)
+makedepends=(python-setuptools)
+depends=(python)
+checkdepends=(python-pytest)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/brianolson/cbor_py/archive/$_commit.tar.gz")
+sha256sums=('d9211361e37363dfbf54fcb21d23e610aa25679609044844305c2ee5b80b78d9')
+
+prepare() {
+  cd cbor_py-$_commit
+  sed -i 's#logger.warn(#logger.warning(#' cbor/tests/*.py
+}
+
+build() {
+  cd cbor_py-$_commit
+  python setup.py build
+}
+
+check() {
+  cd cbor_py-$_commit
+  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() {
+  cd cbor_py-$_commit
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}


More information about the arch-commits mailing list