forked from pool/python-pytest-mock
Accepting request 674447 from devel:languages:python:pytest
- Update to 1.10.1: * Fix broken links and update README. Also the code is now formatted using black. OBS-URL: https://build.opensuse.org/request/show/674447 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
48aacc1496
commit
e78171b7d2
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-mock
|
||||
#
|
||||
# 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
|
||||
@@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-pytest-mock
|
||||
Version: 1.10.0
|
||||
Version: 1.10.1
|
||||
Release: 0
|
||||
Summary: Thin-wrapper around the mock package for easier use with pytest
|
||||
License: MIT
|
||||
@@ -39,8 +39,6 @@ BuildRequires: %{oldpython}-mock
|
||||
%endif
|
||||
%ifpython2
|
||||
Requires: %{oldpython}-mock
|
||||
%else
|
||||
Recommends: python-mock
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
@@ -61,8 +59,8 @@ of a test
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} test_pytest_mock.py
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.rst
|
||||
|
||||
Reference in New Issue
Block a user