1
0
Fork 0
pgcli/setup.py

68 lines
2.5 KiB
Python
Raw Normal View History

import re
import ast
2015-10-23 09:49:20 +00:00
import platform
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
2014-12-11 08:59:28 +00:00
description = 'CLI for Postgres Database. With auto-completion and syntax highlighting.'
2015-10-23 09:49:20 +00:00
install_requirements = [
'pgspecial>=1.7.0',
2015-10-23 09:49:20 +00:00
'click >= 4.1',
'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF?
'prompt_toolkit>=1.0.10,<1.1.0',
2015-10-23 09:49:20 +00:00
'psycopg2 >= 2.5.4',
2016-10-26 15:11:36 +00:00
'sqlparse >=0.2.2,<0.3.0',
2015-10-23 09:49:20 +00:00
'configobj >= 5.0.6',
'humanize >= 0.5.1',
'wcwidth >= 0.1.6',
2015-10-23 09:49:20 +00:00
]
# setproctitle is used to mask the password when running `ps` in command line.
# But this is not necessary in Windows since the password is never shown in the
# task manager. Also setproctitle is a hard dependency to install in Windows,
# so we'll only install it if we're not in Windows.
2016-08-29 18:12:49 +00:00
if platform.system() != 'Windows' and not platform.system().startswith("CYGWIN"):
2015-10-23 09:49:20 +00:00
install_requirements.append('setproctitle >= 1.1.9')
2014-10-12 22:07:34 +00:00
setup(
name='pgcli',
2017-04-19 04:10:07 +00:00
author='Pgcli Core Team',
author_email='i.chernyavska+pgcli@gmail.com',
version=version,
2014-12-11 09:44:00 +00:00
license='LICENSE.txt',
2015-01-06 08:07:16 +00:00
url='http://pgcli.com',
packages=find_packages(),
package_data={'pgcli': ['pgclirc',
'packages/pgliterals/pgliterals.json']},
description=description,
long_description=open('README.rst').read(),
2015-10-23 09:49:20 +00:00
install_requires=install_requirements,
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=[
'Intended Audience :: Developers',
2014-10-12 22:07:34 +00:00
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
2014-10-12 22:07:34 +00:00
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: SQL',
'Topic :: Database',
'Topic :: Database :: Front-Ends',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
2014-10-12 22:07:34 +00:00
],
)