view setup.py @ 9:b69efcf85807

[module] add columns
author Jeff Hammel <k0scist@gmail.com>
date Sun, 10 Dec 2017 13:56:30 -0800
parents 9575c4a925c1
children 56596902e9ae
line wrap: on
line source

"""
setup packaging script for Lemuriformes
"""

import os

version = "0.0"
dependencies = [
    "anytree",
    "cssselect",
    "lxml",
    "PyMySQL",
    "requests",
    "selenium",
    "Tempita",
    "whichpy"
]

# allow use of setuptools/distribute or distutils
kw = {}
try:
    from setuptools import setup
    from setuptools import find_packages
    kw['entry_points'] = """
      [console_scripts]
      csv2sql = orion.csv2sql:main
      csv2sqlite = orion.csv2sqlite:main
"""
    kw['install_requires'] = dependencies
except ImportError:
    from distutils.core import setup
    kw['requires'] = dependencies

try:
    here = os.path.dirname(os.path.abspath(__file__))
    description = open(os.path.join(here, 'README.txt')).read()
except IOError:
    description = ''


setup(name='Lemuriformes',
      version=version,
      description="ReSTful API consumer in python",
      long_description=description,
      classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
      author='Jeff Hammel',
      author_email='k0scist@gmail.com',
      url='http://k0s.org/hg/Lemuriformes',
      license='',
      packages=['lemuriformes'],
      include_package_data=True,
      setup_requires=['pytest-runner'],
      tests_require=['pytest', 'tox'],
      zip_safe=False,
      **kw
      )