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

Antonio Rojas arojas at gemini.archlinux.org
Tue Jul 19 21:40:06 UTC 2022


    Date: Tuesday, July 19, 2022 @ 21:40:06
  Author: arojas
Revision: 1254759

archrelease: copy trunk to community-testing-any

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

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

Copied: python-parso/repos/community-testing-any/PKGBUILD (from rev 1254758, python-parso/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-07-19 21:40:06 UTC (rev 1254759)
@@ -0,0 +1,43 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+# Check compatibility with jedi on potential version bumps
+_pkgbase=parso
+pkgname=python-parso
+epoch=1
+pkgver=0.8.3
+pkgrel=1
+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')
+depends=('python')
+makedepends=('python-setuptools' 'python-sphinx')
+checkdepends=('python-pytest')
+source=(https://github.com/davidhalter/parso/archive/v$pkgver/$_pkgbase-$pkgver.tar.gz)
+sha512sums=('7874460053662d40c2cfcf0015e330e1c8201eeb07682e2079a636db553a82dc25b70b14ad0f0c82fb817f655359d695101a17f616abf9a39f49c61ae5fd49b1')
+b2sums=('8942408e27198075c92ef51f7a191cc7781eb3a5110119b91fd95f86e13ebe2fbfee11022a2bfec794150f60b3af8c4d5f324cb011703cd581c17f92232ae5bf')
+
+check() {
+  cd "$_pkgbase-$pkgver"
+  # test_python_excetion_matches broke with 3.10 due to exception formatting changes.
+  # https://github.com/davidhalter/parso/issues/192
+  pytest test -k 'not test_python_exception_matches'
+}
+
+build() {
+  cd "$_pkgbase-$pkgver"
+  python setup.py build
+  sphinx-build -b text docs docs/_build/text
+  sphinx-build -b man docs docs/_build/man
+}
+
+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:



More information about the arch-commits mailing list