Added travis dependencies and tox config
This commit is contained in:
parent
7d4b4f4467
commit
f967875f34
|
@ -9,6 +9,7 @@ Vagrantfile
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
*.egg-info
|
*.egg-info
|
||||||
|
*.egg
|
||||||
|
|
||||||
# Compiled files
|
# Compiled files
|
||||||
*.pyc
|
*.pyc
|
||||||
|
@ -17,8 +18,13 @@ dist
|
||||||
*.log
|
*.log
|
||||||
*.log.*
|
*.log.*
|
||||||
|
|
||||||
|
# Tox testing
|
||||||
|
.tox
|
||||||
|
|
||||||
# Dynamically created doc folders
|
# Dynamically created doc folders
|
||||||
doc/_build
|
doc/_build
|
||||||
|
keys
|
||||||
|
static
|
||||||
|
|
||||||
# Remaining stuff
|
# Remaining stuff
|
||||||
oidc_example/op2/client_db.db
|
oidc_example/op2/client_db.db
|
||||||
|
|
10
.travis.yml
10
.travis.yml
|
@ -1,4 +1,12 @@
|
||||||
language: python
|
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:
|
script:
|
||||||
- ./setup.py test
|
- tox -e $TOX_ENV
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -51,8 +51,8 @@ setup(
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules"],
|
"Topic :: Software Development :: Libraries :: Python Modules"],
|
||||||
install_requires = ['requests', "pycrypto>=2.6.1", "cherrypy==3.2.4",
|
install_requires = ['requests', "pycrypto>=2.6.1", "cherrypy==3.2.4",
|
||||||
"mako", "pyjwkest", "beaker", "alabaster", "importlib",
|
"mako", "pyjwkest", "beaker", "alabaster", "importlib",
|
||||||
"argparse", "pyOpenSSL"],
|
"argparse", "pyOpenSSL", "python-ldap"],
|
||||||
tests_require=['pytest'],
|
tests_require=['pytest'],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
cmdclass={'test': PyTest},
|
cmdclass={'test': PyTest},
|
||||||
)
|
)
|
||||||
|
|
|
@ -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
|
Reference in New Issue