pystemd
Advanced tools
+1
-1
| Metadata-Version: 2.4 | ||
| Name: pystemd | ||
| Version: 0.15.2 | ||
| Version: 0.15.3 | ||
| Summary: A systemd binding for python | ||
@@ -5,0 +5,0 @@ Author: Alvaro Leiva Geisse |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "pystemd" | ||
| version = "0.15.2" | ||
| version = "0.15.3" | ||
| readme = "README.md" | ||
@@ -10,0 +10,0 @@ description="A systemd binding for python" |
| Metadata-Version: 2.4 | ||
| Name: pystemd | ||
| Version: 0.15.2 | ||
| Version: 0.15.3 | ||
| Summary: A systemd binding for python | ||
@@ -5,0 +5,0 @@ Author: Alvaro Leiva Geisse |
@@ -9,2 +9,3 @@ # | ||
| from collections.abc import Mapping, Sequence | ||
| from typing import Any, Protocol | ||
@@ -23,3 +24,3 @@ | ||
| def run( | ||
| cmd: list[str | bytes] | str | bytes, | ||
| cmd: Sequence[str | bytes] | str | bytes, | ||
| address: str | bytes | None = None, | ||
@@ -32,3 +33,3 @@ service_type: str | bytes | None = None, | ||
| runtime_max_sec: int | float | None = None, | ||
| env: dict[str | bytes, str | bytes] | None = None, | ||
| env: Mapping[str, str | bytes] | Mapping[bytes, str | bytes] | None = None, | ||
| extra: dict[bytes, Any] | None = None, | ||
@@ -50,6 +51,6 @@ cwd: str | bytes | None = None, | ||
| slice_: str | bytes | None = None, | ||
| stop_cmd: list[str | bytes] | str | bytes | None = None, | ||
| stop_post_cmd: list[str | bytes] | str | bytes | None = None, | ||
| start_pre_cmd: list[str | bytes] | str | bytes | None = None, | ||
| start_post_cmd: list[str | bytes] | str | bytes | None = None, | ||
| stop_cmd: Sequence[str | bytes] | str | bytes | None = None, | ||
| stop_post_cmd: Sequence[str | bytes] | str | bytes | None = None, | ||
| start_pre_cmd: Sequence[str | bytes] | str | bytes | None = None, | ||
| start_post_cmd: Sequence[str | bytes] | str | bytes | None = None, | ||
| ) -> systemd1.Unit: ... |
@@ -15,4 +15,4 @@ # | ||
| # latest release. | ||
| __version__ = "0.15.2" | ||
| __version__ = "0.15.3" | ||
| sys.modules[__name__] = __version__ # type: ignore |
+15
-12
@@ -18,2 +18,3 @@ # | ||
| import tty | ||
| from collections.abc import Mapping, Sequence | ||
| from contextlib import ExitStack | ||
@@ -57,3 +58,3 @@ from selectors import EVENT_READ, DefaultSelector | ||
| def run( | ||
| cmd: list[str | bytes] | str | bytes, | ||
| cmd: Sequence[str | bytes] | str | bytes, | ||
| address: str | bytes | None = None, | ||
@@ -66,3 +67,3 @@ service_type: str | bytes | None = None, | ||
| runtime_max_sec: int | float | None = None, | ||
| env: dict[str | bytes, str | bytes] | None = None, | ||
| env: Mapping[str, str | bytes] | Mapping[bytes, str | bytes] | None = None, | ||
| extra: dict[bytes, Any] | None = None, | ||
@@ -84,6 +85,6 @@ cwd: str | bytes | None = None, | ||
| slice_: str | bytes | None = None, | ||
| stop_cmd: list[str | bytes] | str | bytes | None = None, | ||
| stop_post_cmd: list[str | bytes] | str | bytes | None = None, | ||
| start_pre_cmd: list[str | bytes] | str | bytes | None = None, | ||
| start_post_cmd: list[str | bytes] | str | bytes | None = None, | ||
| stop_cmd: Sequence[str | bytes] | str | bytes | None = None, | ||
| stop_post_cmd: Sequence[str | bytes] | str | bytes | None = None, | ||
| start_pre_cmd: Sequence[str | bytes] | str | bytes | None = None, | ||
| start_post_cmd: Sequence[str | bytes] | str | bytes | None = None, | ||
| ) -> Unit: | ||
@@ -171,3 +172,5 @@ """ | ||
| stdin, stdout, stderr = get_fno(stdin), get_fno(stdout), get_fno(stderr) | ||
| env = env or {} | ||
| env_dict: dict[bytes, str | bytes] = ( | ||
| {x2char_star(k): v for k, v in env.items()} if env else {} | ||
| ) | ||
| unit_properties: dict[bytes, object] = {} | ||
@@ -227,5 +230,5 @@ | ||
| if None not in (stdout, pty_master): | ||
| if os.getenv("TERM"): | ||
| # pyrefly: ignore [missing-attribute] | ||
| env[b"TERM"] = env.get(b"TERM", os.getenv("TERM").encode()) | ||
| term = os.getenv("TERM") | ||
| if term: | ||
| env_dict[b"TERM"] = env_dict.get(b"TERM", term.encode()) | ||
@@ -272,4 +275,4 @@ # pyrefly: ignore [bad-argument-type] | ||
| b"Environment": [ | ||
| b"%s=%s" % (x2char_star(key), x2char_star(value)) | ||
| for key, value in env.items() | ||
| b"%s=%s" % (key, x2char_star(value)) | ||
| for key, value in env_dict.items() | ||
| ] | ||
@@ -276,0 +279,0 @@ or None, |
+1
-1
@@ -66,3 +66,3 @@ #!/usr/bin/env python3 | ||
| name="pystemd", | ||
| version="0.15.2", | ||
| version="0.15.3", | ||
| author="Alvaro Leiva Geisse", | ||
@@ -69,0 +69,0 @@ author_email="aleivag@gmail.com", |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
3280228
0.01%2814
0.14%