diff options
author | fuzzyman <devnull@localhost> | 2010-01-09 21:31:53 +0000 |
---|---|---|
committer | fuzzyman <devnull@localhost> | 2010-01-09 21:31:53 +0000 |
commit | 1b13f7801dd891808ec299e0c22992a96d1f6c0d (patch) | |
tree | 6f3837268ffd9d511ed0eda09f678528a5837f26 | |
parent | 65e136a90b0c6c3ed55ffe2d8e55acefa51a96b2 (diff) | |
download | configobj-1b13f7801dd891808ec299e0c22992a96d1f6c0d.tar.gz |
Addition of setup script for validate.
-rw-r--r-- | setup_validate.py | 62 | ||||
-rw-r--r-- | validate.py | 7 |
2 files changed, 64 insertions, 5 deletions
diff --git a/setup_validate.py b/setup_validate.py new file mode 100644 index 0000000..077fd35 --- /dev/null +++ b/setup_validate.py @@ -0,0 +1,62 @@ +# setup.py +# Install script for validate +# Copyright (C) 2005-2010 Michael Foord, Mark Andrews, Nicola Larosa +# E-mail: fuzzyman AT voidspace DOT org DOT uk +# mark AT la-la DOT com +# nico AT tekNico DOT net + +# This software is licensed under the terms of the BSD license. +# http://www.voidspace.org.uk/python/license.shtml + +import sys +from distutils.core import setup +from validate import __version__ as VERSION + +NAME = 'validate' + +MODULES = 'validate', + +DESCRIPTION = 'Config file reading, writing, and validation.' + +URL = 'http://www.voidspace.org.uk/python/validate.html' + +DOWNLOAD_URL = "http://www.voidspace.org.uk/downloads/validate.py" + +LONG_DESCRIPTION = """`validate.py <http://www.voidspace.org.uk/python/validate.html>`_ is a +module for validating values against a specification. It can be used +with `ConfigObj <http://www.voidspace.org.uk/python/configobj.html>`_, or as a +standalone module. + +It is extensible, and as well as doing type conversion from strings, +you can easily implement your own functions for transforming values in +any way you please.""" + +CLASSIFIERS = [ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Programming Language :: Python', + 'Operating System :: OS Independent', + 'Topic :: Software Development :: Libraries', + 'Topic :: Software Development :: Libraries :: Python Modules', +] + +AUTHOR = 'Michael Foord' + +AUTHOR_EMAIL = 'fuzzyman@voidspace.org.uk' + +KEYWORDS = "validation, schema, conversion, checking, configobj, config, configuration".split(', ') + + +setup(name=NAME, + version=VERSION, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + download_url=DOWNLOAD_URL, + author=AUTHOR, + author_email=AUTHOR_EMAIL, + url=URL, + py_modules=MODULES, + classifiers=CLASSIFIERS, + keywords=KEYWORDS + ) diff --git a/validate.py b/validate.py index 904d294..08c9867 100644 --- a/validate.py +++ b/validate.py @@ -1,6 +1,6 @@ # validate.py # A Validator object -# Copyright (C) 2005 Michael Foord, Mark Andrews, Nicola Larosa +# Copyright (C) 2005-2010 Michael Foord, Mark Andrews, Nicola Larosa # E-mail: fuzzyman AT voidspace DOT org DOT uk # mark AT la-la DOT com # nico AT tekNico DOT net @@ -128,11 +128,8 @@ A badly formatted set of arguments will raise a ``VdtParamError``. """ -__docformat__ = "restructuredtext en" +__version__ = '1.0.1' -__version__ = '1.0.0' - -__revision__ = '$Id: validate.py 123 2005-09-08 08:54:28Z fuzzyman $' __all__ = ( '__version__', |