From 9ceb9489677997010bdb5553a5eb9d54c338a127b5c81cd370995fca981e2b07 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 17 Sep 2025 15:54:07 +0000 Subject: [PATCH] - Add remove_rich_constraint.patch remove the constraint on rich < 12.5, the tests also succeed with rich 14.0 https://github.com/pycontribs/enrich/issues/40 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-enrich?expand=0&rev=10 --- python-enrich.changes | 5 +++++ python-enrich.spec | 5 ++++- remove_rich_constraint.patch | 5 +++++ remove_setuptools_scm.patch | 4 ++-- 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 remove_rich_constraint.patch diff --git a/python-enrich.changes b/python-enrich.changes index a12131f..b48b0e8 100644 --- a/python-enrich.changes +++ b/python-enrich.changes @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Sep 17 15:17:44 UTC 2025 - Sebastian Wagner + +- Add remove_rich_constraint.patch + remove the constraint on rich < 12.5, the tests also succeed with rich 14.0 https://github.com/pycontribs/enrich/issues/40 +------------------------------------------------------------------- Mon Sep 8 20:48:59 UTC 2025 - Sebastian Wagner - Update to version 1.3.0: diff --git a/python-enrich.spec b/python-enrich.spec index b2e4511..3f31e2f 100644 --- a/python-enrich.spec +++ b/python-enrich.spec @@ -24,7 +24,10 @@ Summary: Extends the python-rich library functionality License: MIT URL: https://github.com/pycontribs/enrich Source0: https://github.com/pycontribs/enrich/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE remove_setuptools_scm.patch -- remove dependency on setuptools-scm Patch0: remove_setuptools_scm.patch +# PATCH-FIX-UPSTREAM remove_rich_constraint.patch -- remove the constraint on rich < 12.5, the tests also succeed with rich 14.0 https://github.com/pycontribs/enrich/issues/40 +Patch1: remove_rich_constraint.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} @@ -42,7 +45,7 @@ Extends the python-rich library functionality with a set of changes that were not accepted to rich itself. %prep -%autosetup -n enrich-%{version} +%autosetup -n enrich-%{version} -p1 sed -i 's/__VERSION__/%{version}/' pyproject.toml %build diff --git a/remove_rich_constraint.patch b/remove_rich_constraint.patch new file mode 100644 index 0000000..f0ec54c --- /dev/null +++ b/remove_rich_constraint.patch @@ -0,0 +1,5 @@ +--- a/.config/requirements.in 2024-06-14 14:49:49.000000000 +0200 ++++ b/.config/requirements.in 2025-09-17 17:15:41.785371328 +0200 +@@ -1 +1 @@ +-rich>=10.0.0,<12.5.0 # https://github.com/pycontribs/enrich/issues/40 ++rich>=10.0.0 diff --git a/remove_setuptools_scm.patch b/remove_setuptools_scm.patch index a461b6b..880254b 100644 --- a/remove_setuptools_scm.patch +++ b/remove_setuptools_scm.patch @@ -1,5 +1,5 @@ ---- pyproject.toml 2024-06-14 14:49:49.000000000 +0200 -+++ pyproject.toml 2025-09-08 22:56:54.944216329 +0200 +--- a/pyproject.toml 2024-06-14 14:49:49.000000000 +0200 ++++ b/pyproject.toml 2025-09-08 22:56:54.944216329 +0200 @@ -1,14 +1,14 @@ [build-system] requires = [