diff --git a/python-sure-no-mock.patch b/python-sure-no-mock.patch index 16df5c8..80f3506 100644 --- a/python-sure-no-mock.patch +++ b/python-sure-no-mock.patch @@ -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 . 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() + diff --git a/python-sure.changes b/python-sure.changes index df73c5c..015daad 100644 --- a/python-sure.changes +++ b/python-sure.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Nov 5 00:30:51 UTC 2025 - Steve Kowalik + +- 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á diff --git a/python-sure.spec b/python-sure.spec index 0366a2f..278e686 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -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 diff --git a/support-python314.patch b/support-python314.patch new file mode 100644 index 0000000..1635a89 --- /dev/null +++ b/support-python314.patch @@ -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 +