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