[arch-commits] Commit in python-parso/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 18:15:28 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:15:28
  Author: foutrelis
Revision: 348926

archrelease: copy trunk to community-staging-any

Added:
  python-parso/repos/community-staging-any/
  python-parso/repos/community-staging-any/PKGBUILD
    (from rev 348925, python-parso/trunk/PKGBUILD)

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

Copied: python-parso/repos/community-staging-any/PKGBUILD (from rev 348925, python-parso/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:15:28 UTC (rev 348926)
@@ -0,0 +1,36 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+_pkgbase=parso
+pkgbase=python-parso
+pkgname=('python-parso' 'python2-parso')
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="Python parser that supports error recovery and round-trip parsing for different Python versions"
+arch=('any')
+url="https://github.com/davidhalter/parso"
+license=('MIT')
+makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/davidhalter/parso/archive/v$pkgver.tar.gz")
+md5sums=('e44d9278977cc50e66eeffe29682579a')
+
+check() {
+  cd "$_pkgbase-$pkgver"
+  pytest test
+}
+
+package_python-parso() {
+  depends=('python')
+  cd "$_pkgbase-$pkgver"
+  python3 setup.py install --root="$pkgdir/" --optimize=1
+
+  install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-parso() {
+  depends=('python2')
+  cd "$_pkgbase-$pkgver"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+
+  install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list