Accepting request 1083999 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1083999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-manuel?expand=0&rev=14
This commit is contained in:
Dominique Leuenberger 2023-05-03 10:56:01 +00:00 committed by Git OBS Bridge
commit ab57a07611
4 changed files with 24 additions and 21 deletions

15
conf.py
View File

@ -1,15 +0,0 @@
source_suffix = '.txt'
master_doc = 'src/manuel/index'
project = 'Manuel'
copyright = 'Benji York'
version = '1'
release = '1'
today_fmt = '%Y-%m-%d'
pygments_style = 'sphinx'
html_last_updated_fmt = '%Y-%m-%d'
html_title = 'Manuel Documentation'
todo_include_todos = False
exclude_patterns = ['src/manuel.egg-info*']
unused_docs = ['src/manuel/capture']

View File

@ -18,3 +18,18 @@ Index: manuel-1.12.4/src/manuel/doctest.py
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'],

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 2 10:14:39 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Replace unsupported setuptoos sphinx_build hook
- Remove six and setuptools from requirements metadata
-------------------------------------------------------------------
Tue Jan 3 18:56:12 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -25,8 +25,6 @@ License: Apache-2.0
URL: https://pypi.org/project/manuel/
# SourceRepository: https://github.com/benji-york/manuel
Source: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz
# add fixed sphinx config <hpj@urpla.net>
Source1: conf.py
# https://github.com/benji-york/manuel/issues/33
Patch0: python-manuel-no-six.patch
BuildRequires: %{python_module pip}
@ -38,6 +36,8 @@ BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION Documentation requirements:
BuildRequires: python3-Sphinx
BuildRequires: python3-myst-parser
BuildRequires: python3-sphinxcontrib-copybutton
# /SECTION
# SECTION Testing requirements:
BuildRequires: %{python_module zope.testing}
@ -58,13 +58,10 @@ This package contains documentation files for %{name}.
%prep
%autosetup -p1 -n manuel-%{version}
cp %{SOURCE1} .
%build
%pyproject_wheel
# build docs only one time
python3 setup.py build_sphinx
mv build/sphinx/html docs
sphinx-build -c sphinx/ -a src/manuel docs/
rm docs/.buildinfo
%install