Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
ffae6f6672 |
@@ -1,3 +0,0 @@
|
|||||||
<multibuild>
|
|
||||||
<package>doc</package>
|
|
||||||
</multibuild>
|
|
BIN
manuel-1.12.4.tar.gz
(Stored with Git LFS)
Normal file
BIN
manuel-1.12.4.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
manuel-1.13.0.tar.gz
(Stored with Git LFS)
BIN
manuel-1.13.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
35
python-manuel-no-six.patch
Normal file
35
python-manuel-no-six.patch
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
Index: manuel-1.12.4/src/manuel/doctest.py
|
||||||
|
===================================================================
|
||||||
|
--- manuel-1.12.4.orig/src/manuel/doctest.py
|
||||||
|
+++ manuel-1.12.4/src/manuel/doctest.py
|
||||||
|
@@ -3,13 +3,13 @@ from __future__ import absolute_import
|
||||||
|
import doctest
|
||||||
|
import manuel
|
||||||
|
import os.path
|
||||||
|
-import six
|
||||||
|
+import io
|
||||||
|
|
||||||
|
DocTestRunner = doctest.DocTestRunner
|
||||||
|
DebugRunner = doctest.DebugRunner
|
||||||
|
|
||||||
|
|
||||||
|
-class DocTestResult(six.StringIO):
|
||||||
|
+class DocTestResult(io.StringIO):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Index: manuel-1.12.4/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- manuel-1.12.4.orig/setup.py
|
||||||
|
+++ manuel-1.12.4/setup.py
|
||||||
|
@@ -48,10 +48,6 @@ setup(
|
||||||
|
},
|
||||||
|
tests_require=tests_require,
|
||||||
|
test_suite='manuel.tests.test_suite',
|
||||||
|
- install_requires=[
|
||||||
|
- 'setuptools',
|
||||||
|
- 'six',
|
||||||
|
- ],
|
||||||
|
include_package_data=True,
|
||||||
|
long_description=long_description,
|
||||||
|
keywords=['testing', 'documentation'],
|
@@ -1,32 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu May 8 08:54:10 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
|
||||||
|
|
||||||
- Use multibuild for doc subpackage
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Feb 7 12:30:21 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
||||||
|
|
||||||
- Update to 1.13.0
|
|
||||||
* Include*.md files in wheel These are needed by the test suite,
|
|
||||||
which is also included in the wheel.
|
|
||||||
* Fix tests on python3.11
|
|
||||||
* Update some web links
|
|
||||||
* Update pyinstaller to 6.1.0 for python >= 3.11 support
|
|
||||||
* doctest: use outputchecker argument also in debug mode. Fixes #38
|
|
||||||
* Remove references to old "six" module
|
|
||||||
- Drop python-manuel-no-six.patch, merged upstream
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Feb 6 14:04:47 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Build also on the old python3 (needed by some packages in the Backports).
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jan 16 10:31:24 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Add %{?sle15_python_module_pythons}
|
|
||||||
- Don't build the docs in SLE-based projects
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 2 10:14:39 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
Tue May 2 10:14:39 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-manuel
|
# spec file for package python-manuel
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
# Copyright (c) 2013-2018 LISA GmbH, Bingen, Germany.
|
# Copyright (c) 2013-2018 LISA GmbH, Bingen, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,24 +17,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
Name: python-manuel
|
||||||
%if "%{flavor}" == "doc"
|
Version: 1.12.4
|
||||||
%bcond_without doc
|
|
||||||
%define psuffix -doc
|
|
||||||
%else
|
|
||||||
%bcond_with doc
|
|
||||||
%define psuffix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%{?sle15allpythons}
|
|
||||||
Name: python-manuel%{psuffix}
|
|
||||||
Version: 1.13.0
|
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python module to build tested documentation
|
Summary: Python module to build tested documentation
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://pypi.org/project/manuel/
|
URL: https://pypi.org/project/manuel/
|
||||||
# SourceRepository: https://github.com/benji-york/manuel
|
# SourceRepository: https://github.com/benji-york/manuel
|
||||||
Source: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz
|
||||||
|
# https://github.com/benji-york/manuel/issues/33
|
||||||
|
Patch0: python-manuel-no-six.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}
|
||||||
@@ -42,16 +34,11 @@ BuildRequires: %{python_module wheel}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%if %{with doc} && 0%{?suse_version} >= 1600
|
|
||||||
# SECTION Documentation requirements:
|
# SECTION Documentation requirements:
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
BuildRequires: python3-myst-parser
|
BuildRequires: python3-myst-parser
|
||||||
BuildRequires: python3-sphinxcontrib-copybutton
|
BuildRequires: python3-sphinxcontrib-copybutton
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%elif %{with doc}
|
|
||||||
ExclusiveArch: do-not-build
|
|
||||||
%endif
|
|
||||||
# SECTION Testing requirements:
|
# SECTION Testing requirements:
|
||||||
BuildRequires: %{python_module zope.testing}
|
BuildRequires: %{python_module zope.testing}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
@@ -73,26 +60,19 @@ This package contains documentation files for %{name}.
|
|||||||
%autosetup -p1 -n manuel-%{version}
|
%autosetup -p1 -n manuel-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{without doc}
|
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
%else
|
|
||||||
sphinx-build -c sphinx/ -a src/manuel docs/
|
sphinx-build -c sphinx/ -a src/manuel docs/
|
||||||
rm docs/.buildinfo
|
rm docs/.buildinfo
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{without doc}
|
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
||||||
%else
|
|
||||||
%{python_expand #
|
%{python_expand #
|
||||||
|
%fdupes %{buildroot}%{$python_sitelib}
|
||||||
mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
||||||
cp -r docs/* %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
cp -r docs/* %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
||||||
%fdupes %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
%fdupes %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
||||||
}
|
}
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{without doc}
|
|
||||||
%check
|
%check
|
||||||
%pytest src/manuel/tests.py
|
%pytest src/manuel/tests.py
|
||||||
|
|
||||||
@@ -101,11 +81,8 @@ cp -r docs/* %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
|||||||
%doc CHANGES.rst COPYRIGHT.rst PKG-INFO README.rst
|
%doc CHANGES.rst COPYRIGHT.rst PKG-INFO README.rst
|
||||||
%{python_sitelib}/manuel
|
%{python_sitelib}/manuel
|
||||||
%{python_sitelib}/manuel-%{version}.dist-info
|
%{python_sitelib}/manuel-%{version}.dist-info
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with doc}
|
%files %{python_files doc}
|
||||||
%files %{python_files}
|
|
||||||
%doc %{_docdir}/%{python_prefix}-manuel-doc
|
%doc %{_docdir}/%{python_prefix}-manuel-doc
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user