source: TI00-utils/trunk/setup.py @ 1635

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI00-utils/trunk/setup.py
Revision 1635, 1.1 KB checked in by spascoe, 14 years ago (diff)

Modified xmlHandler so that the test case uses unittest and works with
eggs. Added ElementTree as a requirement but this might give strange
behaviour if ET is available as a non-egg. Added a test module and
registered as a testsuite with setup.py.

You should now be able to run the xmlHandler tests in one of 3 ways:

$ python ndg/utils/xmlHandler.py
$ python ndg/utils/test.py
$ python setup.py test

Line 
1"""
2The NERC Data Grid utilities package.
3"""
4
5# Bootstrap setuptools if necessary.
6from ez_setup import use_setuptools
7use_setuptools()
8
9from setuptools import setup, find_packages
10
11setup(
12    name='ndg-utils',
13    version='0.0.1',
14
15    description="Common utility code for the NERC Data Grid project",
16    # Maybe add a long_description at a later date
17    #long_description = ''
18
19    maintainer='Stephen Pascoe',
20    maintainer_email='S.Pascoe@rl.ac.uk',
21    url='http://proj.badc.rl.ac.uk/ndg',
22
23    install_requires = ['ElementTree'],
24
25    # Packages will be automatically detected if placed in the same directory
26    # as this script.  To be part of the ndg.utils package you should place
27    # code in ndg/utils
28    packages = find_packages(),
29    namespace_packages = ['ndg'],
30
31    # This flag will include all files under SVN control or included in
32    # MANIFEST.in.
33    include_package_data = True,
34    # Finer grained control of data file inclusion can be achieved with
35    # these parameters.  See the setuptools docs.
36    #package_data = {}
37    #exclude_package_data = {}
38
39    test_suite = 'ndg.utils.test.suite',
40)
Note: See TracBrowser for help on using the repository browser.