Date: Tuesday, April 25, 2023 @ 04:54:19
  Author: polyzen
Revision: 1448602

upgpkg: python-stack-data 0.6.2-4: Temporarily patch out typeguard checkdep

Added:
  python-stack-data/trunk/0002-Patch-out-typeguard.patch
Modified:
  python-stack-data/trunk/PKGBUILD

--------------------------------+
 0002-Patch-out-typeguard.patch |   41 +++++++++++++++++++++++++++++++++++++++
 PKGBUILD                       |   19 +++++++++++-------
 2 files changed, 53 insertions(+), 7 deletions(-)

Added: 0002-Patch-out-typeguard.patch
===================================================================
--- 0002-Patch-out-typeguard.patch                              (rev 0)
+++ 0002-Patch-out-typeguard.patch      2023-04-25 04:54:19 UTC (rev 1448602)
@@ -0,0 +1,41 @@
+From: Gordon Ball <[email protected]>
+Date: Thu, 13 Jan 2022 16:36:36 +0000
+Subject: Patch out typeguard
+
+The available version is too old for the usage here
+---
+ setup.cfg         | 4 ++--
+ tests/__init__.py | 5 -----
+ 2 files changed, 2 insertions(+), 7 deletions(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 05f3dda..eec7437 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -29,10 +29,10 @@ install_requires =
+ 
+ setup_requires = setuptools>=44; setuptools_scm[toml]>=3.4.3
+ include_package_data = True
+-tests_require = pytest; typeguard; pygments; littleutils
++tests_require = pytest; pygments; littleutils
+ 
+ [options.extras_require]
+-tests = pytest; typeguard; pygments; littleutils; cython
++tests = pytest; pygments; littleutils; cython
+ 
+ [coverage:run]
+ relative_files = True
+diff --git a/tests/__init__.py b/tests/__init__.py
+index fe28111..5f06412 100644
+--- a/tests/__init__.py
++++ b/tests/__init__.py
+@@ -1,9 +1,4 @@
+-import os
+-
+ import pyximport
+-from typeguard.importhook import install_import_hook
+ 
+ pyximport.install(language_level=3)
+ 
+-if not os.environ.get("STACK_DATA_SLOW_TESTS"):
+-    install_import_hook(["stack_data"])

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-25 03:26:36 UTC (rev 1448601)
+++ PKGBUILD    2023-04-25 04:54:19 UTC (rev 1448602)
@@ -3,7 +3,7 @@
 _name=stack_data
 pkgname=python-stack-data
 pkgver=0.6.2
-pkgrel=3
+pkgrel=4
 pkgdesc='Extract data from python stack frames and tracebacks for informative 
displays'
 arch=('any')
 url=https://github.com/alexmojaki/stack_data
@@ -11,18 +11,23 @@
 depends=('python-asttokens' 'python-executing' 'python-pure-eval')
 makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
              'python-wheel')
-checkdepends=('cython' 'python-littleutils' 'python-pygments' 'python-pytest'
-              'python-typeguard')
+checkdepends=('cython' 'python-littleutils' 'python-pygments' 'python-pytest')
 
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz";
-        
'stack_data-update_test_pygments_example.patch::https://github.com/alexmojaki/stack_data/commit/4fbe4c0aec04ac818070d5963b0249a5592c1b53.patch')
+        
"$pkgname-update_test_pygments_example.patch::$url/commit/4fbe4c0aec04ac818070d5963b0249a5592c1b53.patch"
+        '0002-Patch-out-typeguard.patch')
 sha256sums=('32d2dd0376772d01b6cb9fc996f3c8b57a357089dec328ed4b6553d037eaf815'
-            'e8946290f32855d91d64d4173fd254dceb9c1b6c397393b52e20fdccd867872a')
+            'e8946290f32855d91d64d4173fd254dceb9c1b6c397393b52e20fdccd867872a'
+            '35bd4d2b2227dd045185a9e979c067cfc1828197845633d23d670da59e8133a0')
 
b2sums=('1344b48a597af3df3a00036412c513faa97824f183a4337566a1a8efafcb6ec6597cf5fad3c6d532e8df2173900bdf87d0071efc66a801bd93743a92619fb5dd'
-        
'ed6bedb214477fe99448ab7379834c7c49f932c3393d34023839951011279731bf6a310e3848a1ac8706573f2758697f25c4eaaf06aa704f10f1c31df5ac2254')
+        
'ed6bedb214477fe99448ab7379834c7c49f932c3393d34023839951011279731bf6a310e3848a1ac8706573f2758697f25c4eaaf06aa704f10f1c31df5ac2254'
+        
'9a996a0ff97930777fffd8f2626c0403098d0d3b211115c132e045b77e5506577aa392b94c3fb285be35a274455ec19eca9d1bf265bd29bc1e2e0cdd6cfb2fe5')
 
 prepare() {
   cd $_name-$pkgver
-  patch --forward --strip=1 
--input=../stack_data-update_test_pygments_example.patch
+  patch --forward --strip=1 
--input=../$pkgname-update_test_pygments_example.patch
+
+  # Incompatible with typeguard >=3 
https://github.com/alexmojaki/stack_data/issues/50
+  patch --forward --strip=1 --input=../0002-Patch-out-typeguard.patch
 }
 
 build() {

Reply via email to