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
|
42
|
17 onelineit = textshaper.onelineit:main
|
26
|
18 quote = textshaper.quote:main
|
3
|
19 textshaper = textshaper.main:main
|
21
|
20 url2txt = textshaper.url2txt:main
|
0
|
21 """
|
|
22 kw['install_requires'] = dependencies
|
|
23 except ImportError:
|
|
24 from distutils.core import setup
|
|
25 kw['requires'] = dependencies
|
|
26
|
|
27 try:
|
|
28 here = os.path.dirname(os.path.abspath(__file__))
|
|
29 description = file(os.path.join(here, 'README.txt')).read()
|
|
30 except IOError:
|
|
31 description = ''
|
|
32
|
|
33
|
|
34 setup(name='TextShaper',
|
|
35 version=version,
|
|
36 description="package to shape text blocks ",
|
|
37 long_description=description,
|
|
38 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
|
|
39 author='Jeff Hammel',
|
21
|
40 author_email='k0scist@gmail.com',
|
0
|
41 url='http://k0s.org/hg/TextShaper',
|
3
|
42 license='MPL2',
|
0
|
43 packages=['textshaper'],
|
|
44 include_package_data=True,
|
|
45 zip_safe=False,
|
|
46 **kw
|
|
47 )
|
|
48
|