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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/setup.py@4686
Revision 4686, 3.8 KB checked in by pjkersha, 11 years ago (diff)
  • paster template - revised _tmpl files
  • 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) 2007 STFC"
9__license__ = \
10"""This software may be distributed under the terms of the Q Public
11License, version 1.0 or later."""
12__contact__ = "Philip.Kershaw@stfc.ac.uk"
13__revision__ = '$Id$'
14
15# Bootstrap setuptools if necessary.
16from ez_setup import use_setuptools
17use_setuptools()
18
19from setuptools import setup, find_packages
20
21import os
22
23# Packages needed for NDG Security
24# Note commented out ones fail with PyPI - use explicit link instead
25# TODO: subdivide these into server and client specific and comon dependencies
26_pkgDependencies = [
27    'ndg_security_common',
28    'AuthKit'
29]
30
31_entryPoints = """
32    [console_scripts]
33    init-credrepos-db=ndg.security.server.initCredentialRepositoryDb:main
34
35    [paste.app_factory]
36    main=ndg.security.server.pylons.container.config.middleware:make_app
37    [paste.app_install]
38    main=pylons.util:PylonsInstaller
39    [paste.paster_create_template]
40    ndgsecurity_services=ndg.security.server.templates.template:DefaultDeploymentTemplate
41    """
42setup(
43    name =                      'ndg_security_server',
44    version =                   '1.0.0',
45    description =               'NERC DataGrid Security Services',
46    long_description =          'Server side component for securing NDG resources',
47    author =                    'Philip Kershaw',
48    author_email =              'Philip.Kershaw@stfc.ac.uk',
49    maintainer =                'Philip Kershaw',
50    maintainer_email =          'Philip.Kershaw@stfc.ac.uk',
51    url =                       'http://proj.badc.rl.ac.uk/ndg/wiki/Security',
52    license =               'Q Public License, version 1.0 or later',
53    install_requires =          _pkgDependencies,
54   
55    # Set ndg.security.common dependency.  Also, sledge hammer approach needed
56    # with some packages as they won't install from their PyPI name - instead give
57    # the explicit URL.  This may cause problems later!
58    dependency_links = [
59        "http://ndg.nerc.ac.uk/dist",
60       
61        # Zope Interface
62        "http://www.zope.org/Products/ZopeInterface/" 
63        ],
64
65    packages =                      find_packages(),
66    namespace_packages =        ['ndg', 'ndg.security'],
67    package_data =          {
68        'ndg.security.server.sso.sso': ['i18n/*/LC_MESSAGES/*.mo'],
69        'ndg.security.server.conf': ['*.xml','*.py','*.tac','*.cfg','*.conf'],
70        'ndg.security.server.conf.certs': ['*.crt'],
71        'ndg.security.server.conf.certs.ca': ['*.crt'],                                               
72        'ndg.security.server.conf.attCertLog': ['*.*'],
73        # Nb. '*' is a dangerous setting.  If a sub
74        # package is added it will be treated as data
75        # instead of a package
76        'ndg.security.server.share': ['*'],
77        'ndg.security.server.attributeauthority': ['*.sh'],
78        'ndg.security.server.sessionmanager': ['*.sh'],
79        'ndg.security.server.ca': ['*.sh'],
80        'ndg.security.server.sso': ['*.ini', '*.cfg', '*.txt'],
81        'ndg.security.server.sso.sso': ['public/*.*', 'public/layout/*.*'],
82        'ndg.security.server.sso.sso.templates.ndg.security': ['*.kid'],
83        'ndg.security.server.pylons': ['*.ini', '*.cfg', '*.txt'],
84        'ndg.security.server.pylons.container': ['public/*.*', 
85                                                 'public/layout/*.*',
86                                                 'public/js/*.*',
87                                                 'public/js/img/*.*',
88                                                 'public/js/theme/*.*',
89                                                 'public/js/yui/*.*'],
90        'ndg.security.server.pylons.container.templates.ndg.security': ['*.kid']},
91    entry_points =           _entryPoints,
92    test_suite =                    'ndg.security.test',
93    zip_safe =              False
94)
Note: See TracBrowser for help on using the repository browser.