From: Hyunjee Kim Date: Fri, 10 Apr 2020 01:56:15 +0000 (+0900) Subject: Revert "Add python3-mock" X-Git-Tag: accepted/tizen/6.0/unified/20201030.112645^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.0;p=platform%2Fupstream%2Fpython-mock.git Revert "Add python3-mock" This reverts commit f5ab31f418af999fa4d24561c6483155190e8d44. Change-Id: Ib6f69a2fe70396cf1c0a32d2b166d7b1cc93b655 Signed-off-by: Hyunjee Kim --- diff --git a/packaging/python3-mock.manifest b/packaging/python3-mock.manifest deleted file mode 100644 index 017d22d..0000000 --- a/packaging/python3-mock.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/python3-mock.spec b/packaging/python3-mock.spec deleted file mode 100644 index 50a28d5..0000000 --- a/packaging/python3-mock.spec +++ /dev/null @@ -1,70 +0,0 @@ -# -# spec file for package python-mock -# -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - -%define debug_package %{nil} - -Name: python3-mock -Version: 2.0.0 -Release: 0 -Url: http://www.voidspace.org.uk/python/mock/ -Summary: A Python Mocking and Patching Library for Testing -License: BSD-2-Clause -Group: Development/Languages/Python -Source: https://pypi.io/packages/source/m/mock/mock-%{version}.tar.gz -Source1001: %{name}.manifest - -BuildRequires: python3-pbr -BuildRequires: python3-setuptools >= 17.1 -BuildRequires: python3-six -BuildRequires: python3-funcsigs -BuildRequires: python3-unittest2 - -Requires: python3-funcsigs >= 1 -Requires: python3-pbr -Requires: python3-six >= 1.9 - -BuildArch: noarch - -%description -mock is a Python module that provides a core Mock class. It removes the need -to create a host of stubs throughout your test suite. After performing an -action, you can make assertions about which methods / attributes were used and -arguments they were called with. You can also specify return values and set -needed attributes in the normal way. - -%prep -%setup -q -n mock-%{version} -# remove test runner which causes test failure all by itself -rm mock/tests/__main__.py - -%build -cp %{SOURCE1001} . -%{_bindir}/python3 setup.py build - -%install -%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} - -%check -%{_bindir}/python3 setup.py test - -%files -%manifest %{name}.manifest -%defattr(-,root,root,-) -%license LICENSE.txt -%{python3_sitelib}/* - -%changelog