diff --git a/.gitignore b/.gitignore index b164e70..4beeb5d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /pytest-mock-1.10.2.tar.gz /pytest-mock-1.10.3.tar.gz /pytest-mock-1.10.4.tar.gz +/pytest-mock-3.2.0.tar.gz diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec index 1480b68..bc469c4 100644 --- a/python-pytest-mock.spec +++ b/python-pytest-mock.spec @@ -4,70 +4,58 @@ 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: 1.10.4 -Release: 10%{?dist} +Version: 3.2.0 +Release: 1%{?dist} Summary: Thin-wrapper around the mock package for easier use with py.test License: MIT -URL: https://pypi.python.org/pypi/pytest-mock -Source0: https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz +URL: https://github.com/pytest-dev/pytest-mock/ +Source0: %{pypi_source} BuildArch: noarch -# Fix tests expectations with latest pytest (4.6.3+) -Patch0: fix-expectations-pytest-4.6.3.patch -# Fix tests due to new formatting in mock 3.0 and python 3.8 (See https://github.com/pytest-dev/pytest-mock/commit/b3badafebedea3605c90eb22a68adff2885a8bb0) -Patch1: fix-mock-python-3.8.patch %description %{desc} - %package -n python3-%{pypi_name} Summary: %{summary} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-pytest >= 2.7 +BuildRequires: python3-pytest BuildRequires: python3-setuptools_scm +BuildRequires: python3-pytest-asyncio %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{desc} - %prep -%setup -qn %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 rm -rf *.egg-info -%patch0 -p1 -%patch1 -p1 - # Correct end of line encoding for README sed -i 's/\r$//' README.rst - %build %py3_build - %install %py3_install - %check -PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py - +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -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" %files -n python3-%{pypi_name} -%doc README.rst +%doc CHANGELOG.rst README.rst %license LICENSE +%{python3_sitelib}/%{file_name}/ %{python3_sitelib}/%{file_name}-%{version}-py%{python3_version}.egg-info/ -%{python3_sitelib}/%{file_name}.py* -%{python3_sitelib}/__pycache__/%{file_name}*.py* -%{python3_sitelib}/_pytest_mock_version.py* -%{python3_sitelib}/__pycache__/_pytest_mock_version.cpython* - %changelog +* Fri Aug 21 2020 Fabian Affolter - 3.2.0-1 +- Update to latest upstream release 3.2.0 (rhbz#1756646) + * Wed Jul 29 2020 Fedora Release Engineering - 1.10.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index ea55281..dac34cc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pytest-mock-1.10.4.tar.gz) = 855ed6d2de6fb88bdc476b36b70373126859194cd01fd6b8700e2d42ccfb5b309c6b5d20dabb1306648b37045c2dd150682c3204f06f7e5ba1435353b66445e9 +SHA512 (pytest-mock-3.2.0.tar.gz) = 1ff442e26339ac41414a8678303fbc7eab573964661c664ef029c3b3377df4ab40173976316ef99e49dd208dc1e3c7cd0a0090f5453865343090cc9439f85fa9