xmyshell 0.2.9__tar.gz → 0.2.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {xmyshell-0.2.9/xmyshell.egg-info → xmyshell-0.2.10}/PKG-INFO +1 -1
  2. {xmyshell-0.2.9 → xmyshell-0.2.10}/pyproject.toml +1 -1
  3. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/kernel.py +6 -1
  4. {xmyshell-0.2.9 → xmyshell-0.2.10/xmyshell.egg-info}/PKG-INFO +1 -1
  5. {xmyshell-0.2.9 → xmyshell-0.2.10}/LICENSE +0 -0
  6. {xmyshell-0.2.9 → xmyshell-0.2.10}/README.md +0 -0
  7. {xmyshell-0.2.9 → xmyshell-0.2.10}/setup.cfg +0 -0
  8. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/__init__.py +0 -0
  9. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/__main__.py +0 -0
  10. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/completer.py +0 -0
  11. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/data/commands.json +0 -0
  12. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/environment.py +0 -0
  13. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/init.py +0 -0
  14. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/keybindings.py +0 -0
  15. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/lexer.py +0 -0
  16. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/main.py +0 -0
  17. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/meta.py +0 -0
  18. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/themes.py +0 -0
  19. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/update.py +0 -0
  20. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/utils.py +0 -0
  21. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/SOURCES.txt +0 -0
  22. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/dependency_links.txt +0 -0
  23. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/entry_points.txt +0 -0
  24. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/requires.txt +0 -0
  25. {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmyshell
3
- Version: 0.2.9
3
+ Version: 0.2.10
4
4
  Summary: XmyShell is a shell-like tool built on top of prompt_toolkit which provides a persistent Python runtime.
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xmyshell"
3
- version = "0.2.9"
3
+ version = "0.2.10"
4
4
  description = "XmyShell is a shell-like tool built on top of prompt_toolkit which provides a persistent Python runtime."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -26,9 +26,14 @@ def _run(*args, **kwargs) -> subprocess.CompletedProcess:
26
26
  # KeyboardInterrupt handler only fires for Ctrl-C at the prompt.
27
27
  #
28
28
  # Must run on the main thread: signal.signal() is not allowed elsewhere.
29
+ kwargs_preexec = {}
30
+ if os.name == "posix":
31
+ def _reset_sigint():
32
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
33
+ kwargs_preexec["preexec_fn"] = _reset_sigint
29
34
  old = signal.signal(signal.SIGINT, signal.SIG_IGN)
30
35
  try:
31
- return subprocess.run(*args, **kwargs)
36
+ return subprocess.run(*args, **kwargs_preexec, **kwargs)
32
37
  finally:
33
38
  signal.signal(signal.SIGINT, old)
34
39
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmyshell
3
- Version: 0.2.9
3
+ Version: 0.2.10
4
4
  Summary: XmyShell is a shell-like tool built on top of prompt_toolkit which provides a persistent Python runtime.
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes