From 57af2fcc7a7e6cdb818d23afe9ec3101850af14d1d4151779bd9587beb043b68 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Sat, 2 Nov 2024 07:08:35 +0000 Subject: [PATCH] - Add patch no-lib2to3.patch: * Do not attempt to use lib2to3 in a doctest. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ubelt?expand=0&rev=12 --- no-lib2to3.patch | 12 ++++++++++++ python-ubelt.changes | 6 ++++++ python-ubelt.spec | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 no-lib2to3.patch diff --git a/no-lib2to3.patch b/no-lib2to3.patch new file mode 100644 index 0000000..0bed993 --- /dev/null +++ b/no-lib2to3.patch @@ -0,0 +1,12 @@ +Index: ubelt-1.3.6/ubelt/util_import.py +=================================================================== +--- ubelt-1.3.6.orig/ubelt/util_import.py ++++ ubelt-1.3.6/ubelt/util_import.py +@@ -329,7 +329,6 @@ def import_module_from_name(modname): + >>> import sys + >>> modname_list = [ + >>> 'pickletools', +- >>> 'lib2to3.fixes.fix_apply', + >>> ] + >>> #assert not any(m in sys.modules for m in modname_list) + >>> modules = [ub.import_module_from_name(modname) for modname in modname_list] diff --git a/python-ubelt.changes b/python-ubelt.changes index 35a226b..4bbf06d 100644 --- a/python-ubelt.changes +++ b/python-ubelt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Nov 2 07:07:46 UTC 2024 - Steve Kowalik + +- Add patch no-lib2to3.patch: + * Do not attempt to use lib2to3 in a doctest. + ------------------------------------------------------------------- Mon Aug 19 07:08:41 UTC 2024 - Dirk Müller diff --git a/python-ubelt.spec b/python-ubelt.spec index 24ad1ea..d8bbcf7 100644 --- a/python-ubelt.spec +++ b/python-ubelt.spec @@ -23,6 +23,8 @@ Summary: Python utility belt containing simple tools License: Apache-2.0 URL: https://github.com/Erotemic/ubelt Source: https://github.com/Erotemic/ubelt/archive/refs/tags/v%{version}.tar.gz#/ubelt-%{version}-gh.tar.gz +# PATCH-FIX-OPENSUSE Do not mention lib2to3 in a doctest +Patch0: no-lib2to3.patch BuildRequires: %{python_module numpy} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest}