Skip to content

Commit 41c8be9

Browse files
committed
migrate setup.py to pyproject.toml
1 parent 46fe654 commit 41c8be9

File tree

2 files changed

+62
-71
lines changed

2 files changed

+62
-71
lines changed

pyproject.toml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
[project]
2+
name = "pgcli"
3+
authors = [{ name = "Pgcli Core Team", email = "pgcli-dev@googlegroups.com" }]
4+
license = { text = "BSD" }
5+
description = "CLI for Postgres Database. With auto-completion and syntax highlighting."
6+
readme = "README.rst"
7+
classifiers = [
8+
"Intended Audience :: Developers",
9+
"License :: OSI Approved :: BSD License",
10+
"Operating System :: Unix",
11+
"Programming Language :: Python",
12+
"Programming Language :: Python :: 3",
13+
"Programming Language :: Python :: 3.8",
14+
"Programming Language :: Python :: 3.9",
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: SQL",
19+
"Topic :: Database",
20+
"Topic :: Database :: Front-Ends",
21+
"Topic :: Software Development",
22+
"Topic :: Software Development :: Libraries :: Python Modules",
23+
]
24+
urls = { Homepage = "http://pgcli.com" }
25+
requires-python = ">=3.8"
26+
dependencies = [
27+
"pgspecial>=2.0.0",
28+
"click >= 4.1",
29+
"Pygments>=2.0",
30+
"prompt_toolkit>=2.0.6,<4.0.0",
31+
"psycopg >= 3.0.14; sys_platform != 'win32'",
32+
"psycopg-binary >= 3.0.14; sys_platform == 'win32'",
33+
"sqlparse >=0.3.0,<0.6",
34+
"configobj >= 5.0.6",
35+
"cli_helpers[styles] >= 2.2.1",
36+
"setproctitle >= 1.1.9",
37+
]
38+
dynamic = ["version"]
39+
40+
[project.optional-dependencies]
41+
keyring = ["keyring >= 12.2.0"]
42+
sshtunnel = ["sshtunnel >= 0.4.0"]
43+
44+
[build-system]
45+
requires = ["setuptools>=61.2"]
46+
build-backend = "setuptools.build_meta"
47+
48+
[tool.setuptools]
49+
include-package-data = false
50+
51+
[tool.setuptools.dynamic]
52+
version = { attr = "pgcli.__version__" }
53+
54+
[tool.setuptools.packages]
55+
find = { namespaces = false }
56+
57+
[tool.setuptools.package-data]
58+
pgcli = [
59+
"pgclirc",
60+
"packages/pgliterals/pgliterals.json",
61+
]
62+
163
[tool.black]
264
line-length = 88
365
target-version = ['py38']

setup.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)