%global _empty_manifest_terminate_build 0 Name: python-mock Version: 5.0.1 Release: 1 Summary: Rolling backport of unittest.mock for all Pythons License: BSD License URL: http://mock.readthedocs.org/en/latest/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a9/c8/7f5fc5ee6a666d7e4ee7a3222bcb37ebebaea3697d7bf54517728f56bb28/mock-5.0.1.tar.gz BuildArch: noarch Requires: python3-twine Requires: python3-wheel Requires: python3-blurb Requires: python3-sphinx Requires: python3-pytest Requires: python3-pytest-cov %description mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. mock is now part of the Python standard library, available as `unittest.mock `_ in Python 3.3 onwards. This package contains a rolling backport of the standard library mock code compatible with Python 3.6 and up. Please see the standard library documentation for more details. :Homepage: `Mock Homepage`_ :Download: `Mock on PyPI`_ :Documentation: `Python Docs`_ :License: `BSD License`_ :Support: `Mailing list (testing-in-python@lists.idyll.org) `_ :Code: `GitHub `_ :Issue tracker: `GitHub Issues `_ :Build status: |CircleCI|_ |Docs|_ .. |CircleCI| image:: https://circleci.com/gh/testing-cabal/mock/tree/master.svg?style=shield .. _CircleCI: https://circleci.com/gh/testing-cabal/mock/tree/master .. |Docs| image:: https://readthedocs.org/projects/mock/badge/?version=latest .. _Docs: http://mock.readthedocs.org/en/latest/ .. _Mock Homepage: http://mock.readthedocs.org/en/latest/ .. _BSD License: https://github.com/testing-cabal/mock/blob/master/LICENSE.txt .. _Python Docs: https://docs.python.org/dev/library/unittest.mock.html .. _mock on PyPI: https://pypi.org/project/mock/ %package -n python3-mock Summary: Rolling backport of unittest.mock for all Pythons Provides: python-mock BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-mock mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. mock is now part of the Python standard library, available as `unittest.mock `_ in Python 3.3 onwards. This package contains a rolling backport of the standard library mock code compatible with Python 3.6 and up. Please see the standard library documentation for more details. :Homepage: `Mock Homepage`_ :Download: `Mock on PyPI`_ :Documentation: `Python Docs`_ :License: `BSD License`_ :Support: `Mailing list (testing-in-python@lists.idyll.org) `_ :Code: `GitHub `_ :Issue tracker: `GitHub Issues `_ :Build status: |CircleCI|_ |Docs|_ .. |CircleCI| image:: https://circleci.com/gh/testing-cabal/mock/tree/master.svg?style=shield .. _CircleCI: https://circleci.com/gh/testing-cabal/mock/tree/master .. |Docs| image:: https://readthedocs.org/projects/mock/badge/?version=latest .. _Docs: http://mock.readthedocs.org/en/latest/ .. _Mock Homepage: http://mock.readthedocs.org/en/latest/ .. _BSD License: https://github.com/testing-cabal/mock/blob/master/LICENSE.txt .. _Python Docs: https://docs.python.org/dev/library/unittest.mock.html .. _mock on PyPI: https://pypi.org/project/mock/ %package help Summary: Development documents and examples for mock Provides: python3-mock-doc %description help mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. mock is now part of the Python standard library, available as `unittest.mock `_ in Python 3.3 onwards. This package contains a rolling backport of the standard library mock code compatible with Python 3.6 and up. Please see the standard library documentation for more details. :Homepage: `Mock Homepage`_ :Download: `Mock on PyPI`_ :Documentation: `Python Docs`_ :License: `BSD License`_ :Support: `Mailing list (testing-in-python@lists.idyll.org) `_ :Code: `GitHub `_ :Issue tracker: `GitHub Issues `_ :Build status: |CircleCI|_ |Docs|_ .. |CircleCI| image:: https://circleci.com/gh/testing-cabal/mock/tree/master.svg?style=shield .. _CircleCI: https://circleci.com/gh/testing-cabal/mock/tree/master .. |Docs| image:: https://readthedocs.org/projects/mock/badge/?version=latest .. _Docs: http://mock.readthedocs.org/en/latest/ .. _Mock Homepage: http://mock.readthedocs.org/en/latest/ .. _BSD License: https://github.com/testing-cabal/mock/blob/master/LICENSE.txt .. _Python Docs: https://docs.python.org/dev/library/unittest.mock.html .. _mock on PyPI: https://pypi.org/project/mock/ %prep %autosetup -n mock-5.0.1 %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 . %files -n python3-mock -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon Apr 10 2023 Python_Bot - 5.0.1-1 - Package Spec generated