From 1388206f1a67a8a27f8660b21ed873b98cfccd42 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Mon, 4 Jun 2012 15:57:30 -0700 Subject: [PATCH 1/3] Fix path to tests.py in setup.py to make `python setup.py test` work --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ef95ebb6..93ec3685 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ import httpie if sys.argv[-1] == 'test': - os.system('python tests.py') + os.system('python tests/tests.py') sys.exit() From 0d129d5f692d76ad34e7b1d0f9241eea57ba02d1 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Mon, 4 Jun 2012 17:05:59 -0700 Subject: [PATCH 2/3] Add tox.ini for tox (http://tox.testrun.org/) --- .gitignore | 1 + tox.ini | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 2392a06f..cebbf384 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ dist httpie.egg-info build *.pyc +.tox diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..fc337ed8 --- /dev/null +++ b/tox.ini @@ -0,0 +1,19 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox" from this directory. + +[tox] +envlist = py26, py27, py30, py31, py32, pypy + +[testenv] +commands = {envpython} setup.py test + +[testenv:py26] +deps = argparse + +[testenv:py30] +deps = argparse + +[testenv:py31] +deps = argparse From b3ea273a21565932d6efeff02ea45d8095041d0b Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Wed, 13 Jun 2012 07:36:51 -0700 Subject: [PATCH 3/3] Add "pypy" to .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 470a635d..3be70c78 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: python python: - 2.6 - 2.7 + - pypy - 3.1 - 3.2 script: python tests/tests.py