Skip to content

Commit

Permalink
Add required package docstring_parser to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Feb 4, 2024
1 parent fec2543 commit 39b301d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"expiringdict",
]

service_requires = ["docker", "pymongo", "pymysql"]
service_requires = ["docstring_parser", "docker", "pymongo", "pymysql"]

doc_requires = [
"sphinx",
Expand Down
5 changes: 4 additions & 1 deletion src/agentscope/service/service_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
get_origin,
)

from docstring_parser import parse
try:
from docstring_parser import parse
except ImportError:
parse = None
from loguru import logger


Expand Down

0 comments on commit 39b301d

Please sign in to comment.