Commit 87e61c1
authored
fix(python): bump requires-python, portable sed, and signal forwarding (#1005)
* fix(python): bump requires-python, portable sed, and signal forwarding
- Bump requires-python to >=3.8 and drop importlib_metadata fallback
since Python 3.6/3.7 are long EOL
- Replace GNU-only sed -i with redirect+mv pattern for macOS compat
- Forward SIGTERM/SIGHUP to child process using subprocess.Popen to
prevent orphaned processes on container shutdown
Fixes #1004
Signed-off-by: Marc Nuri <marc@marcnuri.com>
* fix(python): guard SIGHUP for Windows and handle send_signal race
- Gate SIGHUP registration behind hasattr check since the constant
is Unix-only and would crash the wrapper on Windows
- Catch OSError in send_signal calls to handle the race where the
child exits between signal arrival and forwarding
Signed-off-by: Marc Nuri <marc@marcnuri.com>
---------
Signed-off-by: Marc Nuri <marc@marcnuri.com>1 parent 4026859 commit 87e61c1
File tree
3 files changed
+24
-9
lines changed- build
- python
- kubernetes_mcp_server
3 files changed
+24
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| |||
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
85 | | - | |
86 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
87 | 102 | | |
88 | 103 | | |
89 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments