File: TESTING.rst

package info (click to toggle)
python-qrcode 5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 296 kB
  • ctags: 219
  • sloc: python: 1,552; sh: 32; makefile: 22
file content (21 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Testing
=======

First, install tox into your virtualenv::

    pip install -U tox

To run all the qrcode tests, you'll need to install the older Python
interpreters. Here's how you'll do it on a modern Ubuntu distribution::

    sudo add-apt-repository ppa:fkrull/deadsnakes
    sudo apt-get update
    sudo apt-get install python2.4-dev python2.6-dev

Ensure you have the libraries to build PIL, too::

    sudo apt-get install build-essential python-dev python3-dev 
    sudo apt-get install libjpeg8-dev zlib1g-dev

Finally, just run ``tox``!
If you want, you can test against a specific version like this: ``tox -e py33``