Mercurial > hg > TextShaper
annotate setup.py @ 57:a2bbe406f570 default tip
which is no longer maintained; roll our mediocre own
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 20 Feb 2017 10:40:34 -0800 |
parents | 4576ccc3be76 |
children |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for TextShaper | |
3 """ | |
4 | |
5 import os | |
6 | |
7 version = "0.0" | |
57
a2bbe406f570
which is no longer maintained; roll our mediocre own
Jeff Hammel <k0scist@gmail.com>
parents:
56
diff
changeset
|
8 dependencies = ['webob', 'whichpy'] |
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 | |
53 | 20 sentences = textshaper.split:main |
44 | 21 textshaper = textshaper.main:main |
22 url2txt = textshaper.url2txt:main | |
0 | 23 """ |
24 kw['install_requires'] = dependencies | |
25 except ImportError: | |
26 from distutils.core import setup | |
27 kw['requires'] = dependencies | |
28 | |
29 try: | |
30 here = os.path.dirname(os.path.abspath(__file__)) | |
56 | 31 description = open(os.path.join(here, 'README.txt')).read() |
0 | 32 except IOError: |
33 description = '' | |
34 | |
35 | |
36 setup(name='TextShaper', | |
37 version=version, | |
38 description="package to shape text blocks ", | |
39 long_description=description, | |
40 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
41 author='Jeff Hammel', | |
21 | 42 author_email='k0scist@gmail.com', |
0 | 43 url='http://k0s.org/hg/TextShaper', |
3 | 44 license='MPL2', |
0 | 45 packages=['textshaper'], |
46 include_package_data=True, | |
47 zip_safe=False, | |
48 **kw | |
49 ) | |
50 |