aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-parso/APKBUILD
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-03-17 22:14:56 +0000
committerAndy Postnikov <apostnikov@gmail.com>2019-03-24 01:06:25 +0200
commit811d9b183c7fdfacb64f917134353f1faf492fa6 (patch)
tree8e855ab9f3c4aba37c4b883a4b0388fd9ee91ad8 /testing/py-parso/APKBUILD
parenta06ffff95a8af09252e8acb149121c0707b2d54e (diff)
downloadaports-811d9b183c7fdfacb64f917134353f1faf492fa6.tar.gz
aports-811d9b183c7fdfacb64f917134353f1faf492fa6.tar.bz2
aports-811d9b183c7fdfacb64f917134353f1faf492fa6.tar.xz
testing/parso: new aport
py-jedi uses paxo for its test-suite
Diffstat (limited to 'testing/py-parso/APKBUILD')
-rw-r--r--testing/py-parso/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/py-parso/APKBUILD b/testing/py-parso/APKBUILD
new file mode 100644
index 0000000000..d579e13e81
--- /dev/null
+++ b/testing/py-parso/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
+# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
+pkgname=py-parso
+pkgver=0.3.4
+pkgrel=0
+pkgdesc="a Python parser that supports error recovery and round-trip parsing for different Python versions"
+url="https://pypi.org/project/parso/"
+arch="noarch"
+license="MIT"
+makedepends="python3-dev py3-setuptools"
+checkdepends="py3-tox"
+depends="python3"
+source="https://files.pythonhosted.org/packages/source/p/parso/parso-$pkgver.tar.gz"
+builddir="$srcdir/parso-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+_tox_pyver() {
+ local _pyver=$(python3 -c 'import sys; print(str(sys.version_info[0])+str(sys.version_info[1]))')
+ echo py$_pyver
+}
+
+check() {
+ tox -e $(_tox_pyver)
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="92981e3a25365a43d6bbb4ca5d0a83b9c9c688dcebf45ea3df8928d7aedf041b25b923824cec68adb9d54f6628a2f601c2af7e698ff83500635e2fc84314d8fd parso-0.3.4.tar.gz"