forked from zopefoundation/zc.zlibstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
75 lines (66 loc) · 2.15 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
##############################################################################
#
# Copyright (c) 2010 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.
#
##############################################################################
name, version = 'zc.zlibstorage', '1.2.0'
install_requires = [
'setuptools',
'ZODB',
'zope.interface',
]
extras_require = {
'test': [
'zope.testing',
'manuel',
'ZEO[test]',
'zodbpickle',
]
}
entry_points = """
"""
from setuptools import setup
import os
def read(filename):
with open(filename) as f:
return f.read()
readme = read(os.path.join('src', *name.split('.') + ['README.txt']))
changes = read('CHANGES.rst')
long_description = readme + '\n\n' + changes
setup(
author='Jim Fulton',
author_email='[email protected]',
license='ZPL 2.1',
name=name,
version=version,
url='https://github.com/zopefoundation/zc.zlibstorage/',
long_description=long_description,
description=long_description.split('\n')[1],
classifiers=[
"Programming Language :: Python",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
packages=[name.split('.')[0], name],
namespace_packages=[name.split('.')[0]],
package_dir={'': 'src'},
install_requires=install_requires,
zip_safe=False,
entry_points=entry_points,
include_package_data=True,
extras_require=extras_require,
tests_require=extras_require['test'],
test_suite=name + '.tests.test_suite',
)