SHA256
14
0
forked from pool/python-sh

- Add patches from Fedora:

* always-use-fully-versioned-python-command-in-tests.patch
  * no-coverage.patch
  * 0001-Fix-tests-for-the-drop-the-unversion-python.patch
  * pep-0538-test-fix.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sh?expand=0&rev=18
This commit is contained in:
Tomáš Chvátal
2019-02-01 13:32:19 +00:00
committed by Git OBS Bridge
parent 2291862aeb
commit e5b6917c11
6 changed files with 232 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-sh
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-sh
Version: 1.12.14
Release: 0
@@ -26,12 +25,13 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/amoffat/sh
Source: https://files.pythonhosted.org/packages/source/s/sh/sh-%{version}.tar.gz
Patch0: always-use-fully-versioned-python-command-in-tests.patch
Patch1: no-coverage.patch
Patch2: 0001-Fix-tests-for-the-drop-the-unversion-python.patch
Patch3: pep-0538-test-fix.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module coverage}
%endif
%python_subpackages
%description
@@ -46,6 +46,7 @@ sh is not a collection of system commands implemented in Python.
%prep
%setup -q -n sh-%{version}
%autopatch -p1
%build
%python_build
@@ -53,10 +54,8 @@ sh is not a collection of system commands implemented in Python.
%install
%python_install
%if %{with test}
%check
%python_exec test.py
%endif
%files %{python_files}
%license LICENSE.txt