annotate setup.py @ 5:dbbf5344868c

add utlities for casting data
author Jeff Hammel <k0scist@gmail.com>
date Sun, 10 Dec 2017 11:51:39 -0800
parents 9575c4a925c1
children 56596902e9ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 """
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 setup packaging script for Lemuriformes
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 import os
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 version = "0.0"
4
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
8 dependencies = [
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
9 "anytree",
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
10 "cssselect",
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
11 "lxml",
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
12 "PyMySQL",
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
13 "requests",
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
14 "selenium",
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
15 "Tempita",
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
16 "whichpy"
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
17 ]
0
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 # allow use of setuptools/distribute or distutils
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 kw = {}
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 try:
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 from setuptools import setup
4
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
23 from setuptools import find_packages
0
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 kw['entry_points'] = """
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 [console_scripts]
4
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
26 csv2sql = orion.csv2sql:main
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
27 csv2sqlite = orion.csv2sqlite:main
0
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28 """
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 kw['install_requires'] = dependencies
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30 except ImportError:
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31 from distutils.core import setup
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
32 kw['requires'] = dependencies
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34 try:
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35 here = os.path.dirname(os.path.abspath(__file__))
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
36 description = open(os.path.join(here, 'README.txt')).read()
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
37 except IOError:
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
38 description = ''
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
39
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
40
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
41 setup(name='Lemuriformes',
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
42 version=version,
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
43 description="ReSTful API consumer in python",
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
44 long_description=description,
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
45 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
46 author='Jeff Hammel',
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
47 author_email='k0scist@gmail.com',
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
48 url='http://k0s.org/hg/Lemuriformes',
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
49 license='',
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
50 packages=['lemuriformes'],
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
51 include_package_data=True,
4
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
52 setup_requires=['pytest-runner'],
9575c4a925c1 [setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
53 tests_require=['pytest', 'tox'],
0
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
54 zip_safe=False,
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
55 **kw
7a4a073ee13e initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
56 )