annotate setup.py @ 31:fa7a51df0d90

[logistic regression] test gradient descent
author Jeff Hammel <k0scist@gmail.com>
date Mon, 04 Sep 2017 12:37:45 -0700
parents d945a862617c
children a7d8583f7482
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 """
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 setup packaging script for tvii
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 import os
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
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',
d945a862617c note dependencies; need wheels
Jeff Hammel <k0scist@gmail.com>
parents: 9
diff changeset
13 'scipy']
0
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 # allow use of setuptools/distribute or distutils
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 kw = {}
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 try:
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 from setuptools import setup
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 kw['entry_points'] = """
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 [console_scripts]
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 tvii = tvii.main:main
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 tvii-template = tvii.template:main
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 """
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 kw['install_requires'] = dependencies
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 except ImportError:
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 from distutils.core import setup
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 kw['requires'] = dependencies
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 try:
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30 here = os.path.dirname(os.path.abspath(__file__))
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31 description = open(os.path.join(here, 'README.txt')).read()
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
32 except IOError:
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33 description = ''
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
36 setup(name='tvii',
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
37 version=version,
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
38 description="TV2",
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
39 long_description=description,
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
40 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
41 author='Jeff Hammel',
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
42 author_email='k0scist@gmail.com',
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
43 url='http://k0s.org/hg/tvii',
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
44 license='',
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
45 packages=['tvii'],
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
46 include_package_data=True,
9
064e936c7257 pytest integration
Jeff Hammel <k0scist@gmail.com>
parents: 7
diff changeset
47 setup_requires=['pytest-runner'],
064e936c7257 pytest integration
Jeff Hammel <k0scist@gmail.com>
parents: 7
diff changeset
48 tests_require=['tox', 'pytest'],
0
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
49 zip_safe=False,
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
50 **kw
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
51 )