15
0

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
This commit is contained in:
2025-01-16 12:26:54 +00:00
committed by Git OBS Bridge
parent 3561e7af95
commit b6c73ca481
3 changed files with 32 additions and 1 deletions

24
click818.patch Normal file
View File

@@ -0,0 +1,24 @@
From ab9cff085aefff5787a2c9c7def8e71c9d3ed379 Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@deldycke.com>
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",

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 16 11:19:15 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add click818.patch to fix tests with new click
-------------------------------------------------------------------
Thu Nov 14 09:06:16 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>

View File

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