[Pki-devel] [PATCH] 007 In-tree tests and linting with tox

Christian Heimes cheimes at redhat.com
Wed Jul 1 11:59:49 UTC 2015


Hi,

I don't like the fact that building and testing the Python part of PKI
takes so long. I have been using tox and a custom setup.py for a couple
of days now. The tox tool automates source distribution, virtual envs
and testing. It makes it really easy to achieve a minium level of
confidence, that the Python code is correct, in a matter of seconds.

The patch is related to https://fedorahosted.org/pki/ticket/696 and
https://fedorahosted.org/pki/ticket/708.

How to use tox:

$ sudo dnf install python-tox
$ cd /path/to/pki/root
$ tox

Some useful options:

Remove .tox directory and start with a refresh set of virtual environments:

$ tox -r

Just test one specific environment:

$ tox -e lint

Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-cheimes-0007-In-tree-tests-and-linting-with-tox.patch
Type: text/x-patch
Size: 10821 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20150701/6b348d10/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20150701/6b348d10/attachment.sig>


More information about the Pki-devel mailing list