view 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
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
      dedupe = orion.deduplicate:main
      dictlist2csv = orion.serialize:main
      freeport = orion.port:main
      issubset = orion.issubset:main
      json2csv = orion.json2csv:main
      sql-count = orion.count:main
      table-size = orion.table_size:main
      table2csv = orion.table2csv:main
      uniques = orion.uniques: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
      )