From b6c73ca481d5be60969eee209f4f8a846a942f3815ed557ee2b783e422aaead7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 16 Jan 2025 12:26:54 +0000 Subject: [PATCH] Accepting request 1238230 from home:mcalabkova:branches:devel:languages:python - Add click818.patch to fix tests with new click OBS-URL: https://build.opensuse.org/request/show/1238230 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-extra?expand=0&rev=5 --- click818.patch | 24 ++++++++++++++++++++++++ python-click-extra.changes | 5 +++++ python-click-extra.spec | 4 +++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 click818.patch diff --git a/click818.patch b/click818.patch new file mode 100644 index 0000000..9b9ae71 --- /dev/null +++ b/click818.patch @@ -0,0 +1,24 @@ +From ab9cff085aefff5787a2c9c7def8e71c9d3ed379 Mon Sep 17 00:00:00 2001 +From: Kevin Deldycke +Date: Fri, 3 Jan 2025 08:47:19 +0400 +Subject: [PATCH] Fix 8.1.8 tests + +--- + pyproject.toml | 5 +---- + tests/test_parameters.py | 2 +- + uv.lock | 2 +- + 3 files changed, 3 insertions(+), 6 deletions(-) + +diff --git a/tests/test_parameters.py b/tests/test_parameters.py +index f064b448d..032c9cffd 100644 +--- a/tests/test_parameters.py ++++ b/tests/test_parameters.py +@@ -407,7 +407,7 @@ def show_params(): + table = [ + ( + "show-params.help", +- "click.core.Option", ++ "click.decorators.HelpOption", + "--help", + "click.types.BoolParamType", + "bool", diff --git a/python-click-extra.changes b/python-click-extra.changes index 3875186..a5f2062 100644 --- a/python-click-extra.changes +++ b/python-click-extra.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 16 11:19:15 UTC 2025 - Markéta Machová + +- Add click818.patch to fix tests with new click + ------------------------------------------------------------------- Thu Nov 14 09:06:16 UTC 2024 - Johannes Kastl diff --git a/python-click-extra.spec b/python-click-extra.spec index b7518b4..53f1cbb 100644 --- a/python-click-extra.spec +++ b/python-click-extra.spec @@ -1,7 +1,7 @@ # # spec file for package python-click-extra # -# 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 @@ -25,6 +25,8 @@ Summary: Drop-in replacement for Click to make user-friendly and colorful License: GPL-2.0-or-later URL: https://github.com/kdeldycke/click-extra Source: https://github.com/kdeldycke/click-extra/archive/v%{version}.tar.gz#/%{module_name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/kdeldycke/click-extra/commit/ab9cff085aefff5787a2c9c7def8e71c9d3ed379 Fix 8.1.8 tests +Patch: click818.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core >= 1.0.0} BuildRequires: %{python_module setuptools}