diff --git a/pytest-mock-3.10.0.tar.gz b/pytest-mock-3.10.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..76ee223b109c2f4595d4093249c32f13be7b0289 Binary files /dev/null and b/pytest-mock-3.10.0.tar.gz differ diff --git a/pytest-mock-3.6.1.tar.gz b/pytest-mock-3.6.1.tar.gz deleted file mode 100644 index 5b8477d1ccd382fe131c881276b67bb440b97d11..0000000000000000000000000000000000000000 Binary files a/pytest-mock-3.6.1.tar.gz and /dev/null differ diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec index a4e22c72c59fe01b0c5d023bd669dfa6279b50fd..20b20feeedecf6148b0a6561930c43be53041766 100644 --- a/python-pytest-mock.spec +++ b/python-pytest-mock.spec @@ -1,26 +1,25 @@ +%global _empty_manifest_terminate_build 0 Name: python-pytest-mock -Version: 3.6.1 +Version: 3.10.0 Release: 1 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/b3/08/b131e1b5c628a7d46c9b8d676a86a8d235bced79b9d90845500e39df81b9/pytest-mock-%{version}.tar.gz -Patch0001: pytest-mock-issue272-asyncio.patch +Source0: https://files.pythonhosted.org/packages/f6/2b/137a7db414aeaf3d753d415a2bc3b90aba8c5f61dff7a7a736d84b2ec60d/pytest-mock-3.10.0.tar.gz BuildArch: noarch +Requires: python3-pytest >= 2.7 + %description This plugin provides a mocker fixture which is a thin-wrapper around the patching API provided by the mock package. Besides undoing the mocking automatically after the end of the test, it also provides other nice utilities. -%package -n python3-pytest-mock +%package -n python3-pytest-mock Summary: Thin-wrapper around the mock package for easier use with py.test -BuildArch: noarch +Provides: python-pytest-mock = %{version}-%{release} BuildRequires: python3-devel python3-pytest >= 2.7 python3-setuptools_scm python3-pytest-mock -Requires: python3-pytest >= 2.7 -%{?python_provide:%python_provide python3-pytest-mock} - %description -n python3-pytest-mock This plugin provides a mocker fixture which is a thin-wrapper around the patching API provided by the mock package. @@ -28,27 +27,52 @@ Besides undoing the mocking automatically after the end of the test, it also provides other nice utilities. %prep -%autosetup -n pytest-mock-%{version} -p1 -rm -rf *.egg-info +%autosetup -n pytest-mock-%{version} %build %py3_build - %install %py3_install - +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %check -/usr/bin/pytest --assert=plain +%{__python3} setup.py test + +%files -n python3-pytest-mock -f filelist.lst +%dir %{python3_sitelib}/* -%files -n python3-pytest-mock -%doc README.rst -%license LICENSE -%{python3_sitelib}/pytest_mock-%{version}-py%{python3_version}.egg-info/ -%{python3_sitelib}/pytest_mock/ +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Dec 05 2022 liqiuyu - 3.10.0-1 +- Update package to version 3.10.0 + * Tue Apr 26 2022 caodongxia - 3.6.1-1 - update to 3.6.1