From ca79a901e0a6a42d2bc14b2576eda9d575c35317 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 12 Sep 2013 15:43:46 -0400 Subject: [PATCH] Set up tox Add a tox.ini to at least verify packaging and installation work. Fix one issue found by flake8. --- git_os_job/cmd.py | 1 - tox.ini | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tox.ini diff --git a/git_os_job/cmd.py b/git_os_job/cmd.py index f7fcb64..632d35e 100755 --- a/git_os_job/cmd.py +++ b/git_os_job/cmd.py @@ -46,7 +46,6 @@ def main(): args = parser.parse_args() ref = args.ref - import os try: ref_hash = subprocess.check_output( ['git', 'show-ref', '-s', ref] diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..b1cf4e4 --- /dev/null +++ b/tox.ini @@ -0,0 +1,15 @@ +[tox] +envlist = py26,py27,py32,py33,style + +[testenv] +setenv = + VIRTUAL_ENV={envdir} + LANG=en_US.UTF-8 + LANGUAGE=en_US:en + LC_ALL=C + +commands = echo "no tests" + +[testenv:style] +deps = flake8 +commands = flake8 git_os_job setup.py