setup.py
changeset 0 16d47bd81d84
child 24 98d0305e0587
equal deleted inserted replaced
-1:000000000000 0:16d47bd81d84
       
     1 ### -*- coding: utf-8 -*- ####################################################
       
     2 ##############################################################################
       
     3 #
       
     4 # Copyright (c) 2008-2010 Thierry Florac <tflorac AT ulthar.net>
       
     5 # All Rights Reserved.
       
     6 #
       
     7 # This software is subject to the provisions of the Zope Public License,
       
     8 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
       
     9 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
       
    10 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
       
    11 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
       
    12 # FOR A PARTICULAR PURPOSE.
       
    13 #
       
    14 ##############################################################################
       
    15 
       
    16 """
       
    17 This module contains pyams_utils package
       
    18 """
       
    19 import os
       
    20 from setuptools import setup, find_packages
       
    21 
       
    22 DOCS = os.path.join(os.path.dirname(__file__),
       
    23                     'docs')
       
    24 
       
    25 README = os.path.join(DOCS, 'README.txt')
       
    26 HISTORY = os.path.join(DOCS, 'HISTORY.txt')
       
    27 
       
    28 version = '0.1.0'
       
    29 long_description = open(README).read() + '\n\n' + open(HISTORY).read()
       
    30 
       
    31 tests_require = [
       
    32     'pyramid_zcml'
       
    33 ]
       
    34 
       
    35 setup(name='pyams_utils',
       
    36       version=version,
       
    37       description="Utility functions and classes for PyAMS",
       
    38       long_description=long_description,
       
    39       classifiers=[
       
    40           "License :: OSI Approved :: Zope Public License",
       
    41           "Development Status :: 4 - Beta",
       
    42           "Programming Language :: Python",
       
    43           "Framework :: Zope3",
       
    44           "Topic :: Software Development :: Libraries :: Python Modules",
       
    45       ],
       
    46       keywords='Pyramid PyAMS utilities',
       
    47       author='Thierry Florac',
       
    48       author_email='tflorac@ulthar.net',
       
    49       url='http://www.ztfy.org',
       
    50       license='ZPL',
       
    51       packages=find_packages('src'),
       
    52       package_dir={'': 'src'},
       
    53       namespace_packages=[],
       
    54       include_package_data=True,
       
    55       package_data={'': ['*.zcml', '*.txt', '*.pt', '*.pot', '*.po', '*.mo', '*.png', '*.gif', '*.jpeg', '*.jpg', '*.css', '*.js']},
       
    56       zip_safe=False,
       
    57       # uncomment this to be able to run tests with setup.py
       
    58       test_suite="pyams_utils.tests.test_utilsdocs.test_suite",
       
    59       tests_require=tests_require,
       
    60       extras_require=dict(test=tests_require),
       
    61       install_requires=[
       
    62           'setuptools',
       
    63           # -*- Extra requirements: -*-
       
    64           'babel',
       
    65           'chameleon',
       
    66           'docutils',
       
    67           'httplib2',
       
    68           'persistent',
       
    69           'pyramid',
       
    70           'pyramid_zodbconn',
       
    71           'pysocks',
       
    72           'pytz',
       
    73           'transaction',
       
    74           'z3c.form',
       
    75           'z3c.pt',
       
    76           'z3c.ptcompat',
       
    77           'ZODB',
       
    78           'zope.annotation',
       
    79           'zope.component',
       
    80           'zope.container',
       
    81           'zope.datetime',
       
    82           'zope.interface',
       
    83           'zope.schema',
       
    84           'zope.security',
       
    85           'zope.site',
       
    86           'zope.traversing'
       
    87       ],
       
    88       entry_points="""
       
    89       # -*- Entry points: -*-
       
    90       [console_scripts]
       
    91       pyams_upgrade = pyams_utils.scripts.zodb:upgrade_site
       
    92       """,
       
    93       )