-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 替换setup.py为pyproject.toml; 添加包__main__.py让程序可以以模块运行
- Loading branch information
xiaoxx-mac
committed
May 17, 2023
1 parent
1e77d7b
commit aeed40b
Showing
6 changed files
with
42 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -9,4 +9,5 @@ chat*.json | |
__pycache__ | ||
build | ||
*.egg-info/ | ||
dist | ||
dist | ||
gpt_term/_version.py |
This file was deleted.
Oops, something went wrong.
This file contains 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 +1,4 @@ | ||
__version__ = "1.0.4" | ||
try: | ||
from ._version import version as __version__ | ||
except ImportError: | ||
__version__ = "0.0+unknown" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from .main import main | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] | ||
|
||
[project] | ||
name = "gpt-term" | ||
dynamic = ["version", "dependencies"] | ||
description = "Chat with GPT in Terminal" | ||
authors = [{name="xiaoxx970"}, {name="Ace-Radom"}] | ||
readme = "README.md" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Environment :: Console", | ||
] | ||
requires-python = ">=3.7" | ||
license = {file = "LICENSE"} | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/xiaoxx970/chatgpt-in-terminal/" | ||
|
||
[project.scripts] | ||
gpt-term = "gpt_term.main:main" | ||
|
||
[tool.setuptools] | ||
packages = ["gpt_term"] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = "requirements.txt"} | ||
|
||
[tool.setuptools_scm] | ||
write_to="gpt_term/_version.py" |