annotate setup.py @ 0:b53ce9bde2c8

stubbing
author Jeff Hammel <k0scist@gmail.com>
date Tue, 30 Jun 2015 15:37:05 -0700
parents
children 83c51f45b82d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 """
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 setup packaging script for requestdumpster
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 import os
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 version = "0.0"
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 dependencies = []
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 # allow use of setuptools/distribute or distutils
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 kw = {}
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 try:
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 from setuptools import setup
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 kw['entry_points'] = """
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 """
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 kw['install_requires'] = dependencies
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 except ImportError:
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 from distutils.core import setup
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 kw['requires'] = dependencies
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 try:
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 here = os.path.dirname(os.path.abspath(__file__))
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 description = file(os.path.join(here, 'README.txt')).read()
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 except IOError:
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 description = ''
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 setup(name='RequestDumpster',
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30 version=version,
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31 description="dump requests",
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
32 long_description=description,
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34 author='Jeff Hammel',
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35 author_email='k0scist@gmail.com',
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
36 url='http://k0s.org/hg/RequestDumpster',
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
37 license='',
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
38 packages=['requestdumpster'],
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
39 include_package_data=True,
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
40 zip_safe=False,
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
41 **kw
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
42 )
b53ce9bde2c8 stubbing
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
43