-
Notifications
You must be signed in to change notification settings - Fork 578
migrate setup.py to pyproject.toml #1465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
j-bennet
merged 3 commits into
dbcli:main
from
deronnax:mdupuy/-/migrate-to-pyproject-toml
Dec 4, 2024
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,75 @@ | ||
| [project] | ||
| name = "pgcli" | ||
| authors = [{ name = "Pgcli Core Team", email = "[email protected]" }] | ||
| license = { text = "BSD" } | ||
| description = "CLI for Postgres Database. With auto-completion and syntax highlighting." | ||
| readme = "README.rst" | ||
| classifiers = [ | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: BSD License", | ||
| "Operating System :: Unix", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: SQL", | ||
| "Topic :: Database", | ||
| "Topic :: Database :: Front-Ends", | ||
| "Topic :: Software Development", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| ] | ||
| urls = { Homepage = "https://pgcli.com" } | ||
| requires-python = ">=3.8" | ||
| dependencies = [ | ||
| "pgspecial>=2.0.0", | ||
| "click >= 4.1", | ||
| "Pygments>=2.0", # Pygments has to be Capitalcased. WTF? | ||
| # 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", | ||
| "psycopg >= 3.0.14; sys_platform != 'win32'", | ||
| "psycopg-binary >= 3.0.14; sys_platform == 'win32'", | ||
| "sqlparse >=0.3.0,<0.6", | ||
| "configobj >= 5.0.6", | ||
| "cli_helpers[styles] >= 2.2.1", | ||
| # 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. | ||
| "setproctitle >= 1.1.9; sys_platform != 'win32' and 'CYGWIN' not in sys_platform", | ||
| ] | ||
| dynamic = ["version"] | ||
deronnax marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| [project.scripts] | ||
| pgcli = "pgcli.main:cli" | ||
|
|
||
| [project.optional-dependencies] | ||
| keyring = ["keyring >= 12.2.0"] | ||
| sshtunnel = ["sshtunnel >= 0.4.0"] | ||
|
|
||
deronnax marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| [build-system] | ||
| requires = ["setuptools>=61.2"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = false | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { attr = "pgcli.__version__" } | ||
|
|
||
| [tool.setuptools.packages] | ||
| find = { namespaces = false } | ||
|
|
||
| [tool.setuptools.package-data] | ||
| pgcli = [ | ||
| "pgclirc", | ||
| "packages/pgliterals/pgliterals.json", | ||
| ] | ||
|
|
||
| [tool.black] | ||
| line-length = 88 | ||
| target-version = ['py38'] | ||
|
|
||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.