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 88
99install_requires = [
1010 # core dependencies
11- 'decorator' ,
1211 'requests >= 1.0.0' ,
1312 'future' ,
14- 'paste' ,
15- 'zope.interface' ,
16- 'repoze.who' ,
1713 'cryptography' ,
1814 'pytz' ,
1915 'pyOpenSSL' ,
2218 'six'
2319]
2420
21+ extras_require = {
22+ 's2repoze' : [
23+ 'paste' ,
24+ 'zope.interface' ,
25+ 'repoze.who'
26+ ]
27+ }
28+
2529version = ''
2630with open ('src/saml2/__init__.py' , 'r' ) as fd :
2731 version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' ,
5660 scripts = ["tools/parse_xsd2.py" , "tools/make_metadata.py" ,
5761 "tools/mdexport.py" , "tools/merge_metadata.py" ],
5862 install_requires = install_requires ,
63+ extras_require = extras_require ,
5964 zip_safe = False ,
6065)
Original file line number Diff line number Diff line change 22# -*- coding: utf-8 -*-
33
44import base64
5+ import pytest
56from saml2 .authn_context import INTERNETPROTOCOLPASSWORD
67from saml2 .saml import NAMEID_FORMAT_TRANSIENT
78from saml2 .samlp import NameIDPolicy
8- from saml2 .s2repoze .plugins .sp import make_plugin
99from saml2 .server import Server
1010
11+ try :
12+ from saml2 .s2repoze .plugins .sp import make_plugin
13+ except ImportError :
14+ make_plugin = None
15+
1116ENV1 = {'SERVER_SOFTWARE' : 'CherryPy/3.1.2 WSGI Server' ,
1217 'SCRIPT_NAME' : '' ,
1318 'ACTUAL_SERVER_PROTOCOL' : 'HTTP/1.1' ,
4348}
4449
4550
51+ @pytest .mark .skipif (not make_plugin ,
52+ reason = "s2repoze dependencies not installed" )
4653class TestSP ():
4754 def setup_class (self ):
4855 self .sp = make_plugin ("rem" , saml_conf = "server_conf" )
You can’t perform that action at this time.
0 commit comments