Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 597134 Details for
Bug 838695
Support for python3-mock
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to python-mock.spec allowing support for python3-mock
0001-Python3-support.patch (text/plain), 2.86 KB, created by
Ralph Bean
on 2012-07-09 20:00:38 UTC
(
hide
)
Description:
Patch to python-mock.spec allowing support for python3-mock
Filename:
MIME Type:
Creator:
Ralph Bean
Created:
2012-07-09 20:00:38 UTC
Size:
2.86 KB
patch
obsolete
>From 8ba5ddfe8d64b0a724b162ccc032347c5780fe40 Mon Sep 17 00:00:00 2001 >From: Ralph Bean <rbean@redhat.com> >Date: Mon, 9 Jul 2012 15:58:42 -0400 >Subject: [PATCH] Python3 support. > >--- > python-mock.spec | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 53 insertions(+), 1 deletion(-) > >diff --git a/python-mock.spec b/python-mock.spec >index 9634a85..8dd00be 100644 >--- a/python-mock.spec >+++ b/python-mock.spec >@@ -1,8 +1,12 @@ >+%if 0%{?fedora} > 12 || 0%{?rhel} > 6 >+%global with_python3 1 >+%endif >+ > %global mod_name mock > > Name: python-mock > Version: 0.8.0 >-Release: 1%{?dist} >+Release: 2%{?dist} > Summary: A Python Mocking and Patching Library for Testing > > Group: Development/Libraries >@@ -14,6 +18,11 @@ Source1: LICENSE.txt > BuildArch: noarch > BuildRequires: python-devel > >+%if 0%{?with_python3} >+BuildRequires: python3-devel >+%endif >+ >+ > %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 >@@ -21,17 +30,49 @@ 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. > >+%if 0%{?with_python3} >+%package -n python3-mock >+Summary: A Python Mocking and Patching Library for Testing >+Group: Development/Libraries >+ >+%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. >+ >+%endif >+ > > %prep > %setup -q -n %{mod_name}-%{version} > cp -p %{SOURCE1} . > >+%if 0%{?with_python3} >+rm -rf %{py3dir} >+cp -ap . %{py3dir} >+%endif >+ >+ > %build > CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build > >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py build >+popd >+%endif >+ > > %install > rm -rf $RPM_BUILD_ROOT >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT >+popd >+%endif >+ > %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT > > >@@ -40,8 +81,19 @@ rm -rf $RPM_BUILD_ROOT > %{python_sitelib}/*.egg-info > %{python_sitelib}/%{mod_name}.py* > >+%if 0%{?with_python3} >+%files -n python3-mock >+%doc docs/ README.txt PKG-INFO LICENSE.txt >+%{python3_sitelib}/*.egg-info >+%{python3_sitelib}/%{mod_name}.py* >+%{python3_sitelib}/__pycache__/%{mod_name}* >+%endif >+ > > %changelog >+* Mon Jul 09 2012 Ralph Bean <rbean@redhat.com> - 0.8.0-2 >+- Python3 support >+ > * Thu Mar 22 2012 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.8.0-1 > - Updated to new version > >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 838695
: 597134