Mercurial > hg > tvii
annotate setup.py @ 69:0bb36ae047c3
test matrix transposition
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 17 Dec 2017 13:16:16 -0800 |
parents | a7d8583f7482 |
children | 36c141f0f0bd |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for tvii | |
3 """ | |
4 | |
5 import os | |
6 | |
7 version = "0.0" | |
26
d945a862617c
note dependencies; need wheels
Jeff Hammel <k0scist@gmail.com>
parents:
9
diff
changeset
|
8 dependencies = ['h5py', |
d945a862617c
note dependencies; need wheels
Jeff Hammel <k0scist@gmail.com>
parents:
9
diff
changeset
|
9 'matplotlib', |
d945a862617c
note dependencies; need wheels
Jeff Hammel <k0scist@gmail.com>
parents:
9
diff
changeset
|
10 'numerics', |
d945a862617c
note dependencies; need wheels
Jeff Hammel <k0scist@gmail.com>
parents:
9
diff
changeset
|
11 'numpy', |
d945a862617c
note dependencies; need wheels
Jeff Hammel <k0scist@gmail.com>
parents:
9
diff
changeset
|
12 'Pillow', |
40
a7d8583f7482
[packaging] lets try out scikit learn
Jeff Hammel <k0scist@gmail.com>
parents:
26
diff
changeset
|
13 'scikit-learn', |
26
d945a862617c
note dependencies; need wheels
Jeff Hammel <k0scist@gmail.com>
parents:
9
diff
changeset
|
14 'scipy'] |
0 | 15 |
16 # allow use of setuptools/distribute or distutils | |
17 kw = {} | |
18 try: | |
19 from setuptools import setup | |
20 kw['entry_points'] = """ | |
40
a7d8583f7482
[packaging] lets try out scikit learn
Jeff Hammel <k0scist@gmail.com>
parents:
26
diff
changeset
|
21 [console_scripts] |
0 | 22 """ |
23 kw['install_requires'] = dependencies | |
24 except ImportError: | |
25 from distutils.core import setup | |
26 kw['requires'] = dependencies | |
27 | |
40
a7d8583f7482
[packaging] lets try out scikit learn
Jeff Hammel <k0scist@gmail.com>
parents:
26
diff
changeset
|
28 |
0 | 29 try: |
30 here = os.path.dirname(os.path.abspath(__file__)) | |
31 description = open(os.path.join(here, 'README.txt')).read() | |
32 except IOError: | |
33 description = '' | |
34 | |
35 | |
36 setup(name='tvii', | |
37 version=version, | |
38 description="TV2", | |
39 long_description=description, | |
40 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
41 author='Jeff Hammel', | |
42 author_email='k0scist@gmail.com', | |
43 url='http://k0s.org/hg/tvii', | |
44 license='', | |
45 packages=['tvii'], | |
46 include_package_data=True, | |
9 | 47 setup_requires=['pytest-runner'], |
48 tests_require=['tox', 'pytest'], | |
0 | 49 zip_safe=False, |
50 **kw | |
51 ) |