Skip to content
Bavarin Fleetfoot edited this page Feb 13, 2017 · 3 revisions

Test with Python 3

Introduction

To create a virtualenv with Python 3 to test python-creole do this:

  1. Create virtual environment with python 3:

~$ virtualenv --python=python3.2 --no-site-packages python3creole_env


1. activate it:
    ```fish
~$ cd python3creole_env/
~/python3creole_env$ source bin/activate
  1. Install from source (read-only git clone):

(python3creole_env)~/python3creole_env$ pip install --verbose --editable git+git://github.com/jedie/python-creole.git#egg=python-creole


1. Only for developer:
    ```fish
(python3creole_env)~/python3creole_env$ pip install --verbose --editable git+git@github.com:jedie/python-creole.git#egg=python-creole
  1. install distutils (needed for unit-tests)

(python3creole_env)~/python3creole_env$ pip install docutils


1. run unit-tests:
    ```fish
(python3creole_env)~/python3creole_env$ cd src/python-creole
(python3creole_env)~/python3creole_env/src/python-creole$ ./setup.py test

We using Shining Panda Service for running unit-tests automatically on GIT changes, see: