Mercurial > hg > Lemuriformes
annotate setup.py @ 18:56596902e9ae default tip
add some setup + tests
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 10 Dec 2017 17:57:03 -0800 |
parents | 9575c4a925c1 |
children |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for Lemuriformes | |
3 """ | |
4 | |
5 import os | |
6 | |
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 | 18 |
19 # allow use of setuptools/distribute or distutils | |
20 kw = {} | |
21 try: | |
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 | 24 kw['entry_points'] = """ |
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 |
18 | 28 dedupe = orion.deduplicate:main |
29 dictlist2csv = orion.serialize:main | |
30 freeport = orion.port:main | |
31 issubset = orion.issubset:main | |
32 json2csv = orion.json2csv:main | |
33 sql-count = orion.count:main | |
34 table-size = orion.table_size:main | |
35 table2csv = orion.table2csv:main | |
36 uniques = orion.uniques:main | |
0 | 37 """ |
38 kw['install_requires'] = dependencies | |
39 except ImportError: | |
40 from distutils.core import setup | |
41 kw['requires'] = dependencies | |
42 | |
43 try: | |
44 here = os.path.dirname(os.path.abspath(__file__)) | |
45 description = open(os.path.join(here, 'README.txt')).read() | |
46 except IOError: | |
47 description = '' | |
48 | |
49 | |
50 setup(name='Lemuriformes', | |
51 version=version, | |
52 description="ReSTful API consumer in python", | |
53 long_description=description, | |
54 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
55 author='Jeff Hammel', | |
56 author_email='k0scist@gmail.com', | |
57 url='http://k0s.org/hg/Lemuriformes', | |
58 license='', | |
59 packages=['lemuriformes'], | |
60 include_package_data=True, | |
4
9575c4a925c1
[setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
61 setup_requires=['pytest-runner'], |
9575c4a925c1
[setup] correct various dependencies + scripts
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
62 tests_require=['pytest', 'tox'], |
0 | 63 zip_safe=False, |
64 **kw | |
65 ) |