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