diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2015-08-22 09:49:01 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2015-08-22 09:49:01 -0700 |
commit | 3ff5625231107957286b0cae82a9e760074bf2ee (patch) | |
tree | c5b5d5bb662da2a2fedf15ba5dc7bf01e6bf89dd /python/tox.ini | |
parent | eb65c69e14fb711208ad5111cb9672f00864bb6d (diff) | |
parent | 46969b99ca101e8e4cfcf125d776d724505ffc8f (diff) | |
download | protobuf-3ff5625231107957286b0cae82a9e760074bf2ee.tar.gz protobuf-3ff5625231107957286b0cae82a9e760074bf2ee.tar.bz2 protobuf-3ff5625231107957286b0cae82a9e760074bf2ee.zip |
Merge pull request #722 from dano/py2_py3_straddle
Add tox, Python 2.6 compatibility, and many Python 3 compatibility fixes
Diffstat (limited to 'python/tox.ini')
-rw-r--r-- | python/tox.ini | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/python/tox.ini b/python/tox.ini new file mode 100644 index 00000000..9a934d0a --- /dev/null +++ b/python/tox.ini @@ -0,0 +1,24 @@ +[tox] +envlist = + # Py3 tests currently fail because of text handling issues, + # So only test py26/py27 for now. + #py{26,27,33,34}-{cpp,python} + py{26,27}-{cpp,python} + +[testenv] +usedevelop=true +setenv = + cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs + cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs + cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp +commands = + python setup.py -q build_py + python: python setup.py -q build + cpp: python setup.py -q build --cpp_implementation + python: python setup.py -q test -q + cpp: python setup.py -q test -q --cpp_implementation +deps = + # Keep this list of dependencies in sync with setup.py. + six + py26: ordereddict + py26: unittest2 |