Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

public version #289

Merged
merged 1 commit into from
May 22, 2024
Merged
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
4 changes: 1 addition & 3 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
ChangeLog
=========
0.8.0alpha3
0.8.0 (2024-05-22)
* Send additional version headers
* Add printer dialog handling
* Stop transfers on application exit

0.8.0alpha2
* Report read timeouts differently
* Initial support for the new connect MMU API
* Add new SL types
Expand Down
10 changes: 4 additions & 6 deletions prusa/connect/printer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
)
from .util import RetryingSession, get_timestamp

__version__ = "0.8.0alpha3"
__date__ = "14 May 2024" # version date
__version__ = "0.8.0"
__date__ = "22 May 2024" # version date
__copyright__ = "(c) 2024 Prusa 3D"
__author_name__ = "Prusa Link Developers"
__author_email__ = "[email protected]"
Expand Down Expand Up @@ -150,8 +150,7 @@ def __init__(self,
self.set_printer_ready)
self.set_handler(const.Command.CANCEL_PRINTER_READY,
self.cancel_printer_ready)
self.set_handler(const.Command.DIALOG_ACTION,
self.dialog_action)
self.set_handler(const.Command.DIALOG_ACTION, self.dialog_action)

self.fs = Filesystem(sep=os.sep, event_cb=self.event_cb)
self.inotify_handler = InotifyHandler(self.fs)
Expand Down Expand Up @@ -516,8 +515,7 @@ def dialog_action(self, caller: Command) -> Dict[str, Any]:
"""Process dialog action"""
# pylint: disable=unused-argument
if not caller.kwargs:
raise ValueError(
f"{const.Command.DIALOG_ACTION} requires kwargs")
raise ValueError(f"{const.Command.DIALOG_ACTION} requires kwargs")
return {'source': const.Source.CONNECT}

def get_file_info(self, caller: Command) -> Dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
py-gcode-metadata
py-gcode-metadata>=0.2.0
requests>=2.31.0
inotify_simple~=1.3.5
mypy-extensions~=1.0.0
Expand Down
Loading