forked from pool/python-zope.interface
- Update to 7.1.0:
* Declare support for Python 3.13. * Fix segmentation faults on Python 3.13. (#323) - Drop patch fix-testsuite-segfault.patch, included upstream. - Switch to autosetup macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.interface?expand=0&rev=73
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
diff --git a/src/zope/interface/common/tests/test_collections.py b/src/zope/interface/common/tests/test_collections.py
|
||||
index 6d23f6f..122351a 100644
|
||||
--- a/src/zope/interface/common/tests/test_collections.py
|
||||
+++ b/src/zope/interface/common/tests/test_collections.py
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
|
||||
import array
|
||||
+import sys
|
||||
import unittest
|
||||
from collections import OrderedDict
|
||||
from collections import abc
|
||||
@@ -127,6 +128,12 @@ class TestVerifyObject(VerifyObjectMixin,
|
||||
'async_generator': unittest.SkipTest,
|
||||
type(iter(tuple())): lambda: iter(tuple()),
|
||||
}
|
||||
+ if sys.version_info >= (3, 13):
|
||||
+ def FrameLocalsProxy_constructor():
|
||||
+ FrameLocalsProxy = type([sys._getframe().f_locals for x in range(1)][0])
|
||||
+ return FrameLocalsProxy(sys._getframe())
|
||||
+ FrameLocalsProxy = type([sys._getframe().f_locals for x in range(1)][0])
|
||||
+ CONSTRUCTORS[FrameLocalsProxy] = FrameLocalsProxy_constructor
|
||||
|
||||
UNVERIFIABLE_RO = {
|
||||
# ``array.array`` fails the ``test_auto_ro_*`` tests with and
|
||||
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 14 03:37:17 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 7.1.0:
|
||||
* Declare support for Python 3.13.
|
||||
* Fix segmentation faults on Python 3.13. (#323)
|
||||
- Drop patch fix-testsuite-segfault.patch, included upstream.
|
||||
- Switch to autosetup macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 25 13:39:50 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -24,26 +24,24 @@
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%global modname zope.interface
|
||||
%global modname zope_interface
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-zope.interface%{psuffix}
|
||||
Version: 7.0.3
|
||||
Version: 7.1.0
|
||||
Release: 0
|
||||
Summary: Interfaces for Python
|
||||
License: ZPL-2.1
|
||||
URL: https://pypi.python.org/pypi/zope.interface
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.interface/%{modname}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM - gh/zopefoundation/zope.interface#323#issuecomment-2374076122 - Fix testsuite segfault with Python 3.13
|
||||
Patch: https://github.com/zopefoundation/zope.interface/pull/324.patch#/fix-testsuite-segfault.patch
|
||||
Source: https://files.pythonhosted.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
|
||||
# needed for tests that try to compile things
|
||||
BuildRequires: %{python_module devel >= 3.7}
|
||||
BuildRequires: %{python_module devel >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
# SECTION test requirements
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module zope.event}
|
||||
BuildRequires: %{python_module zope.interface}
|
||||
BuildRequires: %{python_module zope.interface = %{version}}
|
||||
BuildRequires: %{python_module zope.testing}
|
||||
%endif
|
||||
# /SECTION
|
||||
@@ -62,8 +60,7 @@ API or contract. So, this package can be considered as implementation of
|
||||
the Design By Contract methodology support in Python.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%patch -P0 -p1
|
||||
%autosetup -p1 -n %{modname}-%{version}
|
||||
|
||||
%build
|
||||
%if !%{with test}
|
||||
@@ -87,7 +84,7 @@ cd src
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt COPYRIGHT.txt
|
||||
%doc CHANGES.rst README.rst
|
||||
%{python_sitearch}/zope.interface-%{version}*-info
|
||||
%{python_sitearch}/zope.interface-%{version}.dist-info
|
||||
%{python_sitearch}/zope.interface-%{version}*-nspkg.pth
|
||||
%dir %{python_sitearch}/zope
|
||||
%{python_sitearch}/zope/interface
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cd2690d4b08ec9eaf47a85914fe513062b20da78d10d6d789a792c0b20307fb1
|
||||
size 252504
|
||||
BIN
zope_interface-7.1.0.tar.gz
LFS
Normal file
BIN
zope_interface-7.1.0.tar.gz
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user