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:
13
support-python314.patch
Normal file
13
support-python314.patch
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user