From dca366679e4a1b207aa3913dd6a6e6b6fe58d2e22f3d73ed0a757a98e0f67d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 15 May 2020 08:12:58 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=61 --- python-flake8.spec | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/python-flake8.spec b/python-flake8.spec index 99cca90..afc57a0 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -23,27 +23,22 @@ Version: 3.8.1 Release: 0 Summary: Modular source code checker: pep8, pyflakes and co License: MIT -Group: Development/Languages/Python URL: https://gitlab.com/pycqa/flake8 Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz Patch0: fix-mock-patch-with-python3.4.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-importlib-metadata Requires: python-mccabe >= 0.6.0 Requires: python-pycodestyle >= 2.6.0~a1 Requires: python-pyflakes >= 2.1.0 Requires: python-typing -%if %{python3_version_nodots} < 38 -Requires: python-importlib-metadata -%endif Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements -%if %{python3_version_nodots} < 38 BuildRequires: %{python_module importlib-metadata} -%endif BuildRequires: %{python_module mccabe >= 0.6.0} BuildRequires: %{python_module mock} BuildRequires: %{python_module pycodestyle >= 2.6.0~a1} @@ -77,7 +72,6 @@ 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