summaryrefslogtreecommitdiff
path: root/python-mock.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 08:01:04 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 08:01:04 +0000
commit7f569bfa8c49210999e066818f86f1efd52f905b (patch)
tree818bc67c71e67f878decb08d02c2021634d87602 /python-mock.spec
parent04a018ff4febdbc7aaf622aee1b67140c5212414 (diff)
automatic import of python-mock
Diffstat (limited to 'python-mock.spec')
-rw-r--r--python-mock.spec192
1 files changed, 192 insertions, 0 deletions
diff --git a/python-mock.spec b/python-mock.spec
new file mode 100644
index 0000000..9f0208b
--- /dev/null
+++ b/python-mock.spec
@@ -0,0 +1,192 @@
+%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
+<https://docs.python.org/dev/library/unittest.mock.html>`_ 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)
+ <http://lists.idyll.org/listinfo/testing-in-python>`_
+:Code: `GitHub
+ <https://github.com/testing-cabal/mock>`_
+:Issue tracker: `GitHub Issues
+ <https://github.com/testing-cabal/mock/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
+<https://docs.python.org/dev/library/unittest.mock.html>`_ 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)
+ <http://lists.idyll.org/listinfo/testing-in-python>`_
+:Code: `GitHub
+ <https://github.com/testing-cabal/mock>`_
+:Issue tracker: `GitHub Issues
+ <https://github.com/testing-cabal/mock/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
+<https://docs.python.org/dev/library/unittest.mock.html>`_ 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)
+ <http://lists.idyll.org/listinfo/testing-in-python>`_
+:Code: `GitHub
+ <https://github.com/testing-cabal/mock>`_
+:Issue tracker: `GitHub Issues
+ <https://github.com/testing-cabal/mock/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 <Python_Bot@openeuler.org> - 5.0.1-1
+- Package Spec generated