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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/setup.py@4149
Revision 4149, 4.0 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
RevLine 
[1701]1#!/usr/bin/env python
2"""Distribution Utilities setup program for NDG Security Server Package
3
4NERC Data Grid Project
[2909]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$'
[1701]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
[2909]23__revision__ = "$Id$"
[1701]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 = [
[2283]29    'ndg_security_common',
30   
31    # Zope interface
[3994]32    'zope.interface',
33   
34    'AuthKit'
[1701]35]
36
[2937]37# Make a script interface to MyProxy client
[4123]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#    """
[4001]48_entryPoints = """
49    [console_scripts]
[4020]50    myproxy-client=ndg.security.server.MyProxy:main
[4001]51    init-credrepos-db=ndg.security.server.initCredReposDb:main
[3155]52
[4001]53    [paste.app_factory]
[4123]54    main=ndg.security.server.pylons.container.config.middleware:make_app
[4001]55    [paste.app_install]
56    main=pylons.util:PylonsInstaller
57    """
[2239]58setup(
[2283]59    name =                      'ndg_security_server',
[4143]60    version =                   '0.9.3',
[2239]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',
[3802]67    url =                       'http://proj.badc.rl.ac.uk/ndg/wiki/T12_Security',
[2270]68    license =               'Q Public License, version 1.0 or later',
[2239]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 = [
[2251]75        "http://ndg.nerc.ac.uk/dist",
[2283]76       
77        # Zope Interface
78        "http://www.zope.org/Products/ZopeInterface/" 
[2239]79        ],
80
81    packages =                      find_packages(),
82    namespace_packages =        ['ndg', 'ndg.security'],
[3802]83    package_data =          {
[4001]84        'ndg.security.server.sso.sso': ['i18n/*/LC_MESSAGES/*.mo'],
[3802]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/*.*'],
[4147]98        'ndg.security.server.sso.sso.templates.ndg.security': ['*.kid'],
[4146]99        'ndg.security.server.pylons': ['*.ini', '*.cfg', '*.txt'],
[4148]100        'ndg.security.server.pylons.container': ['public/*.*', 
101                                                 'public/layout/*.*',
[4149]102                                                 'public/js/*.*',
103                                                 'public/js/*/*.*'],
[4146]104        'ndg.security.server.pylons.container.templates.ndg.security': ['*.kid']},
[2937]105    entry_points =           _entryPoints,
[2283]106    test_suite =                    'ndg.security.test',
107    zip_safe =              False
[2239]108)
Note: See TracBrowser for help on using the repository browser.