[arch-commits] Commit in python-parso/trunk (PKGBUILD)
Johannes Löthberg
demize at gemini.archlinux.org
Thu Dec 2 18:25:02 UTC 2021
Date: Thursday, December 2, 2021 @ 18:25:02
Author: demize
Revision: 1062131
Apply patch to fix test failures with 3.10
Modified:
python-parso/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-02 18:24:42 UTC (rev 1062130)
+++ PKGBUILD 2021-12-02 18:25:02 UTC (rev 1062131)
@@ -14,13 +14,23 @@
depends=('python')
makedepends=('python-setuptools' 'python-sphinx')
checkdepends=('python-pytest')
-source=(https://github.com/davidhalter/parso/archive/v$pkgver/$_pkgbase-$pkgver.tar.gz)
-sha512sums=('a90810ad89301d804d215392ed77593b015f13bc7ef8512302a8893b314a9e74c15e2aaa77157c8595a134d3481e8115f306f9628835271478837ec6f19e645f')
-b2sums=('f4e86ae55140adc9bbfdd34a8044e7fdfbf9d318a6385ac5feedc07127061943c2d690581af144f158846e3bf6f82124046c7e625369a4055ab92a54f9210c49')
+source=(https://github.com/davidhalter/parso/archive/v$pkgver/$_pkgbase-$pkgver.tar.gz
+ 7652d3904be3fd5513581a8250d95df31a8cef06.patch::https://github.com/davidhalter/parso/commit/7652d3904be3fd5513581a8250d95df31a8cef06.patch)
+sha512sums=('a90810ad89301d804d215392ed77593b015f13bc7ef8512302a8893b314a9e74c15e2aaa77157c8595a134d3481e8115f306f9628835271478837ec6f19e645f'
+ 'a60f8e1030e08b18251dac49e81a9e9cfac5e367af44fae94c4ef19ba857311df49264b2c3327d4fdc17005f03c0d71d67a4fbb907627a96869ed18ec0d25bfa')
+b2sums=('f4e86ae55140adc9bbfdd34a8044e7fdfbf9d318a6385ac5feedc07127061943c2d690581af144f158846e3bf6f82124046c7e625369a4055ab92a54f9210c49'
+ '767f63dcb6a8368a94162bd1e30614d19ae234b0554a00ef2821260b0992eb7f3ca2d8342571822e5bc8afd5c81b68f538de20ac976414f8f9878a82b4ecd10c')
+prepare() {
+ cd "$_pkgbase-$pkgver"
+ patch -p1 <"$srcdir"/7652d3904be3fd5513581a8250d95df31a8cef06.patch
+}
+
check() {
cd "$_pkgbase-$pkgver"
- pytest test
+ # 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() {
More information about the arch-commits
mailing list