forked from pool/python-hatch
- Update to 1.15.1
* Fix compatibility with cached default CPython distributions
that were sourced from GitHub releases of the old owner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=56
This commit is contained in:
29
click-8.2.patch
Normal file
29
click-8.2.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
From df295583784427214324b974c75901da12931ec1 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
|
||||
Date: Thu, 26 Jun 2025 11:32:54 +0200
|
||||
Subject: [PATCH] Fix test_self with click >= 8.2.0
|
||||
|
||||
https://click.palletsprojects.com/en/stable/changes/#version-8-2-0
|
||||
---
|
||||
tests/cli/self/test_self.py | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/cli/self/test_self.py b/tests/cli/self/test_self.py
|
||||
index cd1a4aed1..f727b87f4 100644
|
||||
--- a/tests/cli/self/test_self.py
|
||||
+++ b/tests/cli/self/test_self.py
|
||||
@@ -1,7 +1,13 @@
|
||||
import os
|
||||
+import importlib
|
||||
|
||||
|
||||
def test(hatch):
|
||||
result = hatch(os.environ['PYAPP_COMMAND_NAME'])
|
||||
+ exit_code = 2
|
||||
|
||||
- assert result.exit_code == 0, result.output
|
||||
+ click_version = importlib.metadata.version('click')
|
||||
+ if click_version <= '8.1.8':
|
||||
+ exit_code = 0
|
||||
+
|
||||
+ assert result.exit_code == exit_code, result.output
|
||||
Reference in New Issue
Block a user