-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (64 loc) · 2.25 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
import os
from setuptools import setup
from setuptools import find_packages
NAME = 'GenericSetup'
here = os.path.abspath(os.path.dirname(__file__))
package = os.path.join(here, 'Products', NAME)
docs = os.path.join(here, 'docs')
def _package_doc(name):
f = open(os.path.join(package, name))
return f.read()
def _docs_doc(name):
f = open(os.path.join(docs, name))
return f.read()
_boundary = '\n' + ('-' * 60) + '\n\n'
README = ( open('README.txt').read()
+ _boundary
+ _docs_doc('CHANGES.rst')
)
setup(name='Products.GenericSetup',
version=_package_doc('version.txt').strip(),
description='Read Zope configuration state from profile dirs / tarballs',
long_description=README,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Plone",
"Framework :: Zope2",
"Intended Audience :: Developers",
"License :: OSI Approved :: Zope Public License",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: System :: Archiving :: Packaging",
"Topic :: System :: Installation/Setup",
],
keywords='web application server zope zope2 cmf',
author="Zope Foundation and Contributors",
author_email="[email protected]",
url="http://pypi.python.org/pypi/Products.GenericSetup",
license="ZPL 2.1 (http://www.zope.org/Resources/License/ZPL-2.1)",
packages=find_packages(),
include_package_data=True,
namespace_packages=['Products'],
zip_safe=False,
setup_requires=['eggtestinfo',
],
install_requires=[
'setuptools',
'Zope2 >= 2.12.3',
'five.localsitemanager',
# 'Products.MailHost', # BBB: disabled for Zope 2.12
# 'Products.PythonScripts', # BBB: disabled for Zope 2.12
'zope.formlib',
],
tests_require=[
'zope.testrunner',
],
test_loader="zope.testrunner.eggsupport:SkipLayers",
test_suite="Products.GenericSetup.tests",
entry_points="""
[zope2.initialize]
Products.GenericSetup = Products.GenericSetup:initialize
[distutils.commands]
ftest = zope.testing.testrunner.eggsupport:ftest
""",
)