| 1 | # -*- coding: utf-8 -*- |
|---|
| 2 | """ |
|---|
| 3 | This module contains the tool of pbp.recipe.hgtrac |
|---|
| 4 | """ |
|---|
| 5 | import os |
|---|
| 6 | from setuptools import setup, find_packages |
|---|
| 7 | |
|---|
| 8 | def read(*rnames): |
|---|
| 9 | return open(os.path.join(os.path.dirname(__file__), *rnames)).read() |
|---|
| 10 | |
|---|
| 11 | version = '0.1.0' |
|---|
| 12 | |
|---|
| 13 | long_description = ( |
|---|
| 14 | read('README.txt') |
|---|
| 15 | + '\n' + |
|---|
| 16 | 'Change history\n' |
|---|
| 17 | '**************\n' |
|---|
| 18 | + '\n' + |
|---|
| 19 | read('CHANGES.txt') |
|---|
| 20 | + '\n' + |
|---|
| 21 | 'Detailed Documentation\n' |
|---|
| 22 | '**********************\n' |
|---|
| 23 | + '\n' + |
|---|
| 24 | read('pbp', 'recipe', 'hgtrac', 'README.txt') |
|---|
| 25 | + '\n' + |
|---|
| 26 | 'Contributors\n' |
|---|
| 27 | '************\n' |
|---|
| 28 | + '\n' + |
|---|
| 29 | read('CONTRIBUTORS.txt') |
|---|
| 30 | + '\n' + |
|---|
| 31 | 'Download\n' |
|---|
| 32 | '********\n' |
|---|
| 33 | ) |
|---|
| 34 | entry_point = 'pbp.recipe.hgtrac:Recipe' |
|---|
| 35 | entry_points = {"zc.buildout": ["default = %s" % entry_point]} |
|---|
| 36 | |
|---|
| 37 | tests_require=['zope.testing', 'zc.buildout'] |
|---|
| 38 | |
|---|
| 39 | setup(name='pbp.recipe.hgtrac', |
|---|
| 40 | version=version, |
|---|
| 41 | description="Sets a Trac instance hooked with a mercurial repository", |
|---|
| 42 | long_description=long_description, |
|---|
| 43 | # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers |
|---|
| 44 | classifiers=[ |
|---|
| 45 | 'Framework :: Buildout', |
|---|
| 46 | 'Intended Audience :: Developers', |
|---|
| 47 | 'Topic :: Software Development :: Build Tools', |
|---|
| 48 | 'Topic :: Software Development :: Libraries :: Python Modules', |
|---|
| 49 | 'License :: OSI Approved :: Zope Public License', |
|---|
| 50 | ], |
|---|
| 51 | keywords='mercurial hg trac buildout', |
|---|
| 52 | author='Tarek Ziade', |
|---|
| 53 | author_email='tarek@ziade.org', |
|---|
| 54 | url='http://hg.programmation-python.org', |
|---|
| 55 | license='ZPL', |
|---|
| 56 | packages=find_packages(exclude=['ez_setup']), |
|---|
| 57 | namespace_packages=['pbp', 'pbp.recipe'], |
|---|
| 58 | include_package_data=True, |
|---|
| 59 | zip_safe=False, |
|---|
| 60 | install_requires=['setuptools', |
|---|
| 61 | 'zc.buildout', |
|---|
| 62 | 'zc.recipe.egg', |
|---|
| 63 | 'Pygments', |
|---|
| 64 | 'Genshi', |
|---|
| 65 | #'Trac', |
|---|
| 66 | 'TracMercurial', |
|---|
| 67 | #'pysqlite', |
|---|
| 68 | #'mercurial' |
|---|
| 69 | # -*- Extra requirements: -*- |
|---|
| 70 | ], |
|---|
| 71 | tests_require=tests_require, |
|---|
| 72 | extras_require=dict(tests=tests_require), |
|---|
| 73 | test_suite = 'pbp.recipe.hgtrac.tests.test_docs.test_suite', |
|---|
| 74 | entry_points=entry_points, |
|---|
| 75 | dependency_links = ['http://svn.edgewall.com/repos/trac/sandbox/mercurial-plugin-0.11#egg=TracMercurial'] |
|---|
| 76 | ) |
|---|