1
0
Fork 0
pgcli/setup.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
2.3 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.11.0',
2017-05-20 05:15:56 +00:00
'click >= 4.1',
'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF?
'prompt_toolkit>=1.0.10,<1.1.0',
2018-03-23 18:16:06 +00:00
'psycopg2 >= 2.7.4,<2.8',
2017-05-20 05:15:56 +00:00
'sqlparse >=0.2.2,<0.3.0',
'configobj >= 5.0.6',
'humanize >= 0.5.1',
2017-12-01 03:15:16 +00:00
'cli_helpers[styles] >= 1.0.1',
'keyring >= 11.0.0'
2017-05-20 05:15:56 +00:00
]
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(
2017-04-19 22:26:51 +00:00
name='pgcli',
author='Pgcli Core Team',
2017-04-19 22:29:31 +00:00
author_email='pgcli-dev@googlegroups.com',
2017-04-19 22:26:51 +00:00
version=version,
2017-06-26 17:44:13 +00:00
license='BSD',
2017-04-19 22:26:51 +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(),
install_requires=install_requirements,
entry_points='''
[console_scripts]
pgcli=pgcli.main:cli
''',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
2017-12-05 03:12:11 +00:00
'Programming Language :: Python :: 2',
2017-04-19 22:26:51 +00:00
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
2017-06-02 19:08:56 +00:00
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
2017-04-19 22:26:51 +00:00
'Programming Language :: SQL',
'Topic :: Database',
'Topic :: Database :: Front-Ends',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)