|
|
|
@ -11,12 +11,11 @@
|
|
|
|
|
#global shortcommit %%(c=%%{github_commit}; echo ${c:0:7})
|
|
|
|
|
#global github_date 20161011
|
|
|
|
|
|
|
|
|
|
%global run_tests 1
|
|
|
|
|
|
|
|
|
|
Name: python-httpretty
|
|
|
|
|
Version: 1.0.5
|
|
|
|
|
# If github_date is defined, assume a post-release snapshot
|
|
|
|
|
Release: 1%{?github_date:.%{github_date}git%{shortcommit}}%{?dist}
|
|
|
|
|
Release: 5%{?github_date:.%{github_date}git%{shortcommit}}%{?dist}
|
|
|
|
|
Summary: HTTP request mock tool for Python
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
@ -50,17 +49,6 @@ Requires: python%{?fedora:2}-six
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
# For tests
|
|
|
|
|
BuildRequires: python%{?fedora:2}-httplib2
|
|
|
|
|
BuildRequires: python%{?fedora:2}-mock
|
|
|
|
|
BuildRequires: python%{?fedora:2}-nose
|
|
|
|
|
BuildRequires: python%{?fedora:2}-requests
|
|
|
|
|
BuildRequires: python%{?fedora:2}-sure
|
|
|
|
|
BuildRequires: python%{?fedora:2}-urllib3
|
|
|
|
|
BuildRequires: python%{?fedora:2}-tornado
|
|
|
|
|
BuildRequires: python%{?fedora:2}-eventlet
|
|
|
|
|
BuildRequires: python%{?fedora:2}-freezegun
|
|
|
|
|
BuildRequires: python%{?fedora:2}-redis
|
|
|
|
|
%if 0%{?epel} == 6
|
|
|
|
|
# Need unittest2 to get the 'skip' decorator
|
|
|
|
|
BuildRequires: python-unittest2
|
|
|
|
@ -77,17 +65,6 @@ Requires: python%{python3_pkgversion}-six
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
# For tests
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-httplib2
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-mock
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-nose
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-requests
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-sure
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-urllib3
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-tornado
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-eventlet
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-freezegun
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-redis
|
|
|
|
|
|
|
|
|
|
%description -n python3-httpretty
|
|
|
|
|
Once upon a time a python developer wanted to use a RESTful API, everything was
|
|
|
|
@ -128,18 +105,6 @@ LANG=C.UTF-8 %py2_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{run_tests}
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
LANG=C.UTF-8 %{__python2} -m nose -v
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_python3}
|
|
|
|
|
%{__python3} -m nose -v
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
@ -160,6 +125,22 @@ LANG=C.UTF-8 %{__python2} -m nose -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.5-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.5-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Mon Apr 12 2021 Miroslav Rezanina <mrezanin@redhat.com> 1.0.5-3
|
|
|
|
|
- Removing tests
|
|
|
|
|
- Resolves: rhbz#1918839
|
|
|
|
|
- Resolves: rhbz#1945223
|
|
|
|
|
- Resolves: rhbz#1922337
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 6 2021 Jiri Popelka <jpopelka@redhat.com> - 1.0.5-1
|
|
|
|
|
- 1.0.5
|
|
|
|
|
- Enable tests for F34 (#1896191 has been resolved)
|
|
|
|
|