diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2012-05-23 18:56:51 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2012-05-23 18:56:51 +0200 |
commit | 1d7b2964d16b5c4443a3e7037d1bffe281726fc6 (patch) | |
tree | f191828115e6f89419cb8c2b34652546bab37889 /setup.py | |
download | pysaml2-1d7b2964d16b5c4443a3e7037d1bffe281726fc6.tar.gz |
Initial add0.4.2
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100755 index 00000000..1db1dc9a --- /dev/null +++ b/setup.py @@ -0,0 +1,93 @@ +#!/usr/bin/env python +# +# Copyright (C) 2007 SIOS Technology, Inc. +# Copyright (C) 2011 Umea Universitet, Sweden +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +import sys + +from distutils.core import Command +from setuptools import setup + + +class PyTest(Command): + user_options = [] + def initialize_options(self): + pass + def finalize_options(self): + pass + def run(self): + import sys, subprocess + errno = subprocess.call([sys.executable, 'runtests.py']) + raise SystemExit(errno) + + +install_requires=[ + # core dependencies + 'decorator', + 'httplib2', + 'paste', + 'zope.interface', + 'repoze.who == 1.0.18' + ] + +# only for Python 2.6 +if sys.version_info < (2,7): + install_requires.append('importlib') + +setup( + name='pysaml2', + version='0.4.2', + description='Python implementation of SAML Version 2 to for instance be used in a WSGI environment', +# long_description = read("README"), + author='Roland Hedberg', + author_email='roland.hedberg@adm.umu.se', + license='Apache 2.0', + url='https://code.launchpad.net/~roland-hedberg/pysaml2/main', + + packages=['saml2', 'xmldsig', 'xmlenc', 's2repoze', 's2repoze.plugins', + "saml2/profile", "saml2/schema", "saml2/extension", + "saml2/attributemaps"], + + package_dir = {'':'src'}, + package_data={'': ['xml/*.xml']}, + + classifiers = ["Development Status :: 4 - Beta", + "License :: OSI Approved :: Apache Software License", + "Topic :: Software Development :: Libraries :: Python Modules"], + + scripts=["tools/parse_xsd2.py", "tools/make_metadata.py"], + + tests_require=[ + 'pyasn1', + 'pymongo', + 'python-memcached', + 'pytest', + #'pytest-coverage', + ], + + install_requires=install_requires, + + extras_require={ + 'cjson': ['python-cjson'], + 'pyasn1': ['pyasn1'], + 'pymongo': ['pymongo'], + 'python-memcached': ['python-memcached'] + }, + + zip_safe=False, + + cmdclass = {'test': PyTest}, +) |