Skip to content

Commit d73923d

Browse files
committed
Add script for easily testing on Python 3.
1 parent c1bfa2b commit d73923d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

run_tests_py3.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
python3 setup.py build
3+
4+
if [ -d build/py3_testing ]; then
5+
rm -r build/py3_testing
6+
echo "Removed py3_testing directory from previous run."
7+
fi
8+
9+
mkdir build/py3_testing
10+
cp -r test build/py3_testing/
11+
cp run_tests.py build/py3_testing/
12+
cp -r build/lib/rdflib build/py3_testing/
13+
14+
cd build/py3_testing
15+
16+
2to3 -wn --no-diffs test
17+
2to3 -wn --no-diffs run_tests.py
18+
19+
python3 run_tests.py

0 commit comments

Comments
 (0)