diff --git a/0001-Rely-on-importlib.resources-traversable-API.-Fixes-D.patch b/0001-Rely-on-importlib.resources-traversable-API.-Fixes-D.patch deleted file mode 100644 index 96fa974ecb51810a23676e8eeed69494a49d48f1..0000000000000000000000000000000000000000 --- a/0001-Rely-on-importlib.resources-traversable-API.-Fixes-D.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 52e37726b09f4c390291b9533e3a84816d208702 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= -Date: Wed, 4 May 2022 11:47:32 +0200 -Subject: [PATCH] Rely on importlib.resources traversable API. Fixes - DeprecationWarning. - ---- - jaraco/text/__init__.py | 6 +++--- - setup.cfg | 2 +- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/jaraco/text/__init__.py b/jaraco/text/__init__.py -index 7540296..f038c74 100644 ---- a/jaraco/text/__init__.py -+++ b/jaraco/text/__init__.py -@@ -8,9 +8,9 @@ import functools - import six - - try: -- from importlib import resources -+ from importlib.resources import files # type: ignore - except ImportError: # pragma: nocover -- import importlib_resources as resources -+ from importlib_resources import files # type: ignore - - from jaraco.functools import compose, method_cache - -@@ -229,7 +229,7 @@ def unwrap(s): - return '\n'.join(cleaned) - - --lorem_ipsum = resources.read_text(__name__, 'Lorem ipsum.txt') -+lorem_ipsum = str = files(__name__).joinpath('Lorem ipsum.txt').read_text() - - - class Splitter(object): -diff --git a/setup.cfg b/setup.cfg -index 16a996d..39303e1 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -23,7 +23,7 @@ python_requires = >=2.7 - install_requires = - jaraco.functools - six -- importlib_resources; python_version < "3.7" -+ importlib_resources; python_version < "3.9" - setup_requires = setuptools_scm >= 1.15.0 - - [options.extras_require] --- -2.33.1 - diff --git a/python-jaraco-text.spec b/python-jaraco-text.spec index 9e6cc06febf8098fe5c634882b82fbdac771c1ca..37e0e4b975c7b349bf1e03deca8e61dd61d50f1b 100644 --- a/python-jaraco-text.spec +++ b/python-jaraco-text.spec @@ -6,12 +6,11 @@ Summary: Module for text manipulation Name: python-%{pkg_name} -Version: 3.2.0 -Release: 5%{?dist} +Version: 3.6.0 +Release: 1%{?dist} License: MIT URL: https://github.com/jaraco/jaraco.text Source0: %{pypi_source} -Patch0001: 0001-Rely-on-importlib.resources-traversable-API.-Fixes-D.patch BuildArch: noarch @@ -79,6 +78,9 @@ install jaraco/text/Lorem\ ipsum.txt %{buildroot}%{python3_sitelib}/jaraco/text/ %endif %changelog +* Fri Sep 22 2023 jackeyji - 3.6.0-1 +- upgrade to 3.6.0 + * Tue Sep 19 2023 OpenCloudOS Release Engineering - 3.2.0-5 - Rebuilt for python 3.11 diff --git a/sources b/sources index 42c83345316f258b452df66cd75a91d1cb494925..2597eca728ab4d18fc5d4998fcfd69039e4164a1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (jaraco.text-3.2.0.tar.gz) = 4107ef1078b44714b6ee5fb6ebd2bb7c35415debc6eaedd8bc18a70a2936cc7c7757acd7b3fac9587201ef52a25d9b29e49f2385a0a08afffb1d0c3de6ecc377 +SHA512 (jaraco.text-3.6.0.tar.gz) = 74e6f199372b62ee767fd5f5829ab636d6d87c38998d93cb4ed7dddbe53db27e5c3caf45f36f7b5690b3c12367df0c93702fac59ee99ffcb03f53e70b8b18f96