""" pydirs - a simple directory-based object database

    Pydirs is an object database that stores objects as directories, and
    object attributes as files. The focus of the library lies on simplicity:
    the API, code and storage format should be easy to understand and deal
    with. Even though it may not be extremely fast or scalable, it's very
    flexible and easy to integrate, and very easy to work with the storage
    using third-party tools.
"""

classifiers = """\
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: GPL
Programming Language :: Python
Topic :: Database
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: Unix
"""

import sys
from setuptools import setup

if sys.version_info < (2, 3):
    _setup = setup
    def setup(**kwargs):
        if kwargs.has_key("classifiers"):
            del kwargs["classifiers"]
        _setup(**kwargs)

doclines = __doc__.split("\n")

setup(name="pydirs",
      author="Guido Wesdorp",
      author_email="guido@pragmagik.com",
      url = "http://www.pragmagik.com/pydirs",
      license = "http://www.gnu.org/copyleft/gpl.html",
      platforms = ["any"],
      description = doclines[0].strip(),
      classifiers = filter(None, classifiers.split("\n")),
      long_description = open('doc/README.txt').read(),
      package_dir={'pydirs': './src/pydirs'},
      packages=['pydirs'],
      version=open('version.txt').read(),
      keywords="pydirs",
      include_package_data=True,
      zip_safe=False,
      install_requires=['setuptools', 'py'],
      )

