Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 749a5be2ad | |||
| 26c2fad4a3 | |||
| 81b726e920 | |||
| 94c17553db |
27
intersphinx.patch
Normal file
27
intersphinx.patch
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
From cfcb34ea5c61d71c77529cbf2400738473e25bac Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Howitz <icemac@gmx.net>
|
||||||
|
Date: Fri, 9 Aug 2024 18:29:08 +0200
|
||||||
|
Subject: Add support for Python 3.12. - Drop support for Python 3.7
|
||||||
|
|
||||||
|
--- a/docs/conf.py
|
||||||
|
+++ b/docs/conf.py
|
||||||
|
@@ -36,7 +36,7 @@
|
||||||
|
templates_path = ['_templates']
|
||||||
|
|
||||||
|
# The suffix of source filenames.
|
||||||
|
-source_suffix = '.rst'
|
||||||
|
+source_suffix = {'.rst': 'restructuredtext'}
|
||||||
|
|
||||||
|
# The encoding of source files.
|
||||||
|
#source_encoding = 'utf-8'
|
||||||
|
@@ -203,9 +203,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
# Example configuration for intersphinx: refer to the Python standard library.
|
||||||
|
-intersphinx_mapping = {
|
||||||
|
- 'https://docs.python.org/': None
|
||||||
|
-}
|
||||||
|
+intersphinx_mapping = {'python': ('https://docs.python.org/', None)}
|
||||||
|
|
||||||
|
autodoc_default_flags = ['members', 'show-inheritance']
|
||||||
|
autodoc_member_order = 'bysource'
|
||||||
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 5 10:42:44 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Modernize packaging
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 5 18:28:35 UTC 2024 - Christoph G <foss@grueninger.de>
|
||||||
|
|
||||||
|
- Add patch intersphinx.patch for compatibility with recent
|
||||||
|
version of Sphinx
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 7 11:11:48 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Thu Sep 7 11:11:48 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-zope.event
|
# spec file for package python-zope.event
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -25,6 +25,9 @@ Summary: Very basic event publishing system
|
|||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
URL: https://pypi.python.org/pypi/%{modname}
|
URL: https://pypi.python.org/pypi/%{modname}
|
||||||
Source: https://files.pythonhosted.org/packages/source/z/zope.event/%{modname}-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/z/zope.event/%{modname}-%{version}.tar.gz
|
||||||
|
# fix upstream, compatible with recent Sphinx
|
||||||
|
Patch1: intersphinx.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -47,30 +50,31 @@ This package contains documentation files for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
# cannot give build/lib here, as pkg_resources.py needs the egg info and
|
|
||||||
# raises DistributionNotFound for zope.event, hence build doc directly
|
|
||||||
# from source in order to avoid the need for an external doc package
|
|
||||||
export PYTHONPATH=$(pwd)/src
|
export PYTHONPATH=$(pwd)/src
|
||||||
sphinx-build -b html docs build/sphinx/html && rm -r build/sphinx/html/.{buildinfo,doctrees}
|
sphinx-build -b html docs build/sphinx/html && rm -r build/sphinx/html/.{buildinfo,doctrees}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd build/lib
|
export PYTHONPATH=$(pwd)/src
|
||||||
%{python_expand \
|
%{python_expand \
|
||||||
$python -m unittest -v zope.event.tests
|
$python -m unittest -v zope.event.tests
|
||||||
$python -m doctest -v zope/event/classhandler.py
|
$python -m doctest -v src/zope/event/classhandler.py
|
||||||
}
|
}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYRIGHT.txt LICENSE.txt
|
%license COPYRIGHT.txt LICENSE.txt
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%{python_sitelib}/*
|
%dir %{python_sitelib}/zope
|
||||||
|
%{python_sitelib}/zope/event
|
||||||
|
%{python_sitelib}/zope[_.]event-%{version}*info
|
||||||
|
%{python_sitelib}/zope.event-%{version}*pth
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
|
|||||||
Reference in New Issue
Block a user