This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
92 lines (83 loc) · 2.84 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
##############################################################################
#
# Copyright (c) Zope Corporation. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Visible Source
# License, Version 1.0 (ZVSL). A copy of the ZVSL 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
#
##############################################################################
name = 'zc.zrs'
version = '4.0.0.dev0'
try:
from ez_setup import use_setuptools
use_setuptools()
except ImportError:
pass
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
import os, shutil
if os.path.isdir('build'):
shutil.rmtree('build')
entry_points = """
[console_scripts]
zrsmonitor-script = zc.zrs.monitor:main
last-zeo-transaction = zc.zrs.last:main
zrs-nagios = zc.zrs.nagios:basic
"""
tests_require = ['zope.testing', 'mock', 'ZEO']
long_description = (
open('README.rst').read() + '\n\n' + open('CHANGES.rst').read())
classifiers = """\
Intended Audience :: Developers
License :: OSI Approved :: Zope Public License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Topic :: Database
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: Microsoft :: Windows
Operating System :: Unix
Framework :: ZODB
""".strip().split('\n')
setup(
name = name,
long_description = long_description,
description = long_description.split('\n')[1],
version = version,
author = "Jim Fulton",
author_email = "jim@jimfulton.info",
maintainer = "Zope Foundation and Contributors",
maintainer_email = "zodb@googlegroups.com",
license = "ZPL 2.1",
keywords = "ZODB",
classifiers = classifiers,
url='https://github.com/zopefoundation/zc.zrs',
project_urls={
'Issue Tracker': 'https://github.com/zopefoundation/zc.zrs/issues',
'Sources': 'https://github.com/zopefoundation/zc.zrs',
},
packages = ['zc', 'zc.zrs'],
include_package_data = True,
data_files = [('.', ['README.rst'])],
zip_safe = True,
entry_points = entry_points,
package_dir = {'':'src'},
namespace_packages = ['zc'],
install_requires = ['setuptools', 'six', 'Twisted', 'ZODB >=5.6.0'],
extras_require = dict(test=tests_require),
tests_require = tests_require,
test_suite = 'zc.zrstests.tests.test_suite',
)