Mercurial > hg > Lemuriformes
annotate setup.py @ 12:82cd4e0b66cf
csv2sql
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 10 Dec 2017 15:18:00 -0800 |
parents | 9575c4a925c1 |
children | 56596902e9ae |
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 |
0 | 28 """ |
29 kw['install_requires'] = dependencies | |
30 except ImportError: | |
31 from distutils.core import setup | |
32 kw['requires'] = dependencies | |
33 | |
34 try: | |
35 here = os.path.dirname(os.path.abspath(__file__)) | |
36 description = open(os.path.join(here, 'README.txt')).read() | |
37 except IOError: | |
38 description = '' | |
39 | |
40 | |
41 setup(name='Lemuriformes', | |
42 version=version, | |
43 description="ReSTful API consumer in python", | |
44 long_description=description, | |
45 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
46 author='Jeff Hammel', | |
47 author_email='k0scist@gmail.com', | |
48 url='http://k0s.org/hg/Lemuriformes', | |
49 license='', | |
50 packages=['lemuriformes'], | |
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 | 54 zip_safe=False, |
55 **kw | |
56 ) |