forked from pool/python-exam
- Add patch no-mock.patch:
* Stop using mock. - Drop mock BuildRequires/Requires. - No longer run testsuite twice. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exam?expand=0&rev=9
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-exam
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -22,20 +22,16 @@ Version: 0.10.6
|
||||
Release: 0
|
||||
Summary: Helpers for better testing
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/fluxx/exam
|
||||
Source: https://files.pythonhosted.org/packages/source/e/exam/exam-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/Fluxx/exam/master/LICENSE
|
||||
# https://github.com/Fluxx/exam/pull/50
|
||||
Patch0: remove_nose.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module mock}
|
||||
Patch1: no-mock.patch
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
%ifpython2
|
||||
Requires: python-mock
|
||||
%endif
|
||||
BuildRequires: python-rpm-macros
|
||||
Recommends: python-pep8
|
||||
Recommends: python-pyflakes
|
||||
BuildArch: noarch
|
||||
@@ -43,14 +39,13 @@ BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Exam is a Python toolkit for writing better tests.
|
||||
Exam is a Python toolkit for writing better tests.
|
||||
It aims to remove a lot of the boiler plate testing
|
||||
code one often writes, while still following Python
|
||||
conventions and adhering to the unit testing interface.
|
||||
|
||||
%prep
|
||||
%setup -q -n exam-%{version}
|
||||
%patch0 -p1
|
||||
%autosetup -p1 -n exam-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
@@ -61,7 +56,6 @@ cp %{SOURCE1} .
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec -m unittest discover -s tests/ -v
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user