|
|
|
@ -2,13 +2,14 @@
|
|
|
|
|
%global file_name pytest_mock
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 3.6.1
|
|
|
|
|
Release: 1%{?dist}.1
|
|
|
|
|
Version: 3.14.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Thin-wrapper around the mock package for easier use with py.test
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/pytest-dev/pytest-mock/
|
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -23,7 +24,9 @@ BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: %py3_dist setuptools
|
|
|
|
|
BuildRequires: %py3_dist pytest
|
|
|
|
|
BuildRequires: %py3_dist setuptools_scm
|
|
|
|
|
#BuildRequires: %%py3_dist pytest-asyncio -- optional test dep not available on EPEL9 (yet)
|
|
|
|
|
%if %{undefined rhel}
|
|
|
|
|
BuildRequires: %py3_dist pytest-asyncio
|
|
|
|
|
%endif
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
@ -37,26 +40,93 @@ rm -rf *.egg-info
|
|
|
|
|
# Correct end of line encoding for README
|
|
|
|
|
sed -i 's/\r$//' README.rst
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%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"
|
|
|
|
|
and not test_assert_called_args_with_introspection and not test_assert_called_kwargs_with_introspection \
|
|
|
|
|
and not test_plain_stopall and not test_used_with_class_scope and not est_used_with_module_scope \
|
|
|
|
|
and not test_used_with_package_scope and not test_used_with_session_scope \
|
|
|
|
|
%{?rhel:and not test_instance_async_method_spy}"
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
%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}-%{version}.dist-info/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Nov 18 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.6.1-1
|
|
|
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
|
* Tue Dec 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.14.0-2
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 15 2024 Julien Enselme - 3.14.0-1
|
|
|
|
|
- Update to 3.14.0
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.12.0-5
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2024 Julien Enselme <jujens@jujens.eu> - 3.12.0-4
|
|
|
|
|
- Bump version after adding patch to fix tests.
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Oct 21 2023 Julien Enselme <jujens@jujens.eu> - 3.12.0-1
|
|
|
|
|
- Update to 3.12.0
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 04 2023 Python Maint <python-maint@redhat.com> - 3.11.1-2
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Tue Jul 04 2023 Julien Enselme <jujens@jujens.eu> - 3.11.1
|
|
|
|
|
- Update to 3.11.1
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.10.0-3
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 01 2022 Lumír Balhar <lbalhar@redhat.com> - 3.10.0-1
|
|
|
|
|
- Update to 3.10.0
|
|
|
|
|
Resolves: rhbz#2132453
|
|
|
|
|
|
|
|
|
|
* Wed Sep 28 2022 Fabian Affolter <mail@fabian-affolter.ch> - 3.9.0-1
|
|
|
|
|
- Update to latest upstream release 3.9.0 (closes rhbz#2130519)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 06 2022 Julien Enselme <jujens@jujens.eu> - 3.8.2-1
|
|
|
|
|
- Update to 3.8.2
|
|
|
|
|
|
|
|
|
|
* Wed Jun 29 2022 Julien Enselme <jujens@jujens.eu> - 3.8.1-1
|
|
|
|
|
- Update to 3.8.1
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.7.0-2
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Wed Feb 23 2022 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.0-1
|
|
|
|
|
- Update to latest upstream release 3.7.0 (closes rhbz#2047739)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 26 2021 Carl George <carl@george.computer> - 3.6.1-1
|
|
|
|
|
- Latest upstream
|
|
|
|
|