From 047c18c83769695082f490dedaf0ef380971a1f4 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Wed, 16 Dec 2020 11:42:52 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/python-pytest-mock.git#593b6f80d98cc06ae67d688b633159a7e4c81806 --- .gitignore | 1 + python-pytest-mock.spec | 28 +++++++++++++++------------- sources | 2 +- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index b7f9fbf..2ebd2d3 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /pytest-mock-3.2.0.tar.gz /pytest-mock-3.3.0.tar.gz /pytest-mock-3.3.1.tar.gz +/pytest-mock-3.4.0.tar.gz diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec index 2fb6c8b..77fe130 100644 --- a/python-pytest-mock.spec +++ b/python-pytest-mock.spec @@ -1,11 +1,8 @@ %global pypi_name pytest-mock %global file_name pytest_mock -%global desc This plugin installs a mocker fixture which is a thin-wrapper around the \ -patching API provided by the mock package, but with the benefit of not having \ -to worry about undoing patches at the end of a test. Name: python-%{pypi_name} -Version: 3.3.1 +Version: 3.4.0 Release: 1%{?dist} Summary: Thin-wrapper around the mock package for easier use with py.test @@ -15,19 +12,23 @@ Source0: %{pypi_source} BuildArch: noarch %description -%{desc} +This plugin installs a mocker fixture which is a thin-wrapper around the +patching API provided by the mock package, but with the benefit of not having +to worry about undoing patches at the end of a test. %package -n python3-%{pypi_name} Summary: %{summary} -BuildArch: noarch + BuildRequires: python3-devel -BuildRequires: python3-pytest -BuildRequires: python3-setuptools_scm -BuildRequires: python3-pytest-asyncio +BuildRequires: %py3_dist pytest +BuildRequires: %py3_dist setuptools_scm +BuildRequires: %py3_dist pytest-asyncio %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} -%{desc} +This plugin installs a mocker fixture which is a thin-wrapper around the +patching API provided by the mock package, but with the benefit of not having +to worry about undoing patches at the end of a test. %prep %autosetup -n %{pypi_name}-%{version} -p1 @@ -42,7 +43,7 @@ sed -i 's/\r$//' README.rst %py3_install %check -PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \ +%pytest -v tests \ -k "not test_standalone_mock and not test_detailed_introspection and not test_detailed_introspection \ and not test_assert_called_args_with_introspection and not test_assert_called_kwargs_with_introspection" @@ -53,8 +54,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \ %{python3_sitelib}/%{file_name}-%{version}-py%{python3_version}.egg-info/ %changelog -* Sat Aug 29 2020 Fabian Affolter - 3.3.1-1 -- Update to latest upstream release 3.3.1 (rhbz#1871290) +* Wed Dec 16 2020 Fabian Affolter - 3.4.0-1 +- Update macros +- Update to new upstream release 3.4.0 (#1907878) * Fri Aug 21 2020 Fabian Affolter - 3.3.0-1 - Update to latest upstream release 3.3.0 (rhbz#1871290) diff --git a/sources b/sources index ec5b83e..e1ee30f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pytest-mock-3.3.1.tar.gz) = ffd53974f82f725cf3bdbe750c1deb568ad1a12a67532eca93ff28d80b1cbcd8ebf709985f5473717c9d54345b251c1627c0567821e9e8b9e102db5c16cf7421 +SHA512 (pytest-mock-3.4.0.tar.gz) = 5456b60bdd06a63859232b28aeb79be643e8298e69ae103cb6e194891987e01b17771ad895dfead97fa45531959689fb202bb1ebc9ba44491098760c10d1ef43