[arch-commits] Commit in python-parso/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:50:42 UTC 2019
Date: Friday, October 25, 2019 @ 15:50:42
Author: felixonmars
Revision: 519221
archrelease: copy trunk to community-staging-any
Added:
python-parso/repos/community-staging-any/
python-parso/repos/community-staging-any/PKGBUILD
(from rev 519219, python-parso/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-parso/repos/community-staging-any/PKGBUILD (from rev 519219, python-parso/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:50:42 UTC (rev 519221)
@@ -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.5.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=('49c6ee6f308985626f0f19874d4aac45')
+
+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