diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-03-21 16:04:57 +0530 |
---|---|---|
committer | Valerii Ponomarov <vponomar@redhat.com> | 2019-04-11 16:48:36 +0530 |
commit | 5fe05c3d09126453423a3d2ee97a4586ec6592c1 (patch) | |
tree | cc8d28f20c2e6fc29d172bae2744f66a62d1b336 /tox.ini | |
parent | 6497ec872180781c4131e7e2f901c1f84a9f5853 (diff) |
Add py3 support to our tox config and fix several incompatibilities
Required steps to run test cases using py3:
1) Install py3
2) Install 'tox' package using "pip3"
3) Run test cases using tox package installed via pip3
Note that full py3 support is not tested yet. It only allows you to run
it on py3 not providing any guarantees.
Example:
$ python3 -m tox -e functional3 -- \
glusto -c /path/to/the/config/file.yaml \
'--pytest=-v -rsx tests -k test_glusterblock_logs'
Change-Id: I610faac0b75364c401734b6f892649893ca2320e
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -21,6 +21,7 @@ commands = commands = {[testenv]commands} pip install \ + simplejson \ mock \ rtyaml \ ddt \ @@ -32,6 +33,24 @@ commands = --editable=file:///{toxinidir}/openshift-storage-libs {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"} +[testenv:functional3] +basepython = python3 +commands = + find . -type f -name "*.py[c|o]" -delete + python3 -m pip install --upgrade pip>=9.0.0 setuptools wheel + pip3 install \ + simplejson \ + mock \ + rtyaml \ + ddt \ + prometheus_client>=0.4.2 \ + git+git://github.com/loadtheaccumulator/glusto.git@python3_port1 \ + "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-gluster&subdirectory=glustolibs-gluster" \ + "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-io&subdirectory=glustolibs-io" \ + "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-misc&subdirectory=glustolibs-misc" \ + --editable=file:///{toxinidir}/openshift-storage-libs + {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"} + [testenv:venv] commands = {posargs} |