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

Rémy Oudompheng remy at archlinux.org
Sun Sep 1 19:54:04 UTC 2019


    Date: Sunday, September 1, 2019 @ 19:54:03
  Author: remy
Revision: 361469

upgpkg: python-cson 0.8-1

Upstream update, remove python2 package.

Modified:
  python-cson/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++--------------------
 1 file changed, 10 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-01 19:54:00 UTC (rev 361468)
+++ PKGBUILD	2019-09-01 19:54:03 UTC (rev 361469)
@@ -1,8 +1,7 @@
 # Maintainer: Rémy Oudompheng <remy at archlinux.org>
 
-pkgbase=python-cson
-pkgname=(python-cson python2-cson)
-pkgver=0.7
+pkgname=python-cson
+pkgver=0.8
 pkgrel=1
 pkgdesc="A Python parser for Coffeescript Object Notation (CSON)"
 arch=('any')
@@ -10,30 +9,21 @@
 license=('MIT')
 makedepends=('git'
              'python-setuptools'
-             'python2-setuptools'
-             'python-speg'
-             'python2-speg')
-source=("git://github.com/avakar/pycson.git#tag=${pkgver}")
+             'python-pytest'
+             'python-pytest-cov'
+             'python-speg')
+depends=('python' 'python-six' 'python-speg')
+_commit=d2ed07d980382e44726cf3c074957e752ef6441b
+source=("git://github.com/avakar/pycson.git#tag=${_commit}")
 sha256sums=(SKIP)
 
 check() {
   cd "$srcdir"/pycson
-  python test.py
-  python2 test.py
+  PYTHONPATH=. py.test --cov=cson --cov-report term-missing
 }
 
-package_python2-cson() {
-  depends=('python2' 'python2-six' 'python2-speg')
-
+package() {
   cd "$srcdir"/pycson
-  python2 setup.py install --root="${pkgdir}"
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python-cson() {
-  depends=('python' 'python-six' 'python-speg')
-
-  cd "$srcdir"/pycson
   python setup.py install --root="${pkgdir}"
   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }


More information about the arch-commits mailing list