API tests + requests in the setup.py script

This commit is contained in:
Nicolargo 2015-11-25 15:39:30 +01:00
parent 1c56b91f96
commit af3b2a87d5
2 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class tests(Command):
def run(self):
import subprocess
import sys
for t in glob.glob('unitest.py'):
for t in glob.glob('unitest*.py'):
ret = subprocess.call([sys.executable, t]) != 0
if ret != 0:
raise SystemExit(ret)
@ -59,7 +59,7 @@ setup(
keywords="cli curses monitoring system",
install_requires=get_requires(),
extras_require={
'WEB': ['bottle'],
'WEB': ['bottle', 'requests'],
'SENSORS': ['py3sensors'],
'BATINFO': ['batinfo'],
'SNMP': ['pysnmp'],

View File

@ -5,7 +5,8 @@
# tox
[tox]
envlist = py27, py34
#envlist = py27, py34
envlist = py27
[testenv]
deps =