forked from pool/python-sure
Accepting request 1315625 from devel:languages:python
- 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/request/show/1315625 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sure?expand=0&rev=15
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Index: sure-2.0.0/sure/core.py
|
||||
Index: sure-2.0.1/sure/core.py
|
||||
===================================================================
|
||||
--- sure-2.0.0.orig/sure/core.py
|
||||
+++ sure-2.0.0/sure/core.py
|
||||
--- sure-2.0.1.orig/sure/core.py
|
||||
+++ sure-2.0.1/sure/core.py
|
||||
@@ -21,7 +21,10 @@ import os
|
||||
try:
|
||||
from mock import _CallList
|
||||
@@ -22,10 +22,10 @@ Index: sure-2.0.0/sure/core.py
|
||||
anything = Anything()
|
||||
|
||||
|
||||
Index: sure-2.0.0/tests/test_assertion_builder.py
|
||||
Index: sure-2.0.1/tests/test_assertion_builder.py
|
||||
===================================================================
|
||||
--- sure-2.0.0.orig/tests/test_assertion_builder.py
|
||||
+++ sure-2.0.0/tests/test_assertion_builder.py
|
||||
--- sure-2.0.1.orig/tests/test_assertion_builder.py
|
||||
+++ sure-2.0.1/tests/test_assertion_builder.py
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
from __future__ import unicode_literals
|
||||
@@ -35,3 +35,16 @@ Index: sure-2.0.0/tests/test_assertion_builder.py
|
||||
from collections import OrderedDict
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
Index: sure-2.0.1/setup.py
|
||||
===================================================================
|
||||
--- sure-2.0.1.orig/setup.py
|
||||
+++ sure-2.0.1/setup.py
|
||||
@@ -81,7 +81,7 @@ def read_readme():
|
||||
return __doc__
|
||||
|
||||
|
||||
-install_requires = ["mock", "six"]
|
||||
+install_requires = ["six"]
|
||||
tests_require = ["nose"]
|
||||
version = read_version()
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 5 00:30:51 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 25 14:05:31 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@ URL: https://github.com/gabrielfalcao/sure
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz
|
||||
# Based on https://github.com/gabrielfalcao/sure/pull/161
|
||||
Patch0: python-sure-no-mock.patch
|
||||
# PATCH-FIX-OPENSUSE Support Python 3.14 ast changes
|
||||
Patch1: support-python314.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -85,6 +87,6 @@ rm tests/test_old_api.py
|
||||
%doc README.rst
|
||||
%python_alternative %{_bindir}/sure
|
||||
%{python_sitelib}/sure
|
||||
%{python_sitelib}/sure-%{version}*-info
|
||||
%{python_sitelib}/sure-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
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