1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """Distribution Utilities setup program for NDG XACML Package |
---|
4 | |
---|
5 | NERC DataGrid Project |
---|
6 | """ |
---|
7 | __author__ = "P J Kershaw" |
---|
8 | __date__ = "19/02/10" |
---|
9 | __copyright__ = "(C) 2010 Science and Technology Facilities Council" |
---|
10 | __license__ = "BSD - see LICENSE file in top-level directory" |
---|
11 | __contact__ = "Philip.Kershaw@stfc.ac.uk" |
---|
12 | __revision__ = '$Id: $' |
---|
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, sys |
---|
21 | |
---|
22 | # Packages needed for NDG Security |
---|
23 | # Note commented out ones fail with PyPI - use explicit link instead |
---|
24 | # TODO: subdivide these into server and client specific and comon dependencies |
---|
25 | _pkgDependencies = [] |
---|
26 | |
---|
27 | # Python 2.5 includes ElementTree by default |
---|
28 | if sys.version_info[0:2] < (2, 5): |
---|
29 | _pkgDependencies += ['ElementTree', 'cElementTree'] |
---|
30 | |
---|
31 | _longDescription = """XACML Python implementation adapted from Sun's Java XACML |
---|
32 | """ |
---|
33 | |
---|
34 | setup( |
---|
35 | name = 'NDG_XACML', |
---|
36 | version = '0.1', |
---|
37 | description = 'NERC DataGrid XACML package', |
---|
38 | long_description = _longDescription, |
---|
39 | author = 'Philip Kershaw', |
---|
40 | author_email = 'Philip.Kershaw@stfc.ac.uk', |
---|
41 | maintainer = 'Philip Kershaw', |
---|
42 | maintainer_email = 'Philip.Kershaw@stfc.ac.uk', |
---|
43 | url = 'http://proj.badc.rl.ac.uk/ndg/wiki/Security', |
---|
44 | license = 'BSD - See LICENCE file for details', |
---|
45 | install_requires = _pkgDependencies, |
---|
46 | dependency_links = ["http://ndg.nerc.ac.uk/dist"], |
---|
47 | packages = find_packages(), |
---|
48 | namespace_packages = ['ndg'], |
---|
49 | # This flag will include all files under SVN control or included in |
---|
50 | # MANIFEST.in. |
---|
51 | #include_package_data = True, |
---|
52 | # Finer grained control of data file inclusion can be achieved with |
---|
53 | # these parameters. See the setuptools docs. |
---|
54 | #package_data = {} |
---|
55 | #exclude_package_data = {} |
---|
56 | entry_points = None, |
---|
57 | test_suite = 'ndg.xacml.test', |
---|
58 | zip_safe = False |
---|
59 | ) |
---|