Source

suds python 3 patches / test environment

Full commit
# HG changeset patch
# Parent e418190328abd7d67464ea66ed9c170cc9921de3
add py3testenv to makefile to prepare tests to be run with Python 3

diff --git a/makefile b/makefile
--- a/makefile
+++ b/makefile
@@ -20,6 +20,8 @@
 SETUP = setup.py
 DOCTAR = suds-docs.tar.gz
 FEDORAPEOPLE = jortel@fedorapeople.org
+PYTHON3 = python3
+PYTHON2TO3 = python3-2to3
 
 all : rpm docs
 
@@ -56,6 +58,13 @@
 	epydoc -vo doc --pdf `find suds -name \*.py`
 	mv doc/api.pdf doc/sudsapi.pdf
 
+py3testenv :
+	$(PYTHON3) setup.py build
+	rm -rf build/lib/tests
+	mkdir -p build/lib/tests
+	cp -r tests/* build/lib/tests
+	$(PYTHON2TO3) build/lib/tests -w -n 
+
 clean :
 	rm -rf dist
 	rm -rf build