14
0
forked from pool/python-sure
Files
python-sure/support-python314.patch
Steve Kowalik 182f31adcd - 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
2025-11-05 00:31:46 +00:00

14 lines
452 B
Diff

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