Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 40 additions & 3 deletions erniebot-agent/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,44 @@
[build-system]
requires = ["setuptools >= 61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "erniebot-agent"
description = "Python library for the ERNIE Bot Agent"
classifiers = ["Programming Language :: Python"]
requires-python = ">=3.8"
dynamic = ["version", "dependencies"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.optional-dependencies]
gradio = ["gradio >= 3.48"]
all = [
"erniebot_agent[gradio]",
]

[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]
include = [
"erniebot_agent",
"erniebot_agent.*",
]
namespaces = true

[tool.setuptools.dynamic]
version = {attr = "erniebot_agent.version.VERSION"}
dependencies = {file = ["requirements.txt"]}

[tool.isort]
profile = 'black'
src_paths = ['src', 'tests']
profile = "black"
src_paths = ["src", "tests"]

[tool.black]
line-length = 109
target_version = ['py38', 'py39', 'py310']
target_version = ["py38", "py39", "py310"]
47 changes: 0 additions & 47 deletions erniebot-agent/setup.cfg

This file was deleted.

26 changes: 0 additions & 26 deletions erniebot-agent/setup.py

This file was deleted.

40 changes: 37 additions & 3 deletions erniebot/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,41 @@
[build-system]
requires = ["setuptools >= 61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "erniebot"
description = "Python library for the ERNIE Bot"
classifiers = ["Programming Language :: Python"]
requires-python = ">=3.8"
dynamic = ["version", "dependencies"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.scripts]
erniebot = "erniebot.__main__:console_entry"

[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]
include = [
"erniebot",
"erniebot.*",
]
namespaces = false

[tool.setuptools.dynamic]
version = {attr = "erniebot.version.VERSION"}
dependencies = {file = ["requirements.txt"]}

[tool.isort]
profile = 'black'
src_paths = ['src']
profile = "black"
src_paths = ["src", "tests"]

[tool.black]
line-length = 109
target_version = ['py38', 'py39', 'py310']
target_version = ["py38", "py39", "py310"]
42 changes: 0 additions & 42 deletions erniebot/setup.cfg

This file was deleted.

27 changes: 0 additions & 27 deletions erniebot/setup.py

This file was deleted.