14
0
forked from pool/python-ubelt

Accepting request 1220153 from devel:languages:python

- Add patch no-lib2to3.patch:
  * Do not attempt to use lib2to3 in a doctest.

OBS-URL: https://build.opensuse.org/request/show/1220153
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ubelt?expand=0&rev=5
This commit is contained in:
2024-11-02 15:11:55 +00:00
committed by Git OBS Bridge
3 changed files with 20 additions and 0 deletions

12
no-lib2to3.patch Normal file
View File

@@ -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]

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Nov 2 07:07:46 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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}