-
Notifications
You must be signed in to change notification settings - Fork 243
Conversation
You can now import the PythonClient via from mentat import Mentat. * Docs updated * Comments added to python_client * tests and benchmarks updated to use new import
This fixes an import issue.
mentat/python_client/client.py
Outdated
"""Initiates shutdown of the client, ensuring all tasks are cancelled and the session is properly closed.""" | ||
"""Sends the stop signal to the session and returns when client is fully shutdown.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: make this a single block comment
readme_path = os.path.join(Path(__file__).parent, "README.md") | ||
with open(readme_path, "r", encoding="utf-8") as f: | ||
long_description = f.read() | ||
|
||
|
||
setup( | ||
name="mentat", | ||
version=__version__, | ||
version="1.0.9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we hardcode this over using __version__
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I made this change was because we can't import from mentat in setup anymore because the default export will fail as requirements are not installed yet. The number has to be hardcoded somewhere and I thought here made sense but also considered putting it in a VERSION file which I've seen some packages do.
I'm down to do it a different way if you have opinions.
You can now import the PythonClient via
from mentat import Mentat
.Pull Request Checklist