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

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

ndg.security.server/setup.py: added *.conf for conf/ openssl.conf file

ndg.security.server/ndg/security/server/AttAuthority/init.py:

  • Use RotatingFileHandler? from logging package to enable store of ACs issued to be limited. Properties file attCertFileLogCnt sets maximum number of files created before rotation.
  • newAttCertFilePath() is replaced by rotating file handler functionality
  • added logging with some debug messages - more needed to complete

ndg.security.server/ndg/security/server/conf/attCert/init.py

  • renamed to ndg.security.test/ndg/security/test/AttAuthority/attCertLog/init.py

ndg.security.server/ndg/security/server/conf/userRoles.py: userIsRegistered should return bool

ndg.security.server/ndg/security/server/conf/attAuthorityProperties.xml,
ndg.security.test/ndg/security/test/AttAuthority/siteAAttAuthorityProperties.xml,
ndg.security.test/ndg/security/test/AttAuthority/siteBAttAuthorityProperties.xml:

  • filled in default values for most attributes to ease installation config tasks
  • attCertFilePfx and attCertFileSfx replaced with attCertFileName and attCertFileLog attributes for new AC logging.

ndg.security.client/ndg/security/client/ndgSessionClient.py: removed debug calls. This module may now be surplus because of Pylons framework and plans for Java and PHP clients.

ndg.security.test/ndg/security/test/AttAuthority/siteAUserRoles.py: added coapec for testing

ndg.security.test/ndg/security/test/AttAuthority/siteAMapConfig.xml: fix formatting

ndg.security.test/ndg/security/test/AttAuthority/attAuthorityClientTest.cfg: altered settings for tests

ndg.security.test/ndg/security/test/Log/LogTest.py: exptd with log config. Eventually change to be harness for SOAP log interface

Makefile: use default python + added force target.

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2
3"""Distribution Utilities setup program for NDG Security Server Package
4
5NERC Data Grid Project
6
7P J Kershaw 24/04/06
8
9Copyright (C) 2007 CCLRC & NERC
10
11This software may be distributed under the terms of the Q Public License,
12version 1.0 or later.
13"""
14# Bootstrap setuptools if necessary.
15from ez_setup import use_setuptools
16use_setuptools()
17
18from setuptools import setup, find_packages
19
20import os
21
22__revision__ = "$Id:$"
23
24# Packages needed for NDG Security
25# Note commented out ones fail with PyPI - use explicit link instead
26# TODO: subdivide these into server and client specific and comon dependencies
27_pkgDependencies = [
28    'ndg_security_common',
29   
30    # Zope interface
31    'zope.interface'
32]
33
34   
35setup(
36    name =                      'ndg_security_server',
37    version =                   '0.8.4',
38    description =               'NERC DataGrid Security Services',
39    long_description =          'Server side component for securing NDG resources',
40    author =                    'Philip Kershaw',
41    author_email =              'P.J.Kershaw@rl.ac.uk',
42    maintainer =                'Philip Kershaw',
43    maintainer_email =          'P.J.Kershaw@rl.ac.uk',
44    url =                       'http://proj.badc.rl.ac.uk/ndg',
45    license =               'Q Public License, version 1.0 or later',
46    install_requires =          _pkgDependencies,
47   
48    # Set ndg.security.common dependency.  Also, sledge hammer approach needed
49    # with some packages as they won't install from their PyPI name - instead give
50    # the explicit URL.  This may cause problems later!
51    dependency_links = [
52        "http://ndg.nerc.ac.uk/dist",
53       
54        # Zope Interface
55        "http://www.zope.org/Products/ZopeInterface/" 
56        ],
57
58    # These will have to be installed manually - they won't currently 'eggify'
59    #    http://tmrc.mit.edu/mirror/twisted/Web/0.5/TwistedWeb-0.5.0.tar.bz2
60    #    http://tmrc.mit.edu/mirror/twisted/Twisted/2.2/TwistedSumo-2006-02-12.tar.bz2
61
62    packages =                      find_packages(),
63    namespace_packages =        ['ndg', 'ndg.security'],
64    package_data =          {'ndg.security.server.conf': ['*.xml', 
65                                                          '*.py',
66                                                          '*.tac',
67                                                          '*.cfg',
68                                                          '*.conf'],                                               
69                             'ndg.security.server.conf.certs': ['*'],
70                             'ndg.security.server.conf.attCert': ['*'],
71                             'ndg.security.server.share': ['*'],
72                             'ndg.security.server.AttAuthority': ['*.sh'],
73                             'ndg.security.server.SessionMgr': ['*.sh'],
74                             'ndg.security.server.ca': ['*.sh']},
75#    data_files =            [('share',
76#                              [os.path.join('share', 'ndg-aa'),
77#                               os.path.join('share', 'ndg-ca'),
78#                               os.path.join('share', 'ndg-gk'),
79#                               os.path.join('share', 'ndg-log'),
80#                               os.path.join('share', 'ndg-sm')])
81#                              ],
82    test_suite =                    'ndg.security.test',
83    zip_safe =              False
84)
Note: See TracBrowser for help on using the repository browser.