annotate setup.py @ 0:a9af2eba16b7

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