setup.py 2.65 KB
Newer Older
jim's avatar
jim committed
1 2 3 4 5 6 7 8 9 10 11 12 13
##############################################################################
#
# Copyright (c) 2006 Zope Corporation 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.
#
##############################################################################
andreasjung's avatar
andreasjung committed
14 15

version = "1.0.6-dev"
jim's avatar
jim committed
16

jim's avatar
jim committed
17
import os
18 19
from setuptools import setup, find_packages

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

jim's avatar
jim committed
23
long_description=(
24
        read('README.txt')
jim's avatar
jim committed
25 26 27 28
        + '\n' +
        'Detailed Documentation\n'
        '**********************\n'
        + '\n' +
29 30
        read('src', 'zc', 'buildout', 'buildout.txt')
        + '\n' +
jim's avatar
jim committed
31 32
        read('src', 'zc', 'buildout', 'repeatable.txt')
        + '\n' +
jim's avatar
jim committed
33 34
        read('src', 'zc', 'buildout', 'downloadcache.txt')
        + '\n' +
jim's avatar
jim committed
35 36
        read('src', 'zc', 'buildout', 'setup.txt')
        + '\n' +
37
        read('src', 'zc', 'buildout', 'update.txt')
jim's avatar
jim committed
38
        + '\n' +
jim's avatar
jim committed
39 40
        read('src', 'zc', 'buildout', 'debugging.txt')
        + '\n' +
41
        read('src', 'zc', 'buildout', 'testing.txt')
jim's avatar
jim committed
42
        + '\n' +
43 44
        read('src', 'zc', 'buildout', 'easy_install.txt')
        + '\n' +
jim's avatar
jim committed
45 46
        read('CHANGES.txt')
        + '\n' +
47 48
        'Download\n'
        '**********************\n'
jim's avatar
jim committed
49 50
        )

jim's avatar
jim committed
51
open('doc.txt', 'w').write(long_description)
jim's avatar
jim committed
52 53 54 55

name = "zc.buildout"
setup(
    name = name,
jim's avatar
jim committed
56
    version = version,
jim's avatar
jim committed
57 58 59 60
    author = "Jim Fulton",
    author_email = "jim@zope.com",
    description = "System for managing development buildouts",
    long_description=long_description,
jim's avatar
jim committed
61 62
    license = "ZPL 2.1",
    keywords = "development build",
jim's avatar
jim committed
63
    url='http://www.python.org/pypi/zc.buildout',
jim's avatar
jim committed
64

65
    data_files = [('.', ['README.txt'])],
jim's avatar
jim committed
66 67
    packages = ['zc', 'zc.buildout'],
    package_dir = {'': 'src'},
68
    namespace_packages = ['zc'],
jim's avatar
jim committed
69
    install_requires = 'setuptools',
70 71
    include_package_data = True,
    tests_require = ['zope.testing'],
jim's avatar
jim committed
72
    test_suite = name+'.tests.test_suite',
73
    entry_points = {'console_scripts':
jim's avatar
jim committed
74
                    ['buildout = %s.buildout:main' % name]}, 
75
    zip_safe=False,
jim's avatar
jim committed
76 77 78 79 80 81
    classifiers = [
       'Intended Audience :: Developers',
       'License :: OSI Approved :: Zope Public License',
       'Topic :: Software Development :: Build Tools',
       'Topic :: Software Development :: Libraries :: Python Modules',
       ],
82
    )