14
0
forked from pool/python-ubelt

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
This commit is contained in:
2025-01-13 13:24:02 +00:00
committed by Git OBS Bridge
parent 57af2fcc7a
commit f89da0b532
5 changed files with 22 additions and 19 deletions

View File

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

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Mon Jan 13 12:39:23 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <steven.kowalik@suse.com>

View File

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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13114243af0e7d58029c7a38d09163b9d9d7f375c1c4fb2c29ffa5825b8de44a
size 370002

3
ubelt-1.3.7-gh.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6307f1bb29fc1615000e5ff32fef47c9c18435f2a530f6df93ab8fcb5981cba4
size 374636