2014-11-26 08:02:34 +00:00
|
|
|
import re
|
|
|
|
import ast
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
_version_re = re.compile(r'__version__\s+=\s+(.*)')
|
|
|
|
|
|
|
|
with open('pgcli/__init__.py', 'rb') as f:
|
|
|
|
version = str(ast.literal_eval(_version_re.search(
|
|
|
|
f.read().decode('utf-8')).group(1)))
|
2014-10-12 22:07:34 +00:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='pgcli',
|
|
|
|
author='Amjith Ramanujam',
|
2014-11-26 08:02:34 +00:00
|
|
|
version=version,
|
2014-10-12 22:07:34 +00:00
|
|
|
license='LICENSE.txt',
|
|
|
|
url='https://github.com/amjith/pgcli',
|
2014-11-26 08:02:34 +00:00
|
|
|
packages=find_packages(),
|
2014-10-12 22:07:34 +00:00
|
|
|
description='CLI for Postgres. With auto-completion and '
|
|
|
|
'syntax highlighting',
|
|
|
|
install_requires=[
|
|
|
|
'Click',
|
|
|
|
'prompt_toolkit',
|
|
|
|
'psycopg2',
|
2014-11-24 07:30:17 +00:00
|
|
|
'tabulate',
|
2014-11-26 08:02:34 +00:00
|
|
|
'sqlparse',
|
2014-10-12 22:07:34 +00:00
|
|
|
],
|
|
|
|
entry_points='''
|
|
|
|
[console_scripts]
|
2014-11-26 08:02:34 +00:00
|
|
|
pgcli=pgcli.main:cli
|
2014-10-12 22:07:34 +00:00
|
|
|
''',
|
|
|
|
classifiers=[
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 3'
|
|
|
|
],
|
|
|
|
)
|