Sync from SUSE:SLFO:Main python-autodocsumm revision 8c09a0d2b4d6828672d9ca4732688d1e

This commit is contained in:
Adrian Schröter 2024-05-03 20:11:15 +02:00
commit 9e8cdb328d
5 changed files with 202 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
autodocsumm-0.2.11.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,95 @@
-------------------------------------------------------------------
Mon Aug 28 12:45:01 UTC 2023 - Markéta Machová <mmachova@suse.com>
- Add patch sphinx72.patch
-------------------------------------------------------------------
Fri May 19 09:03:48 UTC 2023 - Jiri Srain <jsrain@suse.com>
- fixed the license tag to Apache-2.0
-------------------------------------------------------------------
Wed May 10 19:39:44 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.2.11:
* Support Sphinx 7 and Python 3.11
* pin build of docs to sphinx<=7.0
-------------------------------------------------------------------
Thu May 4 15:40:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.2.11:
* Support Sphinx 7 and Python 3.11
* Allow Sphinx v6
* install versioneer
* remove OrderedDict
-------------------------------------------------------------------
Fri Apr 21 12:22:26 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:40:09 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Wed Sep 28 10:24:29 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove sphinx-testing build dependency, it's not needed anymore
-------------------------------------------------------------------
Thu Aug 4 09:17:21 UTC 2022 - Otto Hollmann <otto.hollmann@suse.com>
- Update to 0.2.9:
* specify parser for BeautifulSoup
* Allow Sphinx v5
* Drop Python 3.6 support
* Declare project and pytest configuration in pyproject.toml
-------------------------------------------------------------------
Fri Jun 24 00:30:34 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Remove guard on upper Sphinx version.
-------------------------------------------------------------------
Mon May 2 21:38:13 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to 0.2.8
* Fix: no links generated in summary table
* Fix: Sphinx dependencies
-------------------------------------------------------------------
Sat Jul 10 11:38:27 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Update to 0.2.6:
- license changed to Apache-2.0
- This patch makes autodocsumm compatible with sphinx 4.0 and
from now on requires python>=3.6.
- implemented support for the :nosignatures:
-------------------------------------------------------------------
Sun Apr 18 12:32:09 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to 0.2.3
* This Release makes autodocsumm compatible with sphinx 3.4 and
3.5. See #42
- Release 0.2.2
* This release fixes a bug that included imported members in the
autosummary table (see #32, #33) and includes the sorting
bysource (#34). We also dropped the dependency on six (#35).
- Release 0.2.1
* Patch for compatibility with python 3.5
-------------------------------------------------------------------
Thu Sep 3 04:27:24 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.2.0:
* No upstream changelog
-------------------------------------------------------------------
Fri Apr 3 15:43:15 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
+ Version 0.1.13

68
python-autodocsumm.spec Normal file
View File

@ -0,0 +1,68 @@
#
# spec file for package python-autodocsumm
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-autodocsumm
Version: 0.2.11
Release: 0
Summary: Extended sphinx autodoc including automatic autosummaries
License: Apache-2.0
URL: https://github.com/Chilipp/autodocsumm
Source: https://github.com/Chilipp/autodocsumm/archive/v%{version}.tar.gz#/autodocsumm-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/Chilipp/autodocsumm/pull/88 fix build with Sphinx 7.2
Patch: sphinx72.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module versioneer}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 2.2
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Sphinx >= 2.2}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
Extended sphinx autodoc including automatic autosummaries
%prep
%autosetup -p1 -n autodocsumm-%{version}
# Remove guard from Sphinx version
sed -i 's/,<5.0//' setup.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/autodocsumm
%{python_sitelib}/autodocsumm-%{version}*-info
%changelog

13
sphinx72.patch Normal file
View File

@ -0,0 +1,13 @@
Index: autodocsumm-0.2.11/tests/test_autodocsumm.py
===================================================================
--- autodocsumm-0.2.11.orig/tests/test_autodocsumm.py
+++ autodocsumm-0.2.11/tests/test_autodocsumm.py
@@ -36,7 +36,7 @@ def in_between(full, sub, s0, *others):
def get_html(app, fname):
- with open(app.outdir + '/' + fname) as f:
+ with open(str(app.outdir) + '/' + fname) as f:
return f.read()