From f89da0b5326e974436ae8abbac9d889b7b378f4c33e433258f14143c0f424620 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 13 Jan 2025 13:24:02 +0000 Subject: [PATCH] Accepting request 1237402 from home:glaubitz:branches:devel:languages:python - Update to 1.3.7 * Added `requestkw` to `ub.download`. * Minor test issues. * `ub.IndexableWalker.diff` for empty inputs * Bug in `memoize_method` which could produce incorrect results if methods from different instances are assigned to variables. * Rare error in `test_copy_directory_cases` test due to list sorting. * Added module name printout to `schedule_deprecation` * `ub.hash_data` now supports `datatime.datetime`, `datetime.date`, `decimal.Decimal` objects. - Drop no-lib2to3.patch, fixed upstream - Use Python 3.11 on SLE-15 by default OBS-URL: https://build.opensuse.org/request/show/1237402 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ubelt?expand=0&rev=14 --- no-lib2to3.patch | 12 ------------ python-ubelt.changes | 16 ++++++++++++++++ python-ubelt.spec | 7 +++---- ubelt-1.3.6-gh.tar.gz | 3 --- ubelt-1.3.7-gh.tar.gz | 3 +++ 5 files changed, 22 insertions(+), 19 deletions(-) delete mode 100644 no-lib2to3.patch delete mode 100644 ubelt-1.3.6-gh.tar.gz create mode 100644 ubelt-1.3.7-gh.tar.gz diff --git a/no-lib2to3.patch b/no-lib2to3.patch deleted file mode 100644 index 0bed993..0000000 --- a/no-lib2to3.patch +++ /dev/null @@ -1,12 +0,0 @@ -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 4bbf06d..6e6d1d0 100644 --- a/python-ubelt.changes +++ b/python-ubelt.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon Jan 13 12:39:23 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.3.7 + * Added `requestkw` to `ub.download`. + * Minor test issues. + * `ub.IndexableWalker.diff` for empty inputs + * Bug in `memoize_method` which could produce incorrect results + if methods from different instances are assigned to variables. + * Rare error in `test_copy_directory_cases` test due to list sorting. + * Added module name printout to `schedule_deprecation` + * `ub.hash_data` now supports `datatime.datetime`, `datetime.date`, + `decimal.Decimal` objects. +- Drop no-lib2to3.patch, fixed upstream +- Use Python 3.11 on SLE-15 by default + ------------------------------------------------------------------- Sat Nov 2 07:07:46 UTC 2024 - Steve Kowalik diff --git a/python-ubelt.spec b/python-ubelt.spec index d8bbcf7..de9b0b4 100644 --- a/python-ubelt.spec +++ b/python-ubelt.spec @@ -1,7 +1,7 @@ # # spec file for package python-ubelt # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,15 +16,14 @@ # +%{?sle15_python_module_pythons} Name: python-ubelt -Version: 1.3.6 +Version: 1.3.7 Release: 0 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} diff --git a/ubelt-1.3.6-gh.tar.gz b/ubelt-1.3.6-gh.tar.gz deleted file mode 100644 index cf517f5..0000000 --- a/ubelt-1.3.6-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:13114243af0e7d58029c7a38d09163b9d9d7f375c1c4fb2c29ffa5825b8de44a -size 370002 diff --git a/ubelt-1.3.7-gh.tar.gz b/ubelt-1.3.7-gh.tar.gz new file mode 100644 index 0000000..980d875 --- /dev/null +++ b/ubelt-1.3.7-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6307f1bb29fc1615000e5ff32fef47c9c18435f2a530f6df93ab8fcb5981cba4 +size 374636