File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
install_requires = [
10
10
# core dependencies
11
- 'decorator' ,
12
11
'requests >= 1.0.0' ,
13
12
'future' ,
14
- 'paste' ,
15
- 'zope.interface' ,
16
- 'repoze.who' ,
17
13
'cryptography' ,
18
14
'pytz' ,
19
15
'pyOpenSSL' ,
22
18
'six'
23
19
]
24
20
21
+ extras_require = {
22
+ 's2repoze' : [
23
+ 'paste' ,
24
+ 'zope.interface' ,
25
+ 'repoze.who'
26
+ ]
27
+ }
28
+
25
29
version = ''
26
30
with open ('src/saml2/__init__.py' , 'r' ) as fd :
27
31
version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' ,
56
60
scripts = ["tools/parse_xsd2.py" , "tools/make_metadata.py" ,
57
61
"tools/mdexport.py" , "tools/merge_metadata.py" ],
58
62
install_requires = install_requires ,
63
+ extras_require = extras_require ,
59
64
zip_safe = False ,
60
65
)
Original file line number Diff line number Diff line change 2
2
# -*- coding: utf-8 -*-
3
3
4
4
import base64
5
+ import pytest
5
6
from saml2 .authn_context import INTERNETPROTOCOLPASSWORD
6
7
from saml2 .saml import NAMEID_FORMAT_TRANSIENT
7
8
from saml2 .samlp import NameIDPolicy
8
- from saml2 .s2repoze .plugins .sp import make_plugin
9
9
from saml2 .server import Server
10
10
11
+ try :
12
+ from saml2 .s2repoze .plugins .sp import make_plugin
13
+ except ImportError :
14
+ make_plugin = None
15
+
11
16
ENV1 = {'SERVER_SOFTWARE' : 'CherryPy/3.1.2 WSGI Server' ,
12
17
'SCRIPT_NAME' : '' ,
13
18
'ACTUAL_SERVER_PROTOCOL' : 'HTTP/1.1' ,
43
48
}
44
49
45
50
51
+ @pytest .mark .skipif (not make_plugin ,
52
+ reason = "s2repoze dependencies not installed" )
46
53
class TestSP ():
47
54
def setup_class (self ):
48
55
self .sp = make_plugin ("rem" , saml_conf = "server_conf" )
You can’t perform that action at this time.
0 commit comments