15
0

Remove unnecessary dependency on unittest2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-binaryornot?expand=0&rev=12
This commit is contained in:
2018-08-10 11:56:43 +00:00
committed by Git OBS Bridge
parent 98d9637336
commit e5388bd3c8
2 changed files with 9 additions and 6 deletions

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests run too slowly on some architectures
%ifarch %{ix86} x86_64 ppc64 ppc64le
%ifarch %{ix86} x86_64 ppc64 ppc64le
%bcond_without test
%else
%bcond_with test
@@ -29,7 +29,7 @@ Release: 0
Summary: Python package to check if a file is binary or text
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/audreyr/binaryornot
URL: https://github.com/audreyr/binaryornot
Source: https://files.pythonhosted.org/packages/source/b/binaryornot/binaryornot-%{version}.tar.gz
# PATCH-FIX-OPENSUSE remove_hypothesis_tests.patch -- remove hypothesis-based tests
Patch0: remove_hypothesis_tests.patch
@@ -39,10 +39,8 @@ BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python-unittest2
Requires: python-chardet >= 3.0.2
BuildArch: noarch
%python_subpackages
%description
@@ -69,8 +67,8 @@ $python tests/test_check.py
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS.rst HISTORY.rst LICENSE README.rst
%license LICENSE
%doc AUTHORS.rst HISTORY.rst README.rst
%{python_sitelib}/*
%changelog