-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
101 lines (93 loc) · 3.13 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
96
97
98
99
100
101
##############################################################################
#
# Copyright (c) 2009 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 ZODB performance test"""
from setuptools import setup, find_packages
import os
install_requires = [
'objgraph',
'setuptools',
'pyperf',
'ZODB >= 4.4.2',
'ZEO >= 4.2.0',
'statistics; python_version == "2.7"',
'perfmetrics',
]
tests_require = [
'zope.testrunner',
'nti.testing',
]
def read_file(*path):
base_dir = os.path.dirname(__file__)
with open(os.path.join(base_dir, *tuple(path))) as f:
return f.read()
version = read_file('version.txt').strip()
setup(
name='zodbshootout',
version=version,
description=__doc__,
long_description=read_file("README.rst"),
url='http://zodbshootout.readthedocs.io',
keywords='ZODB ZEO RelStorage benchmark',
author='Shane Hathaway',
author_email='[email protected]',
maintainer='Jason Madden',
maintainer_email='[email protected]',
license='ZPL',
packages=find_packages('src'),
package_dir={'': 'src'},
namespace_packages=[],
include_package_data=True,
platforms='Any',
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
entry_points={
'console_scripts': [
'zodbshootout = zodbshootout.main:main',
]
},
extras_require={
'mysql': [
'relstorage[mysql] >= 2.0rc1',
# Until RelStorage 3.0 is released, we need to pin to an older version
# of mysqlclient on Python 3.
# https://github.com/zodb/relstorage/issues/213
'mysqlclient>=1.3.7, < 1.4;platform_python_implementation=="CPython" and python_version >= "3.3" and sys_platform != "win32"',
],
'postgresql': [
'relstorage[postgresql] >= 2.0rc1',
],
'oracle': [
'relstorage[oracle] >= 2.0rc1',
],
'sqlite': [
'relstorage >= 3.0.0',
],
"test": tests_require,
},
classifiers=[
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Zope Public License",
],
)