Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 4fb7c39028 | |||
| fe9b303165 |
@@ -1,7 +1,7 @@
|
|||||||
Index: sure-2.0.1/sure/core.py
|
Index: sure-2.0.0/sure/core.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- sure-2.0.1.orig/sure/core.py
|
--- sure-2.0.0.orig/sure/core.py
|
||||||
+++ sure-2.0.1/sure/core.py
|
+++ sure-2.0.0/sure/core.py
|
||||||
@@ -21,7 +21,10 @@ import os
|
@@ -21,7 +21,10 @@ import os
|
||||||
try:
|
try:
|
||||||
from mock import _CallList
|
from mock import _CallList
|
||||||
@@ -22,10 +22,10 @@ Index: sure-2.0.1/sure/core.py
|
|||||||
anything = Anything()
|
anything = Anything()
|
||||||
|
|
||||||
|
|
||||||
Index: sure-2.0.1/tests/test_assertion_builder.py
|
Index: sure-2.0.0/tests/test_assertion_builder.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- sure-2.0.1.orig/tests/test_assertion_builder.py
|
--- sure-2.0.0.orig/tests/test_assertion_builder.py
|
||||||
+++ sure-2.0.1/tests/test_assertion_builder.py
|
+++ sure-2.0.0/tests/test_assertion_builder.py
|
||||||
@@ -17,7 +17,7 @@
|
@@ -17,7 +17,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
@@ -35,16 +35,3 @@ Index: sure-2.0.1/tests/test_assertion_builder.py
|
|||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
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,11 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
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>
|
Mon Aug 25 14:05:31 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ URL: https://github.com/gabrielfalcao/sure
|
|||||||
Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz
|
||||||
# Based on https://github.com/gabrielfalcao/sure/pull/161
|
# Based on https://github.com/gabrielfalcao/sure/pull/161
|
||||||
Patch0: python-sure-no-mock.patch
|
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 pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -87,6 +85,6 @@ rm tests/test_old_api.py
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
%python_alternative %{_bindir}/sure
|
%python_alternative %{_bindir}/sure
|
||||||
%{python_sitelib}/sure
|
%{python_sitelib}/sure
|
||||||
%{python_sitelib}/sure-%{version}.dist-info
|
%{python_sitelib}/sure-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
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