setup.py 3.03 KB
Newer Older
1 2
##############################################################################
#
3
# Copyright (c) 2007 Zope Foundation and Contributors.
4 5 6 7 8 9 10 11 12 13 14 15
# 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

17
version = '2.0.2.dev0'
18

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

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

Jim Fulton's avatar
Jim Fulton committed
25
name = "zc.recipe.egg"
26
setup(
Jim Fulton's avatar
Jim Fulton 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 Fulton's avatar
Jim Fulton committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
    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', 'custom.txt')
        + '\n' +
        read('src', 'zc', 'recipe', 'egg', 'api.txt')
        + '\n' +
        'Download\n'
47
        '*********\n'
Jim Fulton's avatar
Jim Fulton committed
48
        ),
49
    keywords = "development build",
50 51 52 53 54
    classifiers = [
       'Development Status :: 5 - Production/Stable',
       'Framework :: Buildout',
       'Intended Audience :: Developers',
       'License :: OSI Approved :: Zope Public License',
55
       'Programming Language :: Python',
56 57 58
       'Programming Language :: Python :: 2',
       'Programming Language :: Python :: 2.6',
       'Programming Language :: Python :: 2.7',
59
       'Programming Language :: Python :: 3',
60 61
       'Programming Language :: Python :: 3.2',
       'Programming Language :: Python :: 3.3',
62 63 64 65 66
       'Topic :: Software Development :: Build Tools',
       'Topic :: Software Development :: Libraries :: Python Modules',
       ],
    url='http://cheeseshop.python.org/pypi/zc.recipe.egg',
    license = "ZPL 2.1",
67

68 69 70
    packages = find_packages('src'),
    package_dir = {'':'src'},
    namespace_packages = ['zc', 'zc.recipe'],
71
    install_requires = [
Jim Fulton's avatar
Jim Fulton committed
72
        'zc.buildout >=1.2.0',
73
        'setuptools'],
74
    tests_require = ['zope.testing'],
Jim Fulton's avatar
Jim Fulton committed
75
    test_suite = name+'.tests.test_suite',
76 77 78 79
    entry_points = {'zc.buildout': ['default = %s:Scripts' % name,
                                    'script = %s:Scripts' % name,
                                    'scripts = %s:Scripts' % name,
                                    'eggs = %s:Eggs' % name,
80
                                    'custom = %s:Custom' % name,
81
                                    'develop = %s:Develop' % name,
82
                                    ]
Jim Fulton's avatar
Jim Fulton committed
83
                    },
84
    include_package_data = True,
Jim Fulton's avatar
Jim Fulton committed
85
    zip_safe=False,
86
    )