refactor(pyproject.toml): streamline and update dependencies
This commit simplifies the pyproject.toml structure for better readability and maintenance. Key changes include formatting author and license information, consolidating dependency lists into a more concise format, and adding the `future` package to dependencies to ensure forward-compatibility. Optional dependencies are now listed in a more compact style, and the development dependencies section has been cleaned up. These adjustments make the project configuration cleaner and more accessible, facilitating future updates and dependency management.
This commit is contained in:
parent
9178ab23ac
commit
3e966334ba
1 changed files with 19 additions and 34 deletions
|
@ -10,46 +10,38 @@ name = "matrix-gptbot"
|
||||||
version = "0.3.12"
|
version = "0.3.12"
|
||||||
|
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Kumi Mitterer", email="gptbot@kumi.email" },
|
{ name = "Kumi Mitterer", email = "gptbot@kumi.email" },
|
||||||
{ name="Private.coffee Team", email="support@private.coffee" },
|
{ name = "Private.coffee Team", email = "support@private.coffee" },
|
||||||
]
|
]
|
||||||
|
|
||||||
description = "Multifunctional Chatbot for Matrix"
|
description = "Multifunctional Chatbot for Matrix"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = { file="LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
|
|
||||||
packages = [
|
packages = ["src/gptbot"]
|
||||||
"src/gptbot"
|
|
||||||
]
|
|
||||||
|
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
]
|
]
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"matrix-nio[e2e]>=0.24.0",
|
"matrix-nio[e2e]>=0.24.0",
|
||||||
"markdown2[all]",
|
"markdown2[all]",
|
||||||
"tiktoken",
|
"tiktoken",
|
||||||
"python-magic",
|
"python-magic",
|
||||||
"pillow",
|
"pillow",
|
||||||
]
|
"future>=1.0.0",
|
||||||
|
]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
openai = [
|
openai = ["openai>=1.2", "pydub"]
|
||||||
"openai>=1.2",
|
|
||||||
"pydub",
|
|
||||||
]
|
|
||||||
|
|
||||||
wolframalpha = [
|
wolframalpha = ["wolframalpha"]
|
||||||
"wolframalpha",
|
|
||||||
]
|
|
||||||
|
|
||||||
trackingmore = [
|
trackingmore = ["trackingmore-api-tool"]
|
||||||
"trackingmore-api-tool",
|
|
||||||
]
|
|
||||||
|
|
||||||
all = [
|
all = [
|
||||||
"matrix-gptbot[openai,wolframalpha,trackingmore]",
|
"matrix-gptbot[openai,wolframalpha,trackingmore]",
|
||||||
|
@ -57,14 +49,7 @@ all = [
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
]
|
]
|
||||||
|
|
||||||
dev = [
|
dev = ["matrix-gptbot[all]", "black", "hatchling", "twine", "build", "ruff"]
|
||||||
"matrix-gptbot[all]",
|
|
||||||
"black",
|
|
||||||
"hatchling",
|
|
||||||
"twine",
|
|
||||||
"build",
|
|
||||||
"ruff",
|
|
||||||
]
|
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
"Homepage" = "https://git.private.coffee/privatecoffee/matrix-gptbot"
|
"Homepage" = "https://git.private.coffee/privatecoffee/matrix-gptbot"
|
||||||
|
@ -75,4 +60,4 @@ dev = [
|
||||||
gptbot = "gptbot.__main__:main_sync"
|
gptbot = "gptbot.__main__:main_sync"
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = ["src/gptbot"]
|
packages = ["src/gptbot"]
|
||||||
|
|
Loading…
Reference in a new issue