diff --git a/python-httpretty.spec b/python-httpretty.spec index 4ef832d..2f4d847 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -1,6 +1,6 @@ Name: python-httpretty Version: 0.9.5 -Release: 4 +Release: 5 Summary: HTTP Client mocking tool for Python License: MIT URL: https://pypi.org/project/httpretty/ @@ -10,22 +10,11 @@ Patch0001: python-httpretty-fakesock_getpeercert_noconnect.patch Patch0002: 0001-Handle-bugs-in-older-urllib3-versions-in-one-of-the-.patch Patch0003: 0001-Call-reset-from-setUp-and-tearDown-in-addition-to-en.patch -BuildRequires: python2-devel python2-setuptools python2-httplib2 python2-mock python2-nose -BuildRequires: python2-requests python2-sure python2-urllib3 python2-tornado python-unittest2 - BuildArch: noarch %description HTTP Client mocking tool for Python.Provides a full fake TCP socket module. -%package -n python2-httpretty -Summary: HTTP Client mocking tool for Python2 -Requires: python2-six -%{?python_provide:%python_provide python2-httpretty} - -%description -n python2-httpretty -HTTP Client mocking tool for Python2.Provides a full fake TCP socket module. - %package -n python3-httpretty Summary: HTTP Client mocking tool for Python3 BuildRequires: python3-devel python3-setuptools python3-httplib2 python3-mock @@ -42,23 +31,14 @@ sed -i 's/^with-randomly = 1$//' setup.cfg sed -i 's/^rednose = 1$//' setup.cfg %build -LANG=en_US.UTF-8 %py2_build LANG=en_US.UTF-8 %py3_build %install -LANG=en_US.UTF-8 %py2_install LANG=en_US.UTF-8 %py3_install %check -LANG=en_US.UTF-8 %{__python2} -m nose -v LANG=en_US.UTF-8 %{__python3} -m nose -v -%files -n python2-httpretty -%doc README.rst -%license COPYING -%{python2_sitelib}/httpretty -%{python2_sitelib}/httpretty-%{version}-py2.?.egg-info - %files -n python3-httpretty %doc README.rst %license COPYING @@ -66,5 +46,8 @@ LANG=en_US.UTF-8 %{__python3} -m nose -v %{python3_sitelib}/httpretty-%{version}-py3.?.egg-info %changelog +* Wed Aug 5 2020 zhangtao - 0.9.5-5 +- Remove python2 + * Sat Nov 23 2019 zhouyihang - 0.9.5-4 - Package init