forked from pool/python-capturer
Accepting request 828124 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/828124 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-capturer?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 20 10:12:14 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Remove unnecessary bcond_without test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 30 09:31:30 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-capturer
|
||||
Version: 3.0
|
||||
Release: 0
|
||||
@@ -29,12 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/c/capturer/captur
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module coverage >= 4.2}
|
||||
BuildRequires: %{python_module humanfriendly >= 8.0}
|
||||
BuildRequires: %{python_module pytest >= 3.0.4}
|
||||
BuildRequires: %{python_module pytest-cov >= 2.4.0}
|
||||
%endif
|
||||
Requires: python-humanfriendly >= 8.0
|
||||
BuildArch: noarch
|
||||
|
||||
@@ -59,14 +54,11 @@ but definitely won't work on Windows (due to the use of the platform dependent
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%pytest capturer/tests.py
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user