0
|
1 """
|
|
2 setup packaging script for tvii
|
|
3 """
|
|
4
|
|
5 import os
|
|
6
|
|
7 version = "0.0"
|
9
|
8 dependencies = ['numerics',
|
|
9 'numpy']
|
0
|
10
|
|
11 # allow use of setuptools/distribute or distutils
|
|
12 kw = {}
|
|
13 try:
|
|
14 from setuptools import setup
|
|
15 kw['entry_points'] = """
|
|
16 [console_scripts]
|
|
17 tvii = tvii.main:main
|
|
18 tvii-template = tvii.template:main
|
|
19 """
|
|
20 kw['install_requires'] = dependencies
|
|
21 except ImportError:
|
|
22 from distutils.core import setup
|
|
23 kw['requires'] = dependencies
|
|
24
|
|
25 try:
|
|
26 here = os.path.dirname(os.path.abspath(__file__))
|
|
27 description = open(os.path.join(here, 'README.txt')).read()
|
|
28 except IOError:
|
|
29 description = ''
|
|
30
|
|
31
|
|
32 setup(name='tvii',
|
|
33 version=version,
|
|
34 description="TV2",
|
|
35 long_description=description,
|
|
36 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
|
|
37 author='Jeff Hammel',
|
|
38 author_email='k0scist@gmail.com',
|
|
39 url='http://k0s.org/hg/tvii',
|
|
40 license='',
|
|
41 packages=['tvii'],
|
|
42 include_package_data=True,
|
9
|
43 setup_requires=['pytest-runner'],
|
|
44 tests_require=['tox', 'pytest'],
|
0
|
45 zip_safe=False,
|
|
46 **kw
|
|
47 )
|