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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/setup.py@4150
Revision 4150, 4.1 KB checked in by pjkersha, 11 years ago (diff)

Fix to package_data setting

  • 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__ = "P.J.Kershaw@rl.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__revision__ = "$Id$"
24
25# Packages needed for NDG Security
26# Note commented out ones fail with PyPI - use explicit link instead
27# TODO: subdivide these into server and client specific and comon dependencies
28_pkgDependencies = [
29    'ndg_security_common',
30   
31    # Zope interface
32    'zope.interface',
33   
34    'AuthKit'
35]
36
37# Make a script interface to MyProxy client
38#_entryPoints = """
39#    [console_scripts]
40#    myproxy-client=ndg.security.server.MyProxy:main
41#    init-credrepos-db=ndg.security.server.initCredReposDb:main
42#
43#    [paste.app_factory]
44#    main=ndg.security.server.sso.sso.config.middleware:make_app
45#    [paste.app_install]
46#    main=pylons.util:PylonsInstaller
47#    """
48_entryPoints = """
49    [console_scripts]
50    myproxy-client=ndg.security.server.MyProxy:main
51    init-credrepos-db=ndg.security.server.initCredReposDb:main
52
53    [paste.app_factory]
54    main=ndg.security.server.pylons.container.config.middleware:make_app
55    [paste.app_install]
56    main=pylons.util:PylonsInstaller
57    """
58setup(
59    name =                      'ndg_security_server',
60    version =                   '0.9.3',
61    description =               'NERC DataGrid Security Services',
62    long_description =          'Server side component for securing NDG resources',
63    author =                    'Philip Kershaw',
64    author_email =              'P.J.Kershaw@rl.ac.uk',
65    maintainer =                'Philip Kershaw',
66    maintainer_email =          'P.J.Kershaw@rl.ac.uk',
67    url =                       'http://proj.badc.rl.ac.uk/ndg/wiki/T12_Security',
68    license =               'Q Public License, version 1.0 or later',
69    install_requires =          _pkgDependencies,
70   
71    # Set ndg.security.common dependency.  Also, sledge hammer approach needed
72    # with some packages as they won't install from their PyPI name - instead give
73    # the explicit URL.  This may cause problems later!
74    dependency_links = [
75        "http://ndg.nerc.ac.uk/dist",
76       
77        # Zope Interface
78        "http://www.zope.org/Products/ZopeInterface/" 
79        ],
80
81    packages =                      find_packages(),
82    namespace_packages =        ['ndg', 'ndg.security'],
83    package_data =          {
84        'ndg.security.server.sso.sso': ['i18n/*/LC_MESSAGES/*.mo'],
85        'ndg.security.server.conf': ['*.xml','*.py','*.tac','*.cfg','*.conf'],
86        'ndg.security.server.conf.certs': ['*.crt'],
87        'ndg.security.server.conf.certs.ca': ['*.crt'],                                               
88        'ndg.security.server.conf.attCertLog': ['*.*'],
89        # Nb. '*' is a dangerous setting.  If a sub
90        # package is added it will be treated as data
91        # instead of a package
92        'ndg.security.server.share': ['*'],
93        'ndg.security.server.AttAuthority': ['*.sh'],
94        'ndg.security.server.SessionMgr': ['*.sh'],
95        'ndg.security.server.ca': ['*.sh'],
96        'ndg.security.server.sso': ['*.ini', '*.cfg', '*.txt'],
97        'ndg.security.server.sso.sso': ['public/*.*', 'public/layout/*.*'],
98        'ndg.security.server.sso.sso.templates.ndg.security': ['*.kid'],
99        'ndg.security.server.pylons': ['*.ini', '*.cfg', '*.txt'],
100        'ndg.security.server.pylons.container': ['public/*.*', 
101                                                 'public/layout/*.*',
102                                                 'public/js/*.*',
103                                                 'public/js/img/*.*',
104                                                 'public/js/theme/*.*',
105                                                 'public/js/yui/*.*'],
106        'ndg.security.server.pylons.container.templates.ndg.security': ['*.kid']},
107    entry_points =           _entryPoints,
108    test_suite =                    'ndg.security.test',
109    zip_safe =              False
110)
Note: See TracBrowser for help on using the repository browser.