Source

suds python 3 patches / test environment

# 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.