annotate setup.py @ 1:f3e18bcfb90b default tip

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