14
0
forked from pool/python-sure

- Refresh patch python-sure-no-mock.patch:

* Actually drop the requirement from setup.py
- Add patch support-python314.patch:
  * Support Python 3.14 ast changes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sure?expand=0&rev=35
This commit is contained in:
2025-11-05 00:31:46 +00:00
committed by Git OBS Bridge
commit 182f31adcd
7 changed files with 337 additions and 0 deletions

13
support-python314.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: sure-2.0.1/setup.py
===================================================================
--- sure-2.0.1.orig/setup.py
+++ sure-2.0.1/setup.py
@@ -50,7 +50,7 @@ class VersionFinder(ast.NodeVisitor):
def visit_Assign(self, node):
try:
if node.targets[0].id == self.VARIABLE_NAME:
- self.version = node.value.s
+ self.version = node.value.value
except Exception:
pass