comparison setup.py @ 4:9575c4a925c1

[setup] correct various dependencies + scripts
author Jeff Hammel <k0scist@gmail.com>
date Sun, 10 Dec 2017 11:49:47 -0800
parents 7a4a073ee13e
children 56596902e9ae
comparison
equal deleted inserted replaced
3:e688f4c660a1 4:9575c4a925c1
3 """ 3 """
4 4
5 import os 5 import os
6 6
7 version = "0.0" 7 version = "0.0"
8 dependencies = ['MakeItSo', 'webob'] 8 dependencies = [
9 "anytree",
10 "cssselect",
11 "lxml",
12 "PyMySQL",
13 "requests",
14 "selenium",
15 "Tempita",
16 "whichpy"
17 ]
9 18
10 # allow use of setuptools/distribute or distutils 19 # allow use of setuptools/distribute or distutils
11 kw = {} 20 kw = {}
12 try: 21 try:
13 from setuptools import setup 22 from setuptools import setup
23 from setuptools import find_packages
14 kw['entry_points'] = """ 24 kw['entry_points'] = """
15 [console_scripts] 25 [console_scripts]
16 Lemuriformes = lemuriformes.main:main 26 csv2sql = orion.csv2sql:main
17 lemuriformes-template = lemuriformes.template:main 27 csv2sqlite = orion.csv2sqlite:main
18 """ 28 """
19 kw['install_requires'] = dependencies 29 kw['install_requires'] = dependencies
20 except ImportError: 30 except ImportError:
21 from distutils.core import setup 31 from distutils.core import setup
22 kw['requires'] = dependencies 32 kw['requires'] = dependencies
37 author_email='k0scist@gmail.com', 47 author_email='k0scist@gmail.com',
38 url='http://k0s.org/hg/Lemuriformes', 48 url='http://k0s.org/hg/Lemuriformes',
39 license='', 49 license='',
40 packages=['lemuriformes'], 50 packages=['lemuriformes'],
41 include_package_data=True, 51 include_package_data=True,
42 tests_require=['tox'], 52 setup_requires=['pytest-runner'],
53 tests_require=['pytest', 'tox'],
43 zip_safe=False, 54 zip_safe=False,
44 **kw 55 **kw
45 ) 56 )
46