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

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

security/python/ndg.security.server/setup.py: fix package data settings

  • 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
35# Make a script interface to MyProxy client
36_entryPoints = {'console_scripts': [\
37    'myproxy-client = ndg.security.server.MyProxy:main',
38    'init-credrepos-db = ndg.security.server.initCredReposDb:main']
39}
40
41setup(
42    name =                      'ndg_security_server',
43    version =                   '0.8.7',
44    description =               'NERC DataGrid Security Services',
45    long_description =          'Server side component for securing NDG resources',
46    author =                    'Philip Kershaw',
47    author_email =              'P.J.Kershaw@rl.ac.uk',
48    maintainer =                'Philip Kershaw',
49    maintainer_email =          'P.J.Kershaw@rl.ac.uk',
50    url =                       'http://proj.badc.rl.ac.uk/ndg',
51    license =               'Q Public License, version 1.0 or later',
52    install_requires =          _pkgDependencies,
53   
54    # Set ndg.security.common dependency.  Also, sledge hammer approach needed
55    # with some packages as they won't install from their PyPI name - instead give
56    # the explicit URL.  This may cause problems later!
57    dependency_links = [
58        "http://ndg.nerc.ac.uk/dist",
59       
60        # Zope Interface
61        "http://www.zope.org/Products/ZopeInterface/" 
62        ],
63
64    packages =                      find_packages(),
65    namespace_packages =        ['ndg', 'ndg.security'],
66    package_data =          {'ndg.security.server.conf': ['*.xml', 
67                                                          '*.py',
68                                                          '*.tac',
69                                                          '*.cfg',
70                                                          '*.conf'],
71                             'ndg.security.server.conf.certs': ['*.crt'],
72                             'ndg.security.server.conf.certs.ca': ['*.crt'],                                               
73                             'ndg.security.server.conf.attCertLog': ['*.*'],
74                             # Nb. '*' is a dangerous setting.  If a sub
75                             # package is added it will be treated as data
76                             # instead of a package
77                             'ndg.security.server.share': ['*'],
78                             'ndg.security.server.AttAuthority': ['*.sh'],
79                             'ndg.security.server.SessionMgr': ['*.sh'],
80                             'ndg.security.server.ca': ['*.sh']},
81    entry_points =           _entryPoints,
82    test_suite =                    'ndg.security.test',
83    zip_safe =              False
84)
Note: See TracBrowser for help on using the repository browser.