[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

Evangelos Foutras foutrelis at gemini.archlinux.org
Mon Dec 6 22:04:08 UTC 2021


    Date: Monday, December 6, 2021 @ 22:04:08
  Author: foutrelis
Revision: 1065404

Fix tests with Python 3.10

Modified:
  python-pytest/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-06 22:03:18 UTC (rev 1065403)
+++ PKGBUILD	2021-12-06 22:04:08 UTC (rev 1065404)
@@ -18,9 +18,12 @@
               'lsof' 'python-asynctest' 'python-decorator' 'python-docutils'
               'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
               'python-pytest-xdist' 'python-twisted')
-source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz")
-sha256sums=('131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89')
-b2sums=('9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70')
+source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz"
+        $pkgname-python310.patch::https://github.com/pytest-dev/pytest/commit/51293de324fc.patch)
+sha256sums=('131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89'
+            '5c359d371c1fcca505c16514cc9881458957cdbdf729a16ed6e96885f9e34b23')
+b2sums=('9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70'
+        '81025ccc1ea8b49470612b5724b38b57be367f4f8b981f42d64245b57fb3e8ef8b798088a7b61f8d7a07b0c5a787b101fc2fee38a83ea3a573bf9bb851e6e8e7')
 
 # Remove dep on setuptools_scm and workaround test failures
 prepare() {
@@ -30,6 +33,9 @@
   sed -i '/setuptools-scm\|wheel/d
   /\[tool.setuptools_scm\]/,/^$/d
   /_pytest.warning_types.PytestUnknownMarkWarning/a \    "ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning",' pyproject.toml
+
+  # https://github.com/pytest-dev/pytest/issues/8663
+  sed 's/pytester/testdir/' ../$pkgname-python310.patch | patch -Np1
 }
 
 build() {



More information about the arch-commits mailing list