1
0
Fork 0
pgcli/setup.py

37 lines
1.0 KiB
Python
Raw Normal View History

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',
version=version,
2014-10-12 22:07:34 +00:00
license='LICENSE.txt',
url='https://github.com/amjith/pgcli',
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',
'sqlparse',
2014-10-12 22:07:34 +00:00
],
entry_points='''
[console_scripts]
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'
],
)