Mercurial > hg > abbrev
comparison setup.py @ 0:ee1c34d2f1c4
initial commit
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 02 Mar 2014 19:01:54 -0800 |
parents | |
children | aa57b8f607bd |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ee1c34d2f1c4 |
---|---|
1 """ | |
2 setup packaging script for abbrev | |
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 abbrev = abbrev.main:main | |
17 abbrev-template = abbrev.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='abbrev', | |
32 version=version, | |
33 description="abbreviate lists of words to e.g. single-letter switches", | |
34 long_description=description, | |
35 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
36 author='Jeff Hammel', | |
37 author_email='k0scist@gmail.com', | |
38 url='http://k0s.org/hg/abbrev', | |
39 license='', | |
40 packages=['abbrev'], | |
41 include_package_data=True, | |
42 zip_safe=False, | |
43 **kw | |
44 ) | |
45 |