~corey.bryant/ubuntu/wily/python-pysaml2/3.0.0

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2014-09-08 16:11:53 UTC
  • Revision ID: package-import@ubuntu.com-20140908161153-vms9r4gu0oz4v4ai
Tags: upstream-2.0.0
ImportĀ upstreamĀ versionĀ 2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
#
 
3
# Copyright (C) 2007 SIOS Technology, Inc.
 
4
# Copyright (C) 2011 Umea Universitet, Sweden
 
5
#
 
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
 
9
#
 
10
#      http://www.apache.org/licenses/LICENSE-2.0
 
11
#
 
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.
 
17
#
 
18
#
 
19
import sys
 
20
 
 
21
from setuptools import setup
 
22
from setuptools.command.test import test as TestCommand
 
23
 
 
24
 
 
25
class PyTest(TestCommand):
 
26
 
 
27
    def finalize_options(self):
 
28
        TestCommand.finalize_options(self)
 
29
        self.test_args = []
 
30
        self.test_suite = True
 
31
 
 
32
    def run_tests(self):
 
33
        #import here, cause outside the eggs aren't loaded
 
34
        import pytest
 
35
        errno = pytest.main(self.test_args)
 
36
        sys.exit(errno)
 
37
 
 
38
 
 
39
install_requires = [
 
40
    # core dependencies
 
41
    'decorator',
 
42
    'requests >= 1.0.0',
 
43
    'paste',
 
44
    'zope.interface',
 
45
    'repoze.who',
 
46
    'pycrypto',  # 'Crypto'
 
47
    'pytz',
 
48
    'pyOpenSSL',
 
49
    'python-dateutil'
 
50
]
 
51
 
 
52
tests_require = [
 
53
    'mongodict',
 
54
    'pyasn1',
 
55
    'pymongo',
 
56
    'python-memcached == 1.51',
 
57
    'pytest',
 
58
    'mako',
 
59
    #'pytest-coverage',
 
60
]
 
61
 
 
62
 
 
63
# only for Python 2.6
 
64
if sys.version_info < (2, 7):
 
65
    install_requires.append('importlib')
 
66
 
 
67
setup(
 
68
    name='pysaml2',
 
69
    version='2.0.0',
 
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',
 
74
    license='Apache 2.0',
 
75
    url='https://github.com/rohe/pysaml2',
 
76
 
 
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"],
 
81
 
 
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"],
 
87
 
 
88
    scripts=["tools/parse_xsd2.py", "tools/make_metadata.py",
 
89
             "tools/mdexport.py"],
 
90
 
 
91
    tests_require=tests_require,
 
92
    extras_require={
 
93
        'testing': tests_require,
 
94
    },
 
95
    install_requires=install_requires,
 
96
    zip_safe=False,
 
97
    test_suite='tests',
 
98
    cmdclass={'test': PyTest},
 
99
)