Mercurial > hg > tvii
annotate setup.py @ 93:36c141f0f0bd default tip
add tensorflow dependency + console scripts
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 17 Dec 2017 14:31:35 -0800 |
parents | a7d8583f7482 |
children |
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', |
93
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
14 'scipy', |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
15 'tensorflow'] |
0 | 16 |
17 # allow use of setuptools/distribute or distutils | |
18 kw = {} | |
19 try: | |
20 from setuptools import setup | |
21 kw['entry_points'] = """ | |
40
a7d8583f7482
[packaging] lets try out scikit learn
Jeff Hammel <k0scist@gmail.com>
parents:
26
diff
changeset
|
22 [console_scripts] |
93
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
23 centroid = nettwerk.centroid:main |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
24 gaussian = nettwerk.dataset.gauss:main |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
25 k-means = nettwerk.kmeans:main |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
26 line = nettwerk.dataset.line:main |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
27 linear-regression = nettwerk.linear_regression:main |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
28 nettwerk-mnist = nettwerk.mnist:main |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
29 random-circle = nettwerk.dataset.circle:main |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
30 random-data = nettwerk.dataset.rand:main |
36c141f0f0bd
add tensorflow dependency + console scripts
Jeff Hammel <k0scist@gmail.com>
parents:
40
diff
changeset
|
31 sigmoid = nettwerk.sigmoid:main |
0 | 32 """ |
33 kw['install_requires'] = dependencies | |
34 except ImportError: | |
35 from distutils.core import setup | |
36 kw['requires'] = dependencies | |
37 | |
40
a7d8583f7482
[packaging] lets try out scikit learn
Jeff Hammel <k0scist@gmail.com>
parents:
26
diff
changeset
|
38 |
0 | 39 try: |
40 here = os.path.dirname(os.path.abspath(__file__)) | |
41 description = open(os.path.join(here, 'README.txt')).read() | |
42 except IOError: | |
43 description = '' | |
44 | |
45 | |
46 setup(name='tvii', | |
47 version=version, | |
48 description="TV2", | |
49 long_description=description, | |
50 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
51 author='Jeff Hammel', | |
52 author_email='k0scist@gmail.com', | |
53 url='http://k0s.org/hg/tvii', | |
54 license='', | |
55 packages=['tvii'], | |
56 include_package_data=True, | |
9 | 57 setup_requires=['pytest-runner'], |
58 tests_require=['tox', 'pytest'], | |
0 | 59 zip_safe=False, |
60 **kw | |
61 ) |