Mercurial > hg > TextShaper
comparison setup.py @ 0:53cfd6e1ad0f
initial commit,
from http://k0s.org/portfolio/ideas/textshaper.py ,
see also http://k0s.org/portfolio/ideas/cleanuptext.py
So you have a block of text ... What do you want to do with it?!? ==
Desired Functionality == == Previous work == /corpus of past programs
-> consolidate/ - onelineit - quoting - dequoting (including e.g. +/-,
diff-ish shit) - removing timestamps - removing/adding irc quote tags
Interface: - library code - (n)curses - javascript/REST Consider the
pattern: * things that add and/or remove a thing * things that alter
spacing == Reference == Previous k0s.ware (big and small): -
http://k0s.org/hg/config/rev/5e0b4ec36013 Highly related (~>
identity): http://k0s.org/portfolio/ideas/cleanuptext.py Ubuntu
packages: - par (paragraph reformatter)
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Sat, 10 Aug 2013 15:47:30 -0700 |
| parents | |
| children | 925a7959cd0b |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:53cfd6e1ad0f |
|---|---|
| 1 """ | |
| 2 setup packaging script for TextShaper | |
| 3 """ | |
| 4 | |
| 5 import os | |
| 6 | |
| 7 version = "0.0" | |
| 8 dependencies = ['MakeItSo', 'webob'] | |
| 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] | |
| 16 TextShaper = TextShaper.main:main | |
| 17 TextShaper-template = TextShaper.template:main | |
| 18 """ | |
| 19 kw['install_requires'] = dependencies | |
| 20 except ImportError: | |
| 21 from distutils.core import setup | |
| 22 kw['requires'] = dependencies | |
| 23 | |
| 24 try: | |
| 25 here = os.path.dirname(os.path.abspath(__file__)) | |
| 26 description = file(os.path.join(here, 'README.txt')).read() | |
| 27 except IOError: | |
| 28 description = '' | |
| 29 | |
| 30 | |
| 31 setup(name='TextShaper', | |
| 32 version=version, | |
| 33 description="package to shape text blocks ", | |
| 34 long_description=description, | |
| 35 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
| 36 author='Jeff Hammel', | |
| 37 author_email='jhammel@mozilla.com', | |
| 38 url='http://k0s.org/hg/TextShaper', | |
| 39 license='', | |
| 40 packages=['textshaper'], | |
| 41 include_package_data=True, | |
| 42 zip_safe=False, | |
| 43 **kw | |
| 44 ) | |
| 45 |
