[packages/python3-zope.interface] - updated to 8.7 (no security fixes, needed by twisted 26); pyproject build, keep nspkg.pth for zope
adamg
adamg at pld-linux.org
Fri Nov 20 12:33:44 CET 2026
commit b9afe87925ae07c185a8f1ad22d2f9f27cb1bbcc
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Fri Nov 20 12:33:17 2026 +0100
- updated to 8.7 (no security fixes, needed by twisted 26); pyproject build, keep nspkg.pth for zope.* namespace
- release 1
python3-zope.interface.spec | 31 +++++++++++++++++++------------
zope.interface-nspkg.pth | 1 +
2 files changed, 20 insertions(+), 12 deletions(-)
---
diff --git a/python3-zope.interface.spec b/python3-zope.interface.spec
index 1377f7e..02861a2 100644
--- a/python3-zope.interface.spec
+++ b/python3-zope.interface.spec
@@ -7,16 +7,19 @@
Summary: Python 'interface' concept implementation
Summary(pl.UTF-8): Implementacja interfejsów dla języka Python
Name: python3-%{module}
-Version: 7.2
-Release: 2
+Version: 8.7
+Release: 1
License: ZPL v2.1
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/zope.interface/
-Source0: https://files.pythonhosted.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
-# Source0-md5: 583dac724d227b3ee2d4d4a940425961
+Source0: https://files.pythonhosted.org/packages/source/z/zope.interface/zope_interface-%{version}.tar.gz
+# Source0-md5: d73d384affc6ca657c14abe048d8aee1
+Source1: zope.interface-nspkg.pth
URL: https://zopeinterface.readthedocs.io/
-BuildRequires: python3 >= 1:3.8
-BuildRequires: python3-devel >= 1:3.8
+BuildRequires: python3 >= 1:3.11
+BuildRequires: python3-build
+BuildRequires: python3-devel >= 1:3.11
+BuildRequires: python3-installer
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-coverage >= 5.0.3
@@ -31,7 +34,7 @@ BuildRequires: python3-furo
BuildRequires: python3-repoze.sphinx.autointerface
BuildRequires: sphinx-pdg-3
%endif
-Requires: python3-modules >= 1:3.8
+Requires: python3-modules >= 1:3.11
Requires: python3-zope-base
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -55,10 +58,10 @@ API documentation for Python zope.interface module.
Dokumentacja API modułu Pythona zope.interface.
%prep
-%setup -q -n %{module}-%{version}
+%setup -q -n zope_interface-%{version}
%build
-%py3_build
+%py3_build_pyproject
%if %{with tests}
PYTHONPATH=$(pwd)/src \
@@ -74,10 +77,14 @@ PYTHONPATH=$(pwd)/src \
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/zope/interface/*.c
+# 8.x uses PEP 420 namespace, but other zope.* packages still use pkg_resources
+# style one with zope/__init__.py from python3-zope-base; keep the nspkg hook
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{py3_sitedir}/zope.interface-%{version}-nspkg.pth
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -90,8 +97,8 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{py3_sitedir}/zope/interface/_zope_interface_coptimizations*.so
%{py3_sitedir}/zope/interface/common
%{py3_sitedir}/zope/interface/tests
-%{py3_sitedir}/zope.interface-%{version}-py*.egg-info
-%{py3_sitedir}/zope.interface-%{version}-py*-nspkg.pth
+%{py3_sitedir}/zope_interface-%{version}.dist-info
+%{py3_sitedir}/zope.interface-%{version}-nspkg.pth
%if %{with doc}
%files apidocs
diff --git a/zope.interface-nspkg.pth b/zope.interface-nspkg.pth
new file mode 100644
index 0000000..8012119
--- /dev/null
+++ b/zope.interface-nspkg.pth
@@ -0,0 +1 @@
+import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('zope',));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('zope', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('zope', [os.path.dirname(p)])));m = m or sys.modules.setdefault('zope', types.ModuleType('zope'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-zope.interface.git/commitdiff/b9afe87925ae07c185a8f1ad22d2f9f27cb1bbcc
More information about the pld-cvs-commit
mailing list