| 
0
 | 
     1 """
 | 
| 
 | 
     2 setup packaging script for TextShaper
 | 
| 
 | 
     3 """
 | 
| 
 | 
     4 
 | 
| 
 | 
     5 import os
 | 
| 
 | 
     6 
 | 
| 
 | 
     7 version = "0.0"
 | 
| 
18
 | 
     8 dependencies = ['webob', 'which']
 | 
| 
0
 | 
     9 
 | 
| 
 | 
    10 # allow use of setuptools/distribute or distutils
 | 
| 
 | 
    11 kw = {}
 | 
| 
 | 
    12 try:
 | 
| 
 | 
    13     from setuptools import setup
 | 
| 
 | 
    14     kw['entry_points'] = """
 | 
| 
 | 
    15       [console_scripts]
 | 
| 
26
 | 
    16       indent = textshaper.indent:main
 | 
| 
 | 
    17       quote = textshaper.quote:main
 | 
| 
3
 | 
    18       textshaper = textshaper.main:main
 | 
| 
21
 | 
    19       url2txt = textshaper.url2txt:main
 | 
| 
0
 | 
    20 """
 | 
| 
 | 
    21     kw['install_requires'] = dependencies
 | 
| 
 | 
    22 except ImportError:
 | 
| 
 | 
    23     from distutils.core import setup
 | 
| 
 | 
    24     kw['requires'] = dependencies
 | 
| 
 | 
    25 
 | 
| 
 | 
    26 try:
 | 
| 
 | 
    27     here = os.path.dirname(os.path.abspath(__file__))
 | 
| 
 | 
    28     description = file(os.path.join(here, 'README.txt')).read()
 | 
| 
 | 
    29 except IOError:
 | 
| 
 | 
    30     description = ''
 | 
| 
 | 
    31 
 | 
| 
 | 
    32 
 | 
| 
 | 
    33 setup(name='TextShaper',
 | 
| 
 | 
    34       version=version,
 | 
| 
 | 
    35       description="package to shape text blocks ",
 | 
| 
 | 
    36       long_description=description,
 | 
| 
 | 
    37       classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
 | 
| 
 | 
    38       author='Jeff Hammel',
 | 
| 
21
 | 
    39       author_email='k0scist@gmail.com',
 | 
| 
0
 | 
    40       url='http://k0s.org/hg/TextShaper',
 | 
| 
3
 | 
    41       license='MPL2',
 | 
| 
0
 | 
    42       packages=['textshaper'],
 | 
| 
 | 
    43       include_package_data=True,
 | 
| 
 | 
    44       zip_safe=False,
 | 
| 
 | 
    45       **kw
 | 
| 
 | 
    46       )
 | 
| 
 | 
    47 
 |