Merge pull request #53 from teh/master

Minor cleanups of dependencies and encoding for python2.7
This commit is contained in:
Roland Hedberg 2014-12-12 19:59:00 +01:00
commit 645b57e193
2 changed files with 13 additions and 4 deletions

View File

@ -35,6 +35,11 @@ class PyTest(TestCommand):
errno = pytest.main(self.test_args)
sys.exit(errno)
# Python 2.7 and later ship with importlib and argparse
if sys.version_info.major == 2 and sys.version_info.minor == 6:
extra_install_requires = ["importlib", "argparse"]
else:
extra_install_requires = []
setup(
name="oic",
@ -51,10 +56,13 @@ setup(
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Python "
"Modules"],
install_requires=['requests', "pycrypto>=2.6.1", "cherrypy==3.2.4",
"mako", "pyjwkest>=0.5.1", "beaker", "alabaster",
"importlib", "argparse", "pyOpenSSL"],
extras_require={
'develop': ["cherrypy==3.2.4"],
},
install_requires=[
"requests", "pycrypto>=2.6.1", "pyjwkest>=0.5.1",
"mako", "beaker", "alabaster", "pyOpenSSL"] + extra_install_requires,
tests_require=['pytest'],
zip_safe=False,
cmdclass={'test': PyTest},
)
)

View File

@ -1,3 +1,4 @@
# encoding: utf-8
import time
from urlparse import urlparse