1
- #!/usr/bin/python
2
- #
3
- # Copyright (C) 2013 Umea Universitet, Sweden
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
- #
1
+ #!/usr/bin/env python
2
+
3
+ import sys
17
4
18
5
from setuptools import setup
6
+ from setuptools .command .test import test as TestCommand
7
+
8
+
9
+ class PyTest (TestCommand ):
10
+
11
+ def finalize_options (self ):
12
+ TestCommand .finalize_options (self )
13
+ self .test_args = []
14
+ self .test_suite = True
15
+
16
+ def run_tests (self ):
17
+ #import here, cause outside the eggs aren't loaded
18
+ import pytest
19
+ errno = pytest .main (self .test_args )
20
+ sys .exit (errno )
21
+
22
+
23
+ install_requires = [
24
+ # core dependencies
25
+ 'decorator' ,
26
+ 'requests >= 1.0.0' ,
27
+ 'paste' ,
28
+ 'zope.interface' ,
29
+ 'repoze.who' ,
30
+ 'pycrypto' , # 'Crypto'
31
+ 'pytz' ,
32
+ 'pyOpenSSL' ,
33
+ 'python-dateutil' ,
34
+ 'argparse'
35
+ ]
19
36
20
- __author__ = 'rohe0002'
37
+ tests_require = [
38
+ 'mongodict' ,
39
+ 'pyasn1' ,
40
+ 'pymongo' ,
41
+ 'python-memcached == 1.51' ,
42
+ 'pytest' ,
43
+ 'mako' ,
44
+ #'pytest-coverage',
45
+ ]
46
+
47
+
48
+ # only for Python 2.6
49
+ if sys .version_info < (2 , 7 ):
50
+ install_requires .append ('importlib' )
21
51
22
52
setup (
23
- name = "saml2test" ,
24
- version = "0.4.3" ,
25
- description = "SAML2 test tool" ,
26
- author = "Roland Hedberg" ,
27
- author_email = "[email protected] " ,
28
- license = "Apache 2.0" ,
29
- packages = ["idp_test" , "idp_test/package" , "saml2test" , "sp_test" , "utility" ],
30
- package_dir = {"" : "src" },
31
- classifiers = [
32
- "Development Status :: 4 - Beta" ,
53
+ name = 'pysaml2' ,
54
+ version = '2.1.0' ,
55
+ description = 'Python implementation of SAML Version 2 to be used in a WSGI environment' ,
56
+ # long_description = read("README"),
57
+ author = 'Roland Hedberg' ,
58
+
59
+ license = 'Apache 2.0' ,
60
+ url = 'https://github.com/rohe/pysaml2' ,
61
+
62
+ packages = ['saml2' , 'xmldsig' , 'xmlenc' , 's2repoze' , 's2repoze.plugins' ,
63
+ "saml2/profile" , "saml2/schema" , "saml2/extension" ,
64
+ "saml2/attributemaps" , "saml2/authn_context" ,
65
+ "saml2/entity_category" , "saml2/userinfo" ],
66
+
67
+ package_dir = {'' : 'src' },
68
+ package_data = {'' : ['xml/*.xml' ]},
69
+ classifiers = ["Development Status :: 4 - Beta" ,
33
70
"License :: OSI Approved :: Apache Software License" ,
34
- "Topic :: Software Development :: Libraries :: Python Modules" ],
35
- install_requires = ["pysaml2" ,
36
- "mechanize" ,
37
- "argparse" ,
38
- "beautifulsoup4" ,
39
- "mako" ],
71
+ "Topic :: Software Development :: Libraries :: Python Modules" ,
72
+ "Programming Language :: Python :: 2.6" ,
73
+ "Programming Language :: Python :: 2.7" ],
74
+
75
+ scripts = ["tools/parse_xsd2.py" , "tools/make_metadata.py" ,
76
+ "tools/mdexport.py" , "tools/merge_metadata.py" ],
77
+
78
+ tests_require = tests_require ,
79
+ extras_require = {
80
+ 'testing' : tests_require ,
81
+ },
82
+ install_requires = install_requires ,
40
83
zip_safe = False ,
41
- scripts = ["script/idp_testdrv.py" , "script/sp_testdrv.py" ]
42
- )
84
+ test_suite = 'tests' ,
85
+ cmdclass = {'test' : PyTest },
86
+ )
0 commit comments