forked from pool/python-subprocrunner
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subprocrunner?expand=0&rev=25
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-subprocrunner
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
Name: python-subprocrunner
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
@@ -25,7 +24,9 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/thombashi/subprocrunner
|
||||
Source: https://files.pythonhosted.org/packages/source/s/subprocrunner/subprocrunner-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools >= 38.3.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-loguru >= 0.4.1
|
||||
@@ -33,12 +34,12 @@ Requires: python-mbstrdecoder >= 1.0.0
|
||||
Requires: python-typepy
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: hostname
|
||||
BuildRequires: %{python_module loguru >= 0.4.1}
|
||||
BuildRequires: %{python_module mbstrdecoder >= 1.0.0}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module typepy}
|
||||
BuildRequires: hostname
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -49,10 +50,10 @@ A Python wrapper library for subprocess module.
|
||||
%setup -q -n subprocrunner-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
|
Reference in New Issue
Block a user