setup.py 2.8 KB
Newer Older
srichter's avatar
srichter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
##############################################################################
#
# Copyright (c) 2007 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.
#
##############################################################################
"""Setup for zc.recipe.egg package
"""
16

gary's avatar
gary committed
17
version = '1.3.3dev'
18

jim's avatar
jim committed
19
import os
20 21
from setuptools import setup, find_packages

jim's avatar
jim committed
22 23 24
def read(*rnames):
    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

jim's avatar
jim committed
25
name = "zc.recipe.egg"
26
setup(
jim's avatar
jim committed
27
    name = name,
28
    version = version,
29 30 31
    author = "Jim Fulton",
    author_email = "jim@zope.com",
    description = "Recipe for installing Python package distributions as eggs",
jim's avatar
jim committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    long_description = (
        read('README.txt')
        + '\n' +
        read('CHANGES.txt')
        + '\n' +
        'Detailed Documentation\n'
        '**********************\n'
        + '\n' +
        read('src', 'zc', 'recipe', 'egg', 'README.txt')
        + '\n' +
        read('src', 'zc', 'recipe', 'egg', 'selecting-python.txt')
        + '\n' +
        read('src', 'zc', 'recipe', 'egg', 'custom.txt')
        + '\n' +
        read('src', 'zc', 'recipe', 'egg', 'api.txt')
        + '\n' +
        'Download\n'
srichter's avatar
srichter committed
49
        '*********\n'
jim's avatar
jim committed
50
        ),
51
    keywords = "development build",
srichter's avatar
srichter committed
52 53 54 55 56 57 58 59 60 61
    classifiers = [
       'Development Status :: 5 - Production/Stable',
       'Framework :: Buildout',
       'Intended Audience :: Developers',
       'License :: OSI Approved :: Zope Public License',
       'Topic :: Software Development :: Build Tools',
       'Topic :: Software Development :: Libraries :: Python Modules',
       ],
    url='http://cheeseshop.python.org/pypi/zc.recipe.egg',
    license = "ZPL 2.1",
62

63 64 65
    packages = find_packages('src'),
    package_dir = {'':'src'},
    namespace_packages = ['zc', 'zc.recipe'],
srichter's avatar
srichter committed
66
    install_requires = [
67
        'zc.buildout >=1.5.0',
68
        'setuptools'],
69
    tests_require = ['zope.testing'],
jim's avatar
jim committed
70
    test_suite = name+'.tests.test_suite',
71 72 73 74
    entry_points = {'zc.buildout': ['default = %s:Scripts' % name,
                                    'script = %s:Scripts' % name,
                                    'scripts = %s:Scripts' % name,
                                    'eggs = %s:Eggs' % name,
75
                                    'custom = %s:Custom' % name,
76
                                    'develop = %s:Develop' % name,
77
                                    ]
jim's avatar
jim committed
78
                    },
srichter's avatar
srichter committed
79
    include_package_data = True,
jim's avatar
jim committed
80
    zip_safe=False,
81
    )