Added travis dependencies and tox config

This commit is contained in:
Manuel Jeckelmann 2014-11-23 23:14:39 +01:00
parent 7d4b4f4467
commit f967875f34
4 changed files with 40 additions and 3 deletions

6
.gitignore vendored
View File

@ -9,6 +9,7 @@ Vagrantfile
build
dist
*.egg-info
*.egg
# Compiled files
*.pyc
@ -17,8 +18,13 @@ dist
*.log
*.log.*
# Tox testing
.tox
# Dynamically created doc folders
doc/_build
keys
static
# Remaining stuff
oidc_example/op2/client_db.db

View File

@ -1,4 +1,12 @@
language: python
python: "2.7"
env:
- TOX_ENV=py27
install:
- pip install -U tox
- sudo apt-get install libffi-dev libsasl2-dev libldap2-dev
script:
- ./setup.py test
- tox -e $TOX_ENV

View File

@ -51,8 +51,8 @@ setup(
"Topic :: Software Development :: Libraries :: Python Modules"],
install_requires = ['requests', "pycrypto>=2.6.1", "cherrypy==3.2.4",
"mako", "pyjwkest", "beaker", "alabaster", "importlib",
"argparse", "pyOpenSSL"],
"argparse", "pyOpenSSL", "python-ldap"],
tests_require=['pytest'],
zip_safe=False,
cmdclass={'test': PyTest},
)
)

23
tox.ini Normal file
View File

@ -0,0 +1,23 @@
# 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 = py27
#, py34
[testenv]
commands = python setup.py test
deps =
pytest
requests
pycrypto
mako
pyjwkest
beaker
alabaster
importlib
argparse
pyOpenSSL
cherrypy==3.2.4