Log a useful error message when trying to dump and invalid value.
[h5config.git] / setup.py
1 # Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu>
2 #
3 # This file is part of h5config.
4 #
5 # h5config is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation, either version 3 of the License, or (at your
8 # option) any later version.
9 #
10 # h5config is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with h5config.  If not, see <http://www.gnu.org/licenses/>.
17
18 "Conveniently save and load config-options from HDF5 and YAML files."
19
20 from distutils.core import setup
21 import os.path
22
23 from h5config import __version__
24
25
26 package_name = 'h5config'
27 base_url = 'http://www.physics.drexel.edu/~wking'
28 _this_dir = os.path.dirname(__file__)
29
30 setup(name=package_name,
31       version=__version__,
32       maintainer='W. Trevor King',
33       maintainer_email='wking@drexel.edu',
34       url='{}/unfolding-disasters/posts/{}/'.format(base_url, package_name),
35       download_url='{}/code/python/%s-%s.tar.gz'.format(
36         base_url, package_name, __version__),
37       license='GNU General Public License (GPL)',
38       platforms=['all'],
39       description=__doc__,
40       long_description=open(os.path.join(_this_dir, 'README'), 'r').read(),
41       classifiers=[
42         'Development Status :: 2 - Pre-Alpha',
43         'Intended Audience :: Developers',
44         'Intended Audience :: Science/Research',
45         'Operating System :: OS Independent',
46         'License :: OSI Approved :: GNU General Public License (GPL)',
47         'Programming Language :: Python',
48         'Topic :: Scientific/Engineering',
49         'Topic :: Software Development :: Libraries :: Python Modules',
50         ],
51       packages=[package_name, '{}.storage'.format(package_name)],
52       provides=['{} ({})'.format(package_name, __version__)],
53       )