Mercurial > hg > abbrev
annotate setup.py @ 2:aa57b8f607bd default tip
still doesnt work; lets find another
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Thu, 14 Jul 2016 12:17:35 -0700 |
| parents | ee1c34d2f1c4 |
| children |
| rev | line source |
|---|---|
| 0 | 1 """ |
| 2 setup packaging script for abbrev | |
| 3 """ | |
| 4 | |
| 5 import os | |
| 6 | |
|
2
aa57b8f607bd
still doesnt work; lets find another
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
7 version = "0.1" |
|
aa57b8f607bd
still doesnt work; lets find another
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
8 dependencies = [] |
| 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] | |
| 16 abbrev = abbrev.main:main | |
| 17 """ | |
| 18 kw['install_requires'] = dependencies | |
| 19 except ImportError: | |
| 20 from distutils.core import setup | |
| 21 kw['requires'] = dependencies | |
| 22 | |
| 23 try: | |
| 24 here = os.path.dirname(os.path.abspath(__file__)) | |
| 25 description = file(os.path.join(here, 'README.txt')).read() | |
| 26 except IOError: | |
| 27 description = '' | |
| 28 | |
| 29 | |
| 30 setup(name='abbrev', | |
| 31 version=version, | |
| 32 description="abbreviate lists of words to e.g. single-letter switches", | |
| 33 long_description=description, | |
| 34 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
| 35 author='Jeff Hammel', | |
| 36 author_email='k0scist@gmail.com', | |
| 37 url='http://k0s.org/hg/abbrev', | |
| 38 license='', | |
| 39 packages=['abbrev'], | |
| 40 include_package_data=True, | |
| 41 zip_safe=False, | |
| 42 **kw | |
| 43 ) |
