1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """Distribution Utilities setup program for NDG Security Server Package |
---|
4 | |
---|
5 | NERC Data Grid Project |
---|
6 | |
---|
7 | P J Kershaw 24/04/06 |
---|
8 | |
---|
9 | Copyright (C) 2007 CCLRC & NERC |
---|
10 | |
---|
11 | This software may be distributed under the terms of the Q Public License, |
---|
12 | version 1.0 or later. |
---|
13 | """ |
---|
14 | # Bootstrap setuptools if necessary. |
---|
15 | from ez_setup import use_setuptools |
---|
16 | use_setuptools() |
---|
17 | |
---|
18 | from setuptools import setup, find_packages |
---|
19 | |
---|
20 | import 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 | |
---|
35 | setup( |
---|
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 | 'ndg.security.server.conf.certs': ['*'], |
---|
68 | 'ndg.security.server.conf.attCert': ['*'], |
---|
69 | 'ndg.security.server.share': ['*'], |
---|
70 | 'ndg.security.server.AttAuthority': ['*.sh'], |
---|
71 | 'ndg.security.server.SessionMgr': ['*.sh'], |
---|
72 | 'ndg.security.server.ca': ['*.sh']}, |
---|
73 | # data_files = [('share', |
---|
74 | # [os.path.join('share', 'ndg-aa'), |
---|
75 | # os.path.join('share', 'ndg-ca'), |
---|
76 | # os.path.join('share', 'ndg-gk'), |
---|
77 | # os.path.join('share', 'ndg-log'), |
---|
78 | # os.path.join('share', 'ndg-sm')]) |
---|
79 | # ], |
---|
80 | test_suite = 'ndg.security.test', |
---|
81 | zip_safe = False |
---|
82 | ) |
---|