annotate setup.py @ 1:f4b604d44ff5 default tip

rename console script to avoid import madness
author Jeff Hammel <k0scist@gmail.com>
date Tue, 04 Jul 2017 20:56:43 -0700
parents bcd62e6d822c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 import os
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 from setuptools import setup
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 try:
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 here = os.path.dirname(os.path.abspath(__file__))
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 description = open(os.path.join(here, 'README.txt')).read()
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 except IOError:
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 description = None
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9
1
f4b604d44ff5 rename console script to avoid import madness
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
10 version = '0.1'
0
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 deps = []
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 setup(name='whichpy',
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 version=version,
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 description="python equivalent of which",
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 long_description=description,
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 keywords='',
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 author='Jeff Hammel',
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 author_email='k0scist@gmail.com',
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 url='https://pypi.python.org/pypi/whichpy',
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 license='',
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 py_modules=['which'],
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 packages=[],
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 include_package_data=True,
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 zip_safe=False,
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28 install_requires=deps,
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 entry_points="""
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30 # -*- Entry points: -*-
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31 [console_scripts]
1
f4b604d44ff5 rename console script to avoid import madness
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
32 which-py = which:main
0
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33 """,
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34 )
bcd62e6d822c initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35