forked from zodb/relstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
95 lines (87 loc) · 2.99 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
##############################################################################
#
# 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.6.0dev"
# The choices for the Trove Development Status line:
# Development Status :: 5 - Production/Stable
# Development Status :: 4 - Beta
# Development Status :: 3 - Alpha
classifiers = """\
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
from setuptools import setup
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="[email protected]",
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")),
zip_safe=False, # otherwise ZConfig can't see component.xml
install_requires=[
'perfmetrics',
'ZODB3>=3.7.0',
'zope.interface',
'zc.lockfile',
],
tests_require=['mock'],
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',
],
'zodburi.resolvers': [
('postgres = '
'relstorage.zodburi_resolver:postgresql_resolver [postgresql]'),
'mysql = relstorage.zodburi_resolver:mysql_resolver [mysql]',
'oracle = relstorage.zodburi_resolver:oracle_resolver [oracle]'
]},
test_suite='relstorage.tests.alltests.make_suite',
)