forked from pool/python-sure
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| fe8dda0638 | |||
| 182f31adcd | |||
| a350d11614 | |||
| a61177e8e9 |
@@ -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.1.orig/sure/core.py
|
||||||
+++ sure-2.0.0/sure/core.py
|
+++ sure-2.0.1/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.0/sure/core.py
|
|||||||
anything = Anything()
|
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.1.orig/tests/test_assertion_builder.py
|
||||||
+++ sure-2.0.0/tests/test_assertion_builder.py
|
+++ sure-2.0.1/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,3 +35,16 @@ Index: sure-2.0.0/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,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 26 19:06:01 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Tue Mar 26 19:06:01 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-sure
|
# spec file for package python-sure
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,6 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-sure
|
Name: python-sure
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
@@ -26,6 +31,8 @@ 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}
|
||||||
@@ -34,9 +41,14 @@ BuildRequires: %{python_module wheel}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-six >= 1.10.0
|
Requires: python-six >= 1.10.0
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -67,11 +79,14 @@ rm tests/test_old_api.py
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative sure
|
%python_uninstall_alternative sure
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative sure
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%python_alternative %{_bindir}/sure
|
%python_alternative %{_bindir}/sure
|
||||||
%{python_sitelib}/sure
|
%{python_sitelib}/sure
|
||||||
%{python_sitelib}/sure-%{version}*-info
|
%{python_sitelib}/sure-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%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