2015-10-23 12:49:20 +03:00
|
|
|
import platform
|
2014-11-26 11:02:34 +03:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
2019-10-29 23:33:09 +03:00
|
|
|
from pgcli import __version__
|
2014-10-13 02:07:34 +04:00
|
|
|
|
2019-05-25 23:08:56 +03:00
|
|
|
description = "CLI for Postgres Database. With auto-completion and syntax highlighting."
|
2014-12-01 09:05:24 +03:00
|
|
|
|
2015-10-23 12:49:20 +03:00
|
|
|
install_requirements = [
|
2022-06-06 21:20:48 +03:00
|
|
|
"pgspecial>=2.0.0",
|
2019-05-25 23:08:56 +03:00
|
|
|
"click >= 4.1",
|
2022-01-18 23:33:26 +03:00
|
|
|
"Pygments>=2.0", # Pygments has to be Capitalcased. WTF?
|
2020-09-14 05:01:23 +03:00
|
|
|
# We still need to use pt-2 unless pt-3 released on Fedora32
|
|
|
|
# see: https://github.com/dbcli/pgcli/pull/1197
|
|
|
|
"prompt_toolkit>=2.0.6,<4.0.0",
|
2022-06-06 21:20:48 +03:00
|
|
|
"psycopg >= 3.0.14",
|
2020-12-02 03:03:38 +03:00
|
|
|
"sqlparse >=0.3.0,<0.5",
|
2019-05-25 23:08:56 +03:00
|
|
|
"configobj >= 5.0.6",
|
2023-10-30 02:04:00 +03:00
|
|
|
"pendulum>=2.1.0",
|
2022-01-18 23:33:26 +03:00
|
|
|
"cli_helpers[styles] >= 2.2.1",
|
2017-05-20 08:15:56 +03:00
|
|
|
]
|
2015-10-23 12:49:20 +03: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.
|
2019-05-25 23:08:56 +03:00
|
|
|
if platform.system() != "Windows" and not platform.system().startswith("CYGWIN"):
|
|
|
|
install_requirements.append("setproctitle >= 1.1.9")
|
2022-09-01 19:55:44 +03:00
|
|
|
|
2022-09-01 18:32:36 +03:00
|
|
|
# Windows will require the binary psycopg to run pgcli
|
|
|
|
if platform.system() == "Windows":
|
|
|
|
install_requirements.append("psycopg-binary >= 3.0.14")
|
|
|
|
|
2014-12-01 09:05:24 +03:00
|
|
|
|
2014-10-13 02:07:34 +04:00
|
|
|
setup(
|
2019-05-25 23:08:56 +03:00
|
|
|
name="pgcli",
|
|
|
|
author="Pgcli Core Team",
|
|
|
|
author_email="pgcli-dev@googlegroups.com",
|
2019-10-29 23:33:09 +03:00
|
|
|
version=__version__,
|
2019-05-25 23:08:56 +03:00
|
|
|
license="BSD",
|
|
|
|
url="http://pgcli.com",
|
2017-04-20 01:26:51 +03:00
|
|
|
packages=find_packages(),
|
2019-05-25 23:08:56 +03:00
|
|
|
package_data={"pgcli": ["pgclirc", "packages/pgliterals/pgliterals.json"]},
|
2017-04-20 01:26:51 +03:00
|
|
|
description=description,
|
2019-05-25 23:08:56 +03:00
|
|
|
long_description=open("README.rst").read(),
|
2017-04-20 01:26:51 +03:00
|
|
|
install_requires=install_requirements,
|
2022-06-06 21:20:48 +03:00
|
|
|
dependency_links=[
|
|
|
|
"http://github.com/psycopg/repo/tarball/master#egg=psycopg-3.0.10"
|
|
|
|
],
|
2022-02-19 01:57:42 +03:00
|
|
|
extras_require={
|
|
|
|
"keyring": ["keyring >= 12.2.0"],
|
|
|
|
"sshtunnel": ["sshtunnel >= 0.4.0"],
|
|
|
|
},
|
2023-10-11 07:34:59 +03:00
|
|
|
python_requires=">=3.8",
|
2019-05-25 23:08:56 +03:00
|
|
|
entry_points="""
|
2017-04-20 01:26:51 +03:00
|
|
|
[console_scripts]
|
|
|
|
pgcli=pgcli.main:cli
|
2019-05-25 23:08:56 +03:00
|
|
|
""",
|
2017-04-20 01:26:51 +03:00
|
|
|
classifiers=[
|
2019-05-25 23:08:56 +03:00
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: BSD License",
|
|
|
|
"Operating System :: Unix",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
2020-03-18 19:11:10 +03:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2020-10-13 21:47:34 +03:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2022-06-06 21:20:48 +03:00
|
|
|
"Programming Language :: Python :: 3.10",
|
2022-11-11 21:31:41 +03:00
|
|
|
"Programming Language :: Python :: 3.11",
|
2023-10-11 07:34:59 +03:00
|
|
|
"Programming Language :: Python :: 3.12",
|
2019-05-25 23:08:56 +03:00
|
|
|
"Programming Language :: SQL",
|
|
|
|
"Topic :: Database",
|
|
|
|
"Topic :: Database :: Front-Ends",
|
|
|
|
"Topic :: Software Development",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
2017-04-20 01:26:51 +03:00
|
|
|
],
|
|
|
|
)
|