setup.py 3.4 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"
15
version = '2.7.1+slapos015'
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
def read(*rnames):
21 22
    with open(os.path.join(os.path.dirname(__file__), *rnames)) as f:
        return f.read()
23

24 25
doc_intro = """

Jim Fulton's avatar
Jim Fulton committed
26
Below, you'll find doctest-based documentation.  It was an experiment
27 28 29 30
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
31 32
.. contents ::

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

"""

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

69 70 71 72 73 74 75 76
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
77 78 79

setup(
    name = name,
Jim Fulton's avatar
Jim Fulton committed
80
    version = version,
Jim Fulton's avatar
Jim Fulton committed
81 82 83 84
    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
85 86
    license = "ZPL 2.1",
    keywords = "development build",
87
    url='http://buildout.org',
Jim Fulton's avatar
Jim Fulton committed
88 89
    packages = ['zc', 'zc.buildout'],
    package_dir = {'': 'src'},
90
    namespace_packages = ['zc'],
91
    install_requires = [
92
        'setuptools>=8.0',
93
    ],
94
    include_package_data = True,
95
    entry_points = entry_points,
96
    extras_require = dict(test=['zope.testing', 'manuel']),
97
    zip_safe=False,
Jim Fulton's avatar
Jim Fulton committed
98 99 100
    classifiers = [
       'Intended Audience :: Developers',
       'License :: OSI Approved :: Zope Public License',
101
       'Programming Language :: Python',
102
       'Programming Language :: Python :: 2',
103
       'Programming Language :: Python :: 2.7',
104
       'Programming Language :: Python :: 3',
105
       'Programming Language :: Python :: 3.4',
106
       'Programming Language :: Python :: 3.5',
Jim Fulton's avatar
Jim Fulton committed
107
       'Programming Language :: Python :: 3.6',
Jim Fulton's avatar
Jim Fulton committed
108 109 110
       'Topic :: Software Development :: Build Tools',
       'Topic :: Software Development :: Libraries :: Python Modules',
       ],
111
    )