setup.py 3.36 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.0a5"
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' +
56
        read('src', 'zc', 'buildout', 'testing.txt')
Jim Fulton's avatar
Jim Fulton committed
57
        + '\n' +
58 59
        read('src', 'zc', 'buildout', 'easy_install.txt')
        + '\n' +
60
        read('CHANGES.rst')
61 62 63
        # + '\n' +
        # 'Download\n'
        # '**********************\n'
Jim Fulton's avatar
Jim Fulton committed
64 65
        )

66 67 68 69 70 71 72 73
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
74 75 76

setup(
    name = name,
Jim Fulton's avatar
Jim Fulton committed
77
    version = version,
Jim Fulton's avatar
Jim Fulton committed
78 79 80 81
    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
82 83
    license = "ZPL 2.1",
    keywords = "development build",
84
    url='http://buildout.org',
Jim Fulton's avatar
Jim Fulton committed
85

86
    data_files = [('.', ['README.rst'])],
Jim Fulton's avatar
Jim Fulton committed
87 88
    packages = ['zc', 'zc.buildout'],
    package_dir = {'': 'src'},
89
    namespace_packages = ['zc'],
90
    install_requires = 'setuptools',
91
    include_package_data = True,
92
    entry_points = entry_points,
Gary Poster's avatar
Gary Poster committed
93
    extras_require = dict(test=['zope.testing']),
94
    zip_safe=False,
Jim Fulton's avatar
Jim Fulton committed
95 96 97
    classifiers = [
       'Intended Audience :: Developers',
       'License :: OSI Approved :: Zope Public License',
98
       'Programming Language :: Python',
99
       'Programming Language :: Python :: 3',
100 101 102 103 104 105
       'Programming Language :: Python :: 2.4',
       'Programming Language :: Python :: 2.5',
       '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