From 78224cf2efac567cbec63ab71d43b513fcc35322 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 22 2019 23:28:50 +0000 Subject: import python-webtest-1.3.4-6.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0bec29c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/WebTest-1.3.4.tar.gz diff --git a/.python-webtest.metadata b/.python-webtest.metadata new file mode 100644 index 0000000..69e24dd --- /dev/null +++ b/.python-webtest.metadata @@ -0,0 +1 @@ +ae486dea68b51cf372415f9c9e42d7309967b9e9 SOURCES/WebTest-1.3.4.tar.gz diff --git a/SPECS/python-webtest.spec b/SPECS/python-webtest.spec new file mode 100644 index 0000000..f88a28a --- /dev/null +++ b/SPECS/python-webtest.spec @@ -0,0 +1,185 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%if 0%{?fedora} +%global with_python3 1 +%endif + +Name: python-webtest +Version: 1.3.4 +Release: 6%{?dist} +Summary: Helper to test WSGI applications + +Group: Development/Languages +License: MIT +URL: http://pythonpaste.org/webtest/ +Source0: http://pypi.python.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildArch: noarch +BuildRequires: python-setuptools +BuildRequires: python-nose +BuildRequires: python-webob +BuildRequires: python-dtopt + +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-nose +BuildRequires: python3-webob +BuildRequires: python3-dtopt +Requires: python3-webob +%endif + +Requires: python-webob + +%description +WebTest wraps any WSGI application and makes it easy to send test +requests to that application, without starting up an HTTP server. + +This provides convenient full-stack testing of applications written +with any WSGI-compatible framework. + +%if 0%{?with_python3} +%package -n python3-webtest +Summary: Helper to test WSGI applications +Group: Development/Languages + +Requires: python3-webtest + +%description -n python3-webtest +WebTest wraps any WSGI application and makes it easy to send test +requests to that application, without starting up an HTTP server. + +This provides convenient full-stack testing of applications written +with any WSGI-compatible framework. +%endif + + +%prep +%setup -q -n WebTest-%{version} + +# Remove bundled egg info if it exists. +rm -rf *.egg-info + +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif + +%build +%{__python} setup.py build + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif + +%install +%{__rm} -rf %{buildroot} +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} +popd +%endif + +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%clean +%{__rm} -rf %{buildroot} + +%check +PYTHONPATH=$(pwd) %{__python} setup.py test + +%if 0%{?with_python3} +pushd %{py3dir} +PYTHONPATH=$(pwd) %{__python3} setup.py test +popd +%endif + +%files +%doc docs/* +%{python_sitelib}/webtest +%{python_sitelib}/*.egg-info + +%if 0%{?with_python3} +%files -n python3-webtest +%doc docs/* +%{python3_sitelib}/webtest +%{python3_sitelib}/*.egg-info +%endif + +%changelog +* Fri Dec 27 2013 Daniel Mach - 1.3.4-6 +- Mass rebuild 2013-12-27 + +* Fri Apr 5 2013 Luke Macken - 1.3.4-5 +- Made the python3 subpackage require python-webob instead of python-webob1.2 + +* Tue Feb 19 2013 Ralph Bean - 1.3.4-4 +- Added python3 subpackage + +* Thu Feb 14 2013 Fedora Release Engineering - 1.3.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 1.3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Jun 24 2012 Ricky Zhou - 1.3.4-1 +- Update to 1.3.4. + +* Sat Jan 14 2012 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Dec 14 2011 Luke Macken - 1.3.3-1 +- Update to 1.3.3 + +* Fri Jul 15 2011 Toshio Kuratomi - 1.2.3-1 +- Update to 1.2.3 + +* Wed Feb 09 2011 Fedora Release Engineering - 1.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Oct 05 2010 Luke Macken - 1.2.2-1 +- Update to 1.2.2 +- Add python-dtopt to the BuildRequires +- Include the docs again + +* Sun Jul 25 2010 Orcan Ogetbil - 1.2.1-3 +- Disable tests and docs for now. They are not included in this tarball + +* Thu Jul 22 2010 David Malcolm - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Wed Jun 09 2010 Luke Macken - 1.2.1-1 +- Update to 1.2.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sun May 31 2009 Luke Macken - 1.2-1 +- Update to 1.2 + +* Tue Apr 14 2009 Ricky Zhou - 1.1-3 +- Change define to global. +- Remove old >= 8 conditional. +- Remove unnecessary BuildRequires on python-devel. + +* Thu Feb 26 2009 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Dec 06 2008 Ricky Zhou - 1.1-1 +- Upstream released new version. + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.0-4 +- Rebuild for Python 2.6 + +* Thu Jul 17 2008 Ricky Zhou - 1.0-3 +- Update Requires for python-webob rename. +- Add BuildRequires on python-webob for tests. + +* Sat Jul 07 2008 Ricky Zhou - 1.0-2 +- Add %%check section. + +* Sat Jun 14 2008 Ricky Zhou - 1.0-1 +- Initial RPM Package.