From 597bf54f3e999867a3e42686b3063b169b52018c Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 1 Jul 2015 13:15:30 +0200 Subject: In-tree tests and linting with tox Before the patch it wasn't possible to run pylint outside a RPM build. The Python sources were split into common and server files in two separate trees. With setup.py and tox the pki package can now be installed and tested in a virtual env. Tox enables developers to automate installation and testing in Python virtual environment. The new tox.ini performs several tasks with one command: * It creates and installs a source distribution of pki packages and its command line scripts * It verifies that all CLI scripts can be execute (using its --help argument). * It runs pylint on all Python files and CLI scripts. * It can run flake8 on all Python and CLI files (disabled for now). * Finally it builds Sphinx autodocs. I had to delay the root check in pkispawn and pkidestroy and modify two files to get rid of Sphinx warnings. https://fedorahosted.org/pki/ticket/696 http://tox.readthedocs.org --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index d3b7a61be..d2ecc2f89 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ .metadata/ build/ tests/dogtag/dev_java_tests/bin/ +.tox +dist +MANIFEST -- cgit