Brian Stinson 33ffc0
%global pypi_name pytest-mock
Brian Stinson 33ffc0
%global file_name pytest_mock
Brian Stinson 33ffc0
Brian Stinson 33ffc0
Name:           python-%{pypi_name}
07645c
Version:        3.5.1
07645c
Release:        2%{?dist}
Brian Stinson 33ffc0
Summary:        Thin-wrapper around the mock package for easier use with py.test
Brian Stinson 33ffc0
Brian Stinson 33ffc0
License:        MIT
07645c
URL:            https://github.com/pytest-dev/pytest-mock/
07645c
Source0:        %{pypi_source}
Brian Stinson 33ffc0
BuildArch:      noarch
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%description
07645c
This plugin installs a mocker fixture which is a thin-wrapper around the
07645c
patching API provided by the mock package, but with the benefit of not having
07645c
to worry about undoing patches at the end of a test.
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%package -n     python3-%{pypi_name}
Brian Stinson 33ffc0
Summary:        %{summary}
07645c
Brian Stinson 33ffc0
BuildRequires:  python3-devel
07645c
BuildRequires:  %py3_dist setuptools
07645c
BuildRequires:  %py3_dist pytest
07645c
BuildRequires:  %py3_dist setuptools_scm
07645c
BuildRequires:  %py3_dist pytest-asyncio
Brian Stinson 33ffc0
%{?python_provide:%python_provide python3-%{pypi_name}}
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%description -n python3-%{pypi_name}
07645c
This plugin installs a mocker fixture which is a thin-wrapper around the
07645c
patching API provided by the mock package, but with the benefit of not having
07645c
to worry about undoing patches at the end of a test.
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%prep
07645c
%autosetup -n %{pypi_name}-%{version} -p1
Brian Stinson 33ffc0
rm -rf *.egg-info
Brian Stinson 33ffc0
# Correct end of line encoding for README
Brian Stinson 33ffc0
sed -i 's/\r$//' README.rst
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%build
Brian Stinson 33ffc0
%py3_build
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%install
Brian Stinson 33ffc0
%py3_install
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%check
07645c
%pytest -v tests \
07645c
  -k "not test_standalone_mock and not test_detailed_introspection and not test_detailed_introspection \
07645c
  and not test_assert_called_args_with_introspection and not test_assert_called_kwargs_with_introspection"
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%files -n python3-%{pypi_name}
07645c
%doc CHANGELOG.rst README.rst
Brian Stinson 33ffc0
%license LICENSE
07645c
%{python3_sitelib}/%{file_name}/
Brian Stinson 33ffc0
%{python3_sitelib}/%{file_name}-%{version}-py%{python3_version}.egg-info/
Brian Stinson 33ffc0
Brian Stinson 33ffc0
%changelog
07645c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.1-2
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
07645c
07645c
* Mon Jan 11 2021 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.1-1
07645c
- Update to new upstream release 3.5.1 (#1912592)
07645c
07645c
* Tue Jan 05 2021 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.0-1
07645c
- Update to new upstream release 3.5.0 (#1912592)
07645c
07645c
* Wed Dec 16 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.4.0-1
07645c
- Update macros
07645c
- Update to new upstream release 3.4.0 (#1907878)
07645c
07645c
* Fri Aug 21 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.0-1
07645c
- Update to latest upstream release 3.3.0 (rhbz#1871290)
07645c
07645c
* Fri Aug 21 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.2.0-1
07645c
- Update to latest upstream release 3.2.0 (rhbz#1756646)
07645c
07645c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-10
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
07645c
07645c
* Fri May 29 2020 Miro Hrončok <mhroncok@redhat.com> - 1.10.4-9
07645c
- Drop manual requires on python3-pytest to support usage with pytest4 compat package
07645c
07645c
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.10.4-8
07645c
- Rebuilt for Python 3.9
07645c
07645c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-7
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
07645c
07645c
* Tue Oct 01 2019 Miro Hrončok <mhroncok@redhat.com> - 1.10.4-6
07645c
- Subpackage python2-pytest-mock has been removed
07645c
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
07645c
07645c
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.10.4-5
07645c
- Rebuilt for Python 3.8
07645c
07645c
* Thu Aug 01 2019 Julien Enselme <jujens@jujens.eu> - 1.10.4-4
07645c
- Fix build issues with python 3.8 and mock 3.0
07645c
07645c
* Tue Jul 30 2019 Julien Enselme <jujens@jujens.eu> - 1.10.4-3
07645c
- Fix build issues with pytest 4.6.3
07645c
07645c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-2
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
07645c
07645c
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 1.10.4-1
07645c
- Update to 1.10.4
07645c
07645c
* Thu Apr 04 2019 Miro Hrončok <mhroncok@redhat.com> - 1.10.3-1
07645c
- Update to 1.10.3
07645c
07645c
* Sat Feb 23 2019 Julien Enselme <jujens@jujens.eu> - 1.10.1-1
07645c
- Update to 1.10.1
07645c
07645c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-4
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
07645c
07645c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
07645c
07645c
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.10.0-2
07645c
- Rebuilt for Python 3.7
07645c
07645c
* Mon May 07 2018 Julien Enselme <jujens@jujens.eu> - 1.10.0-1
07645c
- Update to 1.10.0
07645c
07645c
* Sun Apr 15 2018 Julien Enselme <jujens@jujens.eu> - 1.9.0-1
07645c
- Update to 1.9.0
07645c
07645c
* Thu Mar 01 2018 Julien Enselme <jujens@jujens.eu> - 1.7.1-1
07645c
- Update to 1.7.1
07645c
07645c
* Mon Feb 19 2018 Julien Enselme <jujens@jujesn.eu> - 1.7.0-1
07645c
- Update to 1.7.0
07645c
07645c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-2
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
07645c
07645c
* Sat Sep 16 2017 Julien Enselme <jujens@jujens.eu> - 1.6.3-1
07645c
- Update to 1.6.3
07645c
07645c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
07645c
07645c
* Sun Jul 23 2017 Julien Enselme <jujens@jujens.eu> - 1.6.2-1
07645c
- Update to 1.6.2
07645c
07645c
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 1.6.0-2
07645c
- Add missing BR
07645c
07645c
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 1.6.0-1
07645c
- Update to 1.6.0
07645c
07645c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
07645c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
07645c
07645c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2-3
07645c
- Rebuild for Python 3.6
07645c
07645c
* Sat Oct 01 2016 Julien Enselme <jujens@jujens.eu> - 1.2-2
07645c
- Add patch to fix tests with pytest3
07645c
07645c
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 1.2-1
07645c
- Update to 1.2
Brian Stinson 33ffc0
07645c
* Wed Aug 31 2016 Julien Enselme <jujens@jujens.eu> - 1.1-3
07645c
- Use %%summary instead of custom %%sum macro
Brian Stinson 33ffc0
07645c
* Mon Aug 29 2016 Julien Enselme <jujens@jujens.eu> - 1.1-2
07645c
- Add python2-mock to BR so %%check passes correctly.
Brian Stinson 33ffc0
07645c
* Tue Jul 26 2016 Julien Enselme <jujens@jujens.eu> - 1.1-1
07645c
- Inital package