from setuptools import setup, find_packages, Extension
import sys

import tapsh_setup_args

INSTALL_REQUIRES = ["gavoutils", "gavovot", "pyparsing", "pysqlite"]
if len(sys.argv)>1 and sys.argv[1]=="develop":
	INSTALL_REQUIRES = []
DEPENDENCY_LINKS = ["http://vo.ari.uni-heidelberg.de/soft/dist"]

SETUP_ARGS = _getDict(
	description="The TAP shell lets you query Virtual Observatory TAP services"
		" in the style of common database shells.",
	url="http://vo.ari.uni-heidelberg.de/soft",
	license="GPL",
	author="Markus Demleitner",
	author_email="gavo@ari.uni-heidelberg.de",
	version="0.3")

if __name__=="__main__":
	args = SETUP_ARGS.copy()

	args.update({
		"include_package_data": True,
		"install_requires": INSTALL_REQUIRES,
		"dependency_links": DEPENDENCY_LINKS,
		"packages": find_packages(),
		"entry_points": {
			'console_scripts': [
				'tapsh = tapsh.main:main',
			],
		})

	setup(**args)
