relstorage/setup.py

96 lines
2.9 KiB
Python

##############################################################################
#
# Copyright (c) 2008 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""A backend for ZODB that stores pickles in a relational database."""
VERSION = "1.4.0"
# The choices for the Trove Development Status line:
# Development Status :: 5 - Production/Stable
# Development Status :: 4 - Beta
# Development Status :: 3 - Alpha
classifiers = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: Zope Public License
Programming Language :: Python
Topic :: Database
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: Microsoft :: Windows
Operating System :: Unix
"""
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup_args = dict(
scripts=['relstorage/zodbconvert.py'],
)
else:
setup_args = dict(
zip_safe=False, # otherwise ZConfig can't see component.xml
install_requires=[
'ZODB3>=3.7.0',
'zope.interface',
],
extras_require={
'mysql': ['MySQL-python>=1.2.2'],
'postgresql': ['psycopg2>=2.0'],
'oracle': ['cx_Oracle>=4.3.1'],
},
entry_points = {'console_scripts': [
'zodbconvert = relstorage.zodbconvert:main',
'zodbpack = relstorage.zodbpack:main',
]},
test_suite='relstorage.tests.alltests.make_suite',
)
doclines = __doc__.split("\n")
def read_file(*path):
base_dir = os.path.dirname(__file__)
file_path = (base_dir, ) + tuple(path)
return file(os.path.join(*file_path)).read()
setup(
name="RelStorage",
version=VERSION,
author="Zope Foundation and Contributors",
maintainer="Shane Hathaway",
maintainer_email="shane@hathawaymix.org",
url="http://pypi.python.org/pypi/RelStorage",
packages=[
'relstorage',
'relstorage.adapters',
'relstorage.adapters.tests',
'relstorage.tests',
'relstorage.tests.blob',
],
package_data={
'relstorage': ['component.xml'],
},
license="ZPL 2.1",
platforms=["any"],
description=doclines[0],
classifiers=filter(None, classifiers.split("\n")),
long_description = (
read_file("README.txt") + "\n\n" +
"Change History\n" +
"==============\n\n" +
read_file("CHANGES.txt")),
**setup_args
)