setup.py 3.35 KB
Newer Older
Jim Fulton's avatar
Jim Fulton committed
1 2
##############################################################################
#
3
# Copyright (c) 2006-2009 Zope Foundation and Contributors.
Jim Fulton's avatar
Jim Fulton committed
4 5 6 7 8 9 10 11 12 13
# 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.
#
##############################################################################
14
name = "zc.buildout"
Jim Fulton's avatar
Jim Fulton committed
15
version = "2.0.1"
Jim Fulton's avatar
Jim Fulton committed
16

Jim Fulton's avatar
Jim Fulton committed
17
import os
Jim Fulton's avatar
Jim Fulton committed
18
from setuptools import setup
19

20 21 22
def read(*rnames):
    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

23 24
doc_intro = """

Jim Fulton's avatar
Jim Fulton committed
25
Below, you'll find doctest-based documentation.  It was an experiment
26 27 28 29
in reusing tests as documentation.  The experiment didn't go that
well, but there may be details below that aren't easy to find on
buildout.org yet.

Jim Fulton's avatar
Jim Fulton committed
30 31
.. contents ::

32 33 34 35 36
doctest-based Documentation
***************************

"""

Jim Fulton's avatar
Jim Fulton committed
37
long_description=(
38
        read('README.rst')
39
        + doc_intro +
40 41
        read('src', 'zc', 'buildout', 'buildout.txt')
        + '\n' +
Jim Fulton's avatar
Jim Fulton committed
42 43
        read('src', 'zc', 'buildout', 'repeatable.txt')
        + '\n' +
44 45
        read('src', 'zc', 'buildout', 'download.txt')
        + '\n' +
Jim Fulton's avatar
Jim Fulton committed
46 47
        read('src', 'zc', 'buildout', 'downloadcache.txt')
        + '\n' +
48 49
        read('src', 'zc', 'buildout', 'extends-cache.txt')
        + '\n' +
Jim Fulton's avatar
Jim Fulton committed
50 51
        read('src', 'zc', 'buildout', 'setup.txt')
        + '\n' +
52
        read('src', 'zc', 'buildout', 'update.txt')
Jim Fulton's avatar
Jim Fulton committed
53
        + '\n' +
Jim Fulton's avatar
Jim Fulton committed
54 55
        read('src', 'zc', 'buildout', 'debugging.txt')
        + '\n' +
Jim Fulton's avatar
Jim Fulton committed
56 57
        read('src', 'zc', 'buildout', 'meta-recipes.txt')
        + '\n' +
58
        read('src', 'zc', 'buildout', 'testing.txt')
Jim Fulton's avatar
Jim Fulton committed
59
        + '\n' +
60 61
        read('src', 'zc', 'buildout', 'easy_install.txt')
        + '\n' +
62
        read('CHANGES.rst')
63 64 65
        # + '\n' +
        # 'Download\n'
        # '**********************\n'
Jim Fulton's avatar
Jim Fulton committed
66 67
        )

68 69 70 71 72 73 74 75
entry_points = """
[console_scripts]
buildout = %(name)s.buildout:main

[zc.buildout]
debug = %(name)s.testrecipes:Debug

""" % dict(name=name)
Jim Fulton's avatar
Jim Fulton committed
76 77 78

setup(
    name = name,
Jim Fulton's avatar
Jim Fulton committed
79
    version = version,
Jim Fulton's avatar
Jim Fulton committed
80 81 82 83
    author = "Jim Fulton",
    author_email = "jim@zope.com",
    description = "System for managing development buildouts",
    long_description=long_description,
Jim Fulton's avatar
Jim Fulton committed
84 85
    license = "ZPL 2.1",
    keywords = "development build",
86
    url='http://buildout.org',
Jim Fulton's avatar
Jim Fulton committed
87

88
    data_files = [('.', ['README.rst'])],
Jim Fulton's avatar
Jim Fulton committed
89 90
    packages = ['zc', 'zc.buildout'],
    package_dir = {'': 'src'},
91
    namespace_packages = ['zc'],
92
    install_requires = 'setuptools',
93
    include_package_data = True,
94
    entry_points = entry_points,
Jim Fulton's avatar
Jim Fulton committed
95
    extras_require = dict(test=['zope.testing', 'manuel']),
96
    zip_safe=False,
Jim Fulton's avatar
Jim Fulton committed
97 98 99
    classifiers = [
       'Intended Audience :: Developers',
       'License :: OSI Approved :: Zope Public License',
100
       'Programming Language :: Python',
101
       'Programming Language :: Python :: 3',
102 103 104 105
       'Programming Language :: Python :: 2.6',
       'Programming Language :: Python :: 2.7',
       'Programming Language :: Python :: 3.2',
       'Programming Language :: Python :: 3.3',
Jim Fulton's avatar
Jim Fulton committed
106 107 108
       'Topic :: Software Development :: Build Tools',
       'Topic :: Software Development :: Libraries :: Python Modules',
       ],
109
    )
110