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
This commit is contained in:
Tomáš Chvátal 2019-03-03 08:36:36 +00:00 committed by Git OBS Bridge
parent 60f4cda69d
commit 7913250517
2 changed files with 29 additions and 12 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Mar 3 09:06:27 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- 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 <arun@gmx.de> Sat Mar 2 04:49:32 UTC 2019 - Arun Persaud <arun@gmx.de>

View File

@ -35,6 +35,7 @@ Requires: python-entrypoints >= 0.3
Requires: python-mccabe >= 0.6.0 Requires: python-mccabe >= 0.6.0
Requires: python-pycodestyle >= 2.5.0 Requires: python-pycodestyle >= 2.5.0
Requires: python-pyflakes >= 2.1.0 Requires: python-pyflakes >= 2.1.0
Requires: python-typing
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
@ -45,32 +46,24 @@ BuildRequires: %{python_module pycodestyle >= 2.5.0}
BuildRequires: %{python_module pyflakes >= 2.1.0} BuildRequires: %{python_module pyflakes >= 2.1.0}
BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module typing}
%if %{with python2} %if %{with python2}
BuildRequires: python2-configparser >= 3.7.0 BuildRequires: python2-configparser >= 3.7.0
BuildRequires: python2-enum34 BuildRequires: python2-enum34
BuildRequires: python2-functools32 BuildRequires: python2-functools32
BuildRequires: python2-mock BuildRequires: python2-mock
BuildRequires: python2-typing
%endif
%if 0%{?python3_version_nodots} < 35
BuildRequires: python3-typing
%endif %endif
# /SECTION # /SECTION
%ifpython2 %ifpython2
Requires: python-configparser >= 3.7.0 Requires: python-configparser >= 3.7.0
Requires: python-enum34 Requires: python-enum34
Requires: python-functools32 Requires: python-functools32
Requires: python-typing
%endif
%ifpython3
%if 0%{?python3_version_nodots} < 35
Requires: python3-typing
%endif
%endif %endif
%python_subpackages %python_subpackages
%description %description
Flake8 is a wrapper around these tools: Flake8 is a modular extensible source code checker including wrappers
around these tools:
- PyFlakes - PyFlakes
- pep8 - pep8
@ -78,6 +71,16 @@ Flake8 is a wrapper around these tools:
Flake8 runs all the tools by launching the single ``flake8`` script. 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 %prep
%setup -q -n flake8-%{version} %setup -q -n flake8-%{version}
%autopatch -p1 %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 %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest tests
%files %{python_files} %files %{python_files}
%doc README.rst
%license LICENSE %license LICENSE
%doc docs/source/manpage.rst
%python_alternative %{_bindir}/flake8 %python_alternative %{_bindir}/flake8
%dir %{python_sitelib}/flake8 %dir %{python_sitelib}/flake8
%{python_sitelib}/flake8/* %{python_sitelib}/flake8/*
%{python_sitelib}/flake8-%{version}-py*.egg-info %{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 %changelog