-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
80 lines (72 loc) · 2.4 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
##############################################################################
#
# Copyright (c) 2011 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
#
##############################################################################
"""ZC Buildout recipe for creating templated files."""
import os
from setuptools import setup, find_packages
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
tests_require = [
'zope.testing',
]
entry_points = """
[zc.buildout]
default = zc.recipe.filetemplate:FileTemplate
script = zc.recipe.filetemplate:ScriptTemplate
"""
setup(
name='zc.recipe.filetemplate',
version='0',
author='Zvezdan Petkovic',
author_email='[email protected]',
description=__doc__,
long_description='\n\n'.join([
read('README.txt'),
'\n'.join([
'Detailed Documentation',
'**********************',
]),
read('src', 'zc', 'recipe', 'filetemplate', 'README.txt'),
read('CHANGES.txt'),
]),
license='ZVSL 1.0',
keywords=('zc.buildout buildout recipe file template'),
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Buildout',
'Intended Audience :: Developers',
'License :: Other/Proprietary License :: Zope Visible Source License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
],
# This is not public!
url='http://svn.zope.com/zc.recipe.filetemplate/',
packages=find_packages('src'),
package_dir={'': 'src'},
namespace_packages=['zc', 'zc.recipe'],
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'zc.buildout',
],
extras_require=dict(
test=tests_require,
),
tests_require=tests_require,
test_suite='zc.recipe.filetemplate.tests.test_suite',
entry_points=entry_points,
)