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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/setup.py@4611
Revision 4611, 4.1 KB checked in by pjkersha, 11 years ago (diff)
  • Updates to egg dependencies - remove packages that are no longer needed
  • incremented to overall version 1.0.0 ready for new release.
  • 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 & NERC"
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# Make a script interface to MyProxy client
32#_entryPoints = """
33#    [console_scripts]
34#    myproxy-client=ndg.security.common.myproxy:main
35#    init-credrepos-db=ndg.security.server.initCredentialRepositoryDb:main
36#
37#    [paste.app_factory]
38#    main=ndg.security.server.sso.sso.config.middleware:make_app
39#    [paste.app_install]
40#    main=pylons.util:PylonsInstaller
41#    """
42_entryPoints = """
43    [console_scripts]
44    myproxy-client=ndg.security.common.myproxy:main
45    init-credrepos-db=ndg.security.server.initCredentialRepositoryDb:main
46
47    [paste.app_factory]
48    main=ndg.security.server.pylons.container.config.middleware:make_app
49    [paste.app_install]
50    main=pylons.util:PylonsInstaller
51    """
52setup(
53    name =                      'ndg_security_server',
54    version =                   '1.0.0',
55    description =               'NERC DataGrid Security Services',
56    long_description =          'Server side component for securing NDG resources',
57    author =                    'Philip Kershaw',
58    author_email =              'Philip.Kershaw@stfc.ac.uk',
59    maintainer =                'Philip Kershaw',
60    maintainer_email =          'Philip.Kershaw@stfc.ac.uk',
61    url =                       'http://proj.badc.rl.ac.uk/ndg/wiki/Security',
62    license =               'Q Public License, version 1.0 or later',
63    install_requires =          _pkgDependencies,
64   
65    # Set ndg.security.common dependency.  Also, sledge hammer approach needed
66    # with some packages as they won't install from their PyPI name - instead give
67    # the explicit URL.  This may cause problems later!
68    dependency_links = [
69        "http://ndg.nerc.ac.uk/dist",
70       
71        # Zope Interface
72        "http://www.zope.org/Products/ZopeInterface/" 
73        ],
74
75    packages =                      find_packages(),
76    namespace_packages =        ['ndg', 'ndg.security'],
77    package_data =          {
78        'ndg.security.server.sso.sso': ['i18n/*/LC_MESSAGES/*.mo'],
79        'ndg.security.server.conf': ['*.xml','*.py','*.tac','*.cfg','*.conf'],
80        'ndg.security.server.conf.certs': ['*.crt'],
81        'ndg.security.server.conf.certs.ca': ['*.crt'],                                               
82        'ndg.security.server.conf.attCertLog': ['*.*'],
83        # Nb. '*' is a dangerous setting.  If a sub
84        # package is added it will be treated as data
85        # instead of a package
86        'ndg.security.server.share': ['*'],
87        'ndg.security.server.attributeauthority': ['*.sh'],
88        'ndg.security.server.sessionmanager': ['*.sh'],
89        'ndg.security.server.ca': ['*.sh'],
90        'ndg.security.server.sso': ['*.ini', '*.cfg', '*.txt'],
91        'ndg.security.server.sso.sso': ['public/*.*', 'public/layout/*.*'],
92        'ndg.security.server.sso.sso.templates.ndg.security': ['*.kid'],
93        'ndg.security.server.pylons': ['*.ini', '*.cfg', '*.txt'],
94        'ndg.security.server.pylons.container': ['public/*.*', 
95                                                 'public/layout/*.*',
96                                                 'public/js/*.*',
97                                                 'public/js/img/*.*',
98                                                 'public/js/theme/*.*',
99                                                 'public/js/yui/*.*'],
100        'ndg.security.server.pylons.container.templates.ndg.security': ['*.kid']},
101    entry_points =           _entryPoints,
102    test_suite =                    'ndg.security.test',
103    zip_safe =              False
104)
Note: See TracBrowser for help on using the repository browser.