From 58aa5b1e7256f47d4dc1d95c320fcc09bcce1959 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 20 May 2016 15:03:51 -0400 Subject: [PATCH] added TOX --- Makefile | 2 +- celigo/__init__.py | 3 ++- celigo/core.py | 2 +- tox.ini | 5 +++++ 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 tox.ini diff --git a/Makefile b/Makefile index f7bb1cf..c676c15 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,4 @@ init: pip install -r requirements.txt test: - py.test tests.py + tox diff --git a/celigo/__init__.py b/celigo/__init__.py index b962e4b..758fb10 100644 --- a/celigo/__init__.py +++ b/celigo/__init__.py @@ -1 +1,2 @@ -from core import BackupCeligo, DEFAULT_BASE_URL +from .core import BackupCeligo, DEFAULT_BASE_URL +from .prompt import prompt diff --git a/celigo/core.py b/celigo/core.py index 6a1b29e..fe7a7c6 100644 --- a/celigo/core.py +++ b/celigo/core.py @@ -7,7 +7,7 @@ import json from slugify import slugify -import prompt +from celigo import prompt L = logging.getLogger(__name__) DEFAULT_BASE_URL = "https://api.integrator.io/v1/" diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..64553ae --- /dev/null +++ b/tox.ini @@ -0,0 +1,5 @@ +[tox] +envlist = py27,py33,py34,py35,pypy +[testenv] +deps=-rrequirements.txt +commands=py.test tests.py