From 791325051761714de7c60210461e6e204440058c683c68518523f75d276feaa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 3 Mar 2019 08:36:36 +0000 Subject: [PATCH] Accepting request 681063 from home:jayvdb:flake8 - Create doc sub package with rst files, and README.rst - Replace main package %doc README.rst with manpage.rst - Simplify dependency on python-typing, which is provided by python3-base when it isnt a separate dependency OBS-URL: https://build.opensuse.org/request/show/681063 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=50 --- python-flake8.changes | 8 ++++++++ python-flake8.spec | 33 +++++++++++++++++++++------------ 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/python-flake8.changes b/python-flake8.changes index b869eb6..8c568ce 100644 --- a/python-flake8.changes +++ b/python-flake8.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Mar 3 09:06:27 UTC 2019 - John Vandenberg + +- Create doc sub package with rst files, and README.rst +- Replace main package %doc README.rst with manpage.rst +- Simplify dependency on python-typing, which is provided by + python3-base when it isnt a separate dependency + ------------------------------------------------------------------- Sat Mar 2 04:49:32 UTC 2019 - Arun Persaud diff --git a/python-flake8.spec b/python-flake8.spec index 35137d7..26afee7 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -35,6 +35,7 @@ Requires: python-entrypoints >= 0.3 Requires: python-mccabe >= 0.6.0 Requires: python-pycodestyle >= 2.5.0 Requires: python-pyflakes >= 2.1.0 +Requires: python-typing Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -45,32 +46,24 @@ BuildRequires: %{python_module pycodestyle >= 2.5.0} BuildRequires: %{python_module pyflakes >= 2.1.0} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module typing} %if %{with python2} BuildRequires: python2-configparser >= 3.7.0 BuildRequires: python2-enum34 BuildRequires: python2-functools32 BuildRequires: python2-mock -BuildRequires: python2-typing -%endif -%if 0%{?python3_version_nodots} < 35 -BuildRequires: python3-typing %endif # /SECTION %ifpython2 Requires: python-configparser >= 3.7.0 Requires: python-enum34 Requires: python-functools32 -Requires: python-typing -%endif -%ifpython3 -%if 0%{?python3_version_nodots} < 35 -Requires: python3-typing -%endif %endif %python_subpackages %description -Flake8 is a wrapper around these tools: +Flake8 is a modular extensible source code checker including wrappers +around these tools: - PyFlakes - pep8 @@ -78,6 +71,16 @@ Flake8 is a wrapper around these tools: Flake8 runs all the tools by launching the single ``flake8`` script. +%package -n %{name}-doc +Summary: Documentation files for %name +Group: Documentation/Other +Recommends: %{name} = %{version} + +%description -n %{name}-doc +Flake8 is a modular extensible source code checker. + +This package provides documentation for %{name}. + %prep %setup -q -n flake8-%{version} %autopatch -p1 @@ -100,11 +103,17 @@ Flake8 runs all the tools by launching the single ``flake8`` script. %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest tests %files %{python_files} -%doc README.rst %license LICENSE +%doc docs/source/manpage.rst %python_alternative %{_bindir}/flake8 %dir %{python_sitelib}/flake8 %{python_sitelib}/flake8/* %{python_sitelib}/flake8-%{version}-py*.egg-info +%files -n %{name}-doc +%doc README.rst +%doc docs/source/index.rst docs/source/faq.rst docs/source/glossary.rst +%doc docs/source/internal/ docs/source/user docs/source/plugin-development +%license LICENSE + %changelog