setup.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # setup.py
  2. # Install script for ConfigObj
  3. # Copyright (C) 2005-2010 Michael Foord, Mark Andrews, Nicola Larosa
  4. # E-mail: fuzzyman AT voidspace DOT org DOT uk
  5. # mark AT la-la DOT com
  6. # nico AT tekNico DOT net
  7. # This software is licensed under the terms of the BSD license.
  8. # http://www.voidspace.org.uk/python/license.shtml
  9. import sys
  10. from distutils.core import setup
  11. from configobj import __version__ as VERSION
  12. NAME = 'configobj'
  13. MODULES = 'configobj', 'validate'
  14. DESCRIPTION = 'Config file reading, writing and validation.'
  15. URL = 'http://www.voidspace.org.uk/python/configobj.html'
  16. DOWNLOAD_URL = "http://www.voidspace.org.uk/downloads/configobj-%s.zip" % VERSION
  17. LONG_DESCRIPTION = """**ConfigObj** is a simple but powerful config file reader and writer: an *ini
  18. file round tripper*. Its main feature is that it is very easy to use, with a
  19. straightforward programmer's interface and a simple syntax for config files.
  20. It has lots of other features though :
  21. * Nested sections (subsections), to any level
  22. * List values
  23. * Multiple line values
  24. * Full Unicode support
  25. * String interpolation (substitution)
  26. * Integrated with a powerful validation system
  27. - including automatic type checking/conversion
  28. - and allowing default values
  29. - repeated sections
  30. * All comments in the file are preserved
  31. * The order of keys/sections is preserved
  32. * Powerful ``unrepr`` mode for storing/retrieving Python data-types
  33. | Release 4.7.2 fixes several bugs in 4.7.1
  34. | Release 4.7.1 fixes a bug with the deprecated options keyword in
  35. | 4.7.0.
  36. | Release 4.7.0 improves performance adds features for validation and
  37. | fixes some bugs."""
  38. CLASSIFIERS = [
  39. 'Development Status :: 6 - Mature',
  40. 'Intended Audience :: Developers',
  41. 'License :: OSI Approved :: BSD License',
  42. 'Programming Language :: Python',
  43. 'Programming Language :: Python :: 2.3',
  44. 'Programming Language :: Python :: 2.4',
  45. 'Programming Language :: Python :: 2.5',
  46. 'Programming Language :: Python :: 2.6',
  47. 'Operating System :: OS Independent',
  48. 'Topic :: Software Development :: Libraries',
  49. 'Topic :: Software Development :: Libraries :: Python Modules',
  50. ]
  51. AUTHOR = 'Michael Foord & Nicola Larosa'
  52. AUTHOR_EMAIL = 'fuzzyman@voidspace.org.uk'
  53. KEYWORDS = "config, ini, dictionary, application, admin, sysadmin, configuration, validation".split(', ')
  54. setup(name=NAME,
  55. version=VERSION,
  56. description=DESCRIPTION,
  57. long_description=LONG_DESCRIPTION,
  58. download_url=DOWNLOAD_URL,
  59. author=AUTHOR,
  60. author_email=AUTHOR_EMAIL,
  61. url=URL,
  62. py_modules=MODULES,
  63. classifiers=CLASSIFIERS,
  64. keywords=KEYWORDS
  65. )