source: TI12-security/trunk/python/ndg.security.server/setup.py @ 4890

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/setup.py@5042
Revision 4890, 4.6 KB checked in by pjkersha, 11 years ago (diff)
  • fixed inclusion of badc templates and static content for SSO in ndg.security.server egg
  • fix to SSO logout controller to use WSGI client wrapper for Session Manager call
  • Refactored SM and AA WSGI client wrappers adding a base class in clientbase module and including check for match for URI request by client to URI endpoint of WSGI service running locally.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1#!/usr/bin/env python
2"""Distribution Utilities setup program for NDG Security Server Package
3
4NERC Data Grid Project
5"""
6__author__ = "P J Kershaw"
7__date__ = "24/04/06"
8__copyright__ = "(C) 2009 Science and Technology Facilities Council"
9__license__ = "BSD - see LICENSE file in top-level directory"
10__contact__ = "Philip.Kershaw@stfc.ac.uk"
11__revision__ = '$Id$'
12
13# Bootstrap setuptools if necessary.
14from ez_setup import use_setuptools
15use_setuptools()
16
17from setuptools import setup, find_packages
18
19import os
20
21# Other packages needed by this server package
22_pkgDependencies = [
23    'ndg_security_common',
24    'Pylons <= 0.9.6.2', # TODO: drop Pylons dependency in future release
25    'AuthKit'
26]
27
28_entryPoints = """
29    [console_scripts]
30    init-credrepos-db=ndg.security.server.initCredentialRepositoryDb:main
31
32    [paste.app_factory]
33    main=ndg.security.server.pylons.container.config.middleware:make_app
34    [paste.app_install]
35    main=pylons.util:PylonsInstaller
36    [paste.paster_create_template]
37    ndgsecurity_services=ndg.security.server.paster_templates.template:DefaultDeploymentTemplate
38    ndgsecurity_services_with_sso=ndg.security.server.paster_templates.template:FullDeploymentTemplate
39    """
40   
41_longDescription = """\
42NDG Security is the security system for the UK Natural Environment Research
43Council funded NERC DataGrid.  NDG Security has been developed to
44provide users with seamless access to secured resources across NDG
45participating organisations whilst at the same time providing an underlying
46system which is easy to deploy around organisation's pre-existing systems.
47NDG Security is designed around a Role Based Access Control mechanism. Cross
48organisational access to resources is enabled through bilateral trust
49agreements between participating organisations expressed through a system for
50single sign and role mapping.
51
52NDG Security employs a web services based architecture enabling different
53combinations of components to be deployed according to a participating site's
54needs and requirements.  Resources are secured using a system of Policy
55Enforcement Point (Gatekeeper) and Policy Decision Point components.  An
56Attribute Authority provides a service to query a given users attributes used
57for gaining access to resources.  Session Manager and MyProxy services can be
58used for management of credentials.  NDG Security supports OpenID for Single
59Sign On and can integrate into both web based and non-web based application
60client interfaces.
61"""
62
63setup(
64    name =                      'ndg_security_server',
65    version =                   '1.0.0',
66    description =               'Server side components for running NERC DataGrid '
67                            'Security Services',
68    long_description =          _longDescription,
69    author =                    'Philip Kershaw',
70    author_email =              'Philip.Kershaw@stfc.ac.uk',
71    maintainer =                'Philip Kershaw',
72    maintainer_email =          'Philip.Kershaw@stfc.ac.uk',
73    url =                       'http://proj.badc.rl.ac.uk/ndg/wiki/Security',
74    license =               'Q Public License, version 1.0 or later',
75    install_requires =          _pkgDependencies,
76   
77    # Set ndg.security.common dependency
78    dependency_links =      ["http://ndg.nerc.ac.uk/dist"],
79    packages =                      find_packages(),
80    namespace_packages =        ['ndg', 'ndg.security'],
81    include_package_data =  True,
82    package_data = {
83        'ndg.security.server.sso.sso': [
84            'i18n/*/LC_MESSAGES/*.mo'
85        ],
86        'ndg.security.server.conf': [
87            '*.xml', '*.py', '*.cfg', '*.conf'
88        ],
89        'ndg.security.server.share': ['*'],
90        'ndg.security.server.sso': ['*.ini', '*.cfg', '*.txt'],
91        'ndg.security.server.sso.sso': ['public/*.*', 'public/layout/*.*'],
92        'ndg.security.server.sso.sso.badc_site': [
93            'public/*.*', 
94            'public/layout/*.*',
95            'public/layout/logos/*.*',
96            'public/layout/styles/*.*',
97            'public/layout/tabs/*.*'
98        ],
99        'ndg.security.server.sso.sso.templates.ndg.security': ['*.kid'],
100        'ndg.security.server.sso.sso.badc_site.templates.ndg.security': ['*.kid'],
101        'ndg.security.server.pylons': ['*.ini', '*.cfg', '*.txt'],
102        'ndg.security.server.pylons.container': [
103            'public/*.*', 
104            'public/layout/*.*',
105            'public/js/*.*',
106            'public/js/img/*.*',
107            'public/js/theme/*.*',
108            'public/js/yui/*.*'],
109        'ndg.security.server.pylons.container.templates.ndg.security': [
110            '*.kid'
111        ],
112        # See MANIFEST.in for ndg.security.server.paster_templates files
113    },
114    entry_points =           _entryPoints,
115    test_suite =                    'ndg.security.test',
116    zip_safe =              False
117)
Note: See TracBrowser for help on using the repository browser.