[packages/python-webtest] new, version 1.3.4

glen glen at pld-linux.org
Sat Mar 9 15:00:44 CET 2013


commit 3f50ff1d33e577934613d501fe4a38f15e82aaad
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Mar 9 15:55:08 2013 +0200

    new, version 1.3.4
    
    based on fedora package
    aec1bd488272d67dbf432aee93d008aaa5a4238e

 python-webtest.spec | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 114 insertions(+)
---
diff --git a/python-webtest.spec b/python-webtest.spec
new file mode 100644
index 0000000..177b2f2
--- /dev/null
+++ b/python-webtest.spec
@@ -0,0 +1,114 @@
+#
+# TODO
+# - python3 tests broken
+
+# Conditional build:
+%bcond_without	python3	# CPython 3.x module
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	webtest
+Summary:	Helper to test WSGI applications
+Name:		python-%{module}
+Version:	1.3.4
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+URL:		http://pythonpaste.org/webtest/
+Source0:	http://pypi.python.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz
+# Source0-md5:	be4b448e91306f297e6e302c3ebe9540
+BuildRequires:	python-WebOb
+BuildRequires:	python-dtopt
+BuildRequires:	python-nose
+BuildRequires:	python-setuptools
+%if %{with python3}
+BuildRequires:	python3-WebOb
+BuildRequires:	python3-devel
+BuildRequires:	python3-dtopt
+BuildRequires:	python3-nose
+BuildRequires:	python3-setuptools
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%package -n python3-webtest
+Summary:	Helper to test WSGI applications
+Group:		Libraries/Python
+
+%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.
+
+%prep
+%setup -q -n WebTest-%{version}
+
+# Remove bundled egg info if it exists.
+rm -r *.egg-info
+
+%if %{with python3}
+rm -rf py3
+set -- *
+install -d py3
+cp -a "$@" py3
+%endif
+
+%build
+%{__python} setup.py build
+
+%if %{with python3}
+cd py3
+%{__python3} setup.py build
+cd ..
+%endif
+
+%if %{with tests}
+PYTHONPATH=$(pwd) %{__python} setup.py test
+
+%if %{with python3}
+cd py3
+#PYTHONPATH=$(pwd) %{__python3} setup.py test
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python3}
+cd py3
+%{__python3} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+cd ..
+%endif
+
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc docs/*
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/WebTest-%{version}-py*.egg-info
+
+%if %{with python3}
+%files -n python3-webtest
+%defattr(644,root,root,755)
+%doc docs/*
+%{py3_sitescriptdir}/WebTest-%{version}-py*.egg-info
+%{py3_sitescriptdir}/%{module}/*.py
+%{py3_sitescriptdir}/%{module}/__pycache__
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-webtest.git/commitdiff/3f50ff1d33e577934613d501fe4a38f15e82aaad



More information about the pld-cvs-commit mailing list