annotate setup.py @ 53:673a295fd09c

[documentation] cache coursera notes
author Jeff Hammel <k0scist@gmail.com>
date Sun, 24 Sep 2017 14:42:56 -0700
parents a7d8583f7482
children 36c141f0f0bd
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',
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
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 # allow use of setuptools/distribute or distutils
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 kw = {}
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 try:
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 from setuptools import setup
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
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
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 """
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 kw['install_requires'] = dependencies
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 except ImportError:
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 from distutils.core import setup
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 kw['requires'] = dependencies
a70bd2cd508b initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27
40
a7d8583f7482 [packaging] lets try out scikit learn
Jeff Hammel <k0scist@gmail.com>
parents: 26
diff changeset
28
0
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 )