Date: Sunday, August 30, 2020 @ 09:58:44 Author: anthraxx Revision: 692593
upgpkg: python-parso 1:0.7.1-1: downgrade due to incompatibility issues - FS#67575 Incompatibility with repo packages like jedi, downgrade until the new parso API is properly supported. Modified: python-parso/trunk/PKGBUILD ----------+ PKGBUILD | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-08-30 09:56:12 UTC (rev 692592) +++ PKGBUILD 2020-08-30 09:58:44 UTC (rev 692593) @@ -1,8 +1,11 @@ # Maintainer: Jelle van der Waa <je...@vdwaa.nl> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Check compatibility with jedi on potential version bumps _pkgbase=parso pkgname=python-parso -pkgver=0.8.0 +epoch=1 +pkgver=0.7.1 pkgrel=1 pkgdesc="Python parser that supports error recovery and round-trip parsing for different Python versions" arch=('any') @@ -9,10 +12,11 @@ url="https://github.com/davidhalter/parso" license=('MIT') depends=('python') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python-sphinx') checkdepends=('python-pytest') -source=("$pkgname-$pkgver.tar.gz::https://github.com/davidhalter/parso/archive/v$pkgver.tar.gz") -sha512sums=('fe9d1c46cb128d6af9c45f333e49475da795c1ed67572891f4daf08af620814b9db18469be11f771869e0f44acea9446e1419067e1b72affc1cb669a277d6a2c') +source=(https://github.com/davidhalter/parso/archive/v$pkgver/$pkgname-$pkgver.tar.gz.tar.gz) +sha512sums=('318969a7a941c4a0948e58643b07b6f5c446ea166b3a8e44a556f0677ec9a36d7dc8c6d37ca7bce3f8276ee3d7144e22fbaaeac90c738fb90f7e94a0cf8abf7d') +b2sums=('1e47c1dd6846d01aa5820d7cedc3eafcf12ea0d4a2e95fa3f54429633b1c12dc39a4abe237fa46eb629408006777bd1f512cf878025b55119568ac19729b8c19') check() { cd "$_pkgbase-$pkgver" @@ -19,9 +23,19 @@ pytest test } -package_python-parso() { +build() { cd "$_pkgbase-$pkgver" - python3 setup.py install --root="$pkgdir/" --optimize=1 + python setup.py build + sphinx-build -b text docs docs/_build/text + sphinx-build -b man docs docs/_build/man +} - install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +package() { + cd "$_pkgbase-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm 644 CHANGELOG.rst README.rst docs/_build/text/*.txt -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm 644 docs/_build/man/parso.1 "$pkgdir/usr/share/man/man1/$pkgname.1" } + +# vim: ts=2 sw=2 et: