15
0

Accepting request 998354 from home:bnavigator:branches:devel:languages:python

- Package only supports Python >= 3.7
- Remove linter flake8 and static type checker mypy from build
  requirements: Not used and not necessary during rpm packaging.
- Remove stray build dependency for six
- Remove entrypoint2 build dependency: only required for building
  docs
- Don't catchall in files section

OBS-URL: https://build.opensuse.org/request/show/998354
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-EasyProcess?expand=0&rev=43
This commit is contained in:
2022-08-22 06:36:25 +00:00
committed by Git OBS Bridge
parent f15dbed865
commit f74952bc0e
2 changed files with 15 additions and 7 deletions

View File

@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
@@ -32,22 +31,19 @@ Summary: Python subprocess interface
License: BSD-2-Clause
URL: https://github.com/ponty/easyprocess
Source: https://github.com/ponty/EasyProcess/archive/%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: iputils
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module EasyProcess = %{version}}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module PyVirtualDisplay}
BuildRequires: %{python_module entrypoint2}
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module mypy}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
BuildRequires: ImageMagick
BuildRequires: iputils
%endif
%python_subpackages
@@ -95,7 +91,8 @@ export LANG=en_US.UTF-8
%files %{python_files}
%license LICENSE.txt
%doc README.md
%{python_sitelib}/*
%{python_sitelib}/easyprocess
%{python_sitelib}/EasyProcess-%{version}*-info
%endif
%changelog