3
# Copyright (C) 2007 SIOS Technology, Inc.
4
# Copyright (C) 2011 Umea Universitet, Sweden
6
# Licensed under the Apache License, Version 2.0 (the "License");
7
# you may not use this file except in compliance with the License.
8
# You may obtain a copy of the License at
10
# http://www.apache.org/licenses/LICENSE-2.0
12
# Unless required by applicable law or agreed to in writing, software
13
# distributed under the License is distributed on an "AS IS" BASIS,
14
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
# See the License for the specific language governing permissions and
16
# limitations under the License.
21
from setuptools import setup
22
from setuptools.command.test import test as TestCommand
25
class PyTest(TestCommand):
27
def finalize_options(self):
28
TestCommand.finalize_options(self)
30
self.test_suite = True
33
#import here, cause outside the eggs aren't loaded
35
errno = pytest.main(self.test_args)
46
'pycrypto', # 'Crypto'
56
'python-memcached == 1.51',
64
if sys.version_info < (2, 7):
65
install_requires.append('importlib')
70
description='Python implementation of SAML Version 2 to be used in a WSGI environment',
71
# long_description = read("README"),
72
author='Roland Hedberg',
73
author_email='roland.hedberg@adm.umu.se',
75
url='https://github.com/rohe/pysaml2',
77
packages=['saml2', 'xmldsig', 'xmlenc', 's2repoze', 's2repoze.plugins',
78
"saml2/profile", "saml2/schema", "saml2/extension",
79
"saml2/attributemaps", "saml2/authn_context",
80
"saml2/entity_category", "saml2/userinfo"],
82
package_dir={'': 'src'},
83
package_data={'': ['xml/*.xml']},
84
classifiers=["Development Status :: 4 - Beta",
85
"License :: OSI Approved :: Apache Software License",
86
"Topic :: Software Development :: Libraries :: Python Modules"],
88
scripts=["tools/parse_xsd2.py", "tools/make_metadata.py",
91
tests_require=tests_require,
93
'testing': tests_require,
95
install_requires=install_requires,
98
cmdclass={'test': PyTest},