Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:buildbot-worker
python-mock
python-mock.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-mock.spec of Package python-mock
# # spec file for package python-mock # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # # Not yet in Fedora buildroot %{!?python3_pkgversion:%global python3_pkgversion 3} %global mod_name mock Name: python-mock Version: 2.0.0 Release: 13%{?dist} Summary: A Python Mocking and Patching Library for Testing License: BSD URL: http://www.voidspace.org.uk/python/%{mod_name}/ Source0: https://pypi.python.org/packages/source/m/%{mod_name}/%{mod_name}-%{version}.tar.gz Patch0: 0001-Remove-pbr-dependency.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %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. %package -n python3-mock %{?python_provide:%python_provide python3-%{mod_name}} Summary: A Python Mocking and Patching Library for Testing Requires: python3-six >= 1.9.0 %description -n python3-mock 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 %{mod_name}-%{version} %patch0 -p1 sed -i "s|VERSIONPLACEHOLDER|%{version}|" setup.cfg mock/mock.py %build %py3_build %install %py3_install %files -n python3-mock %license LICENSE.txt %doc docs/* %{python3_sitelib}/*.egg-info %{python3_sitelib}/%{mod_name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor