ci: add multi-os test, lint, and wheel build workflows

Also fixes the sdist leaving wheels empty, pins subby to its git
source in wheel metadata, and fixes docstrings that broke mkdocs --strict.
This commit is contained in:
imSp4rky
2026-07-15 14:49:19 -06:00
parent 59a7c76b2f
commit d853ef9600
8 changed files with 140 additions and 33 deletions
+1 -1
View File
@@ -296,6 +296,6 @@ class MonaLisa:
the content has already been decrypted and muxed into a container.
Args:
path: Path to the file (ignored).
_path: Path to the file (ignored).
"""
pass
+11 -6
View File
@@ -80,8 +80,8 @@ class Widevine:
headers and more.
Raises:
PSSHNotFound - If the PSSH was not found within the data.
KIDNotFound - If the KID was not found within the data or PSSH.
PSSHNotFound: If the PSSH was not found within the data.
KIDNotFound: If the KID was not found within the data or PSSH.
"""
if not session:
session = Session()
@@ -131,8 +131,8 @@ class Widevine:
It is *rare* to need to use this.
Raises:
PSSHNotFound - If the PSSH was not found within the data.
KIDNotFound - If the KID was not found within the data or PSSH.
PSSHNotFound: If the PSSH was not found within the data.
KIDNotFound: If the KID was not found within the data or PSSH.
"""
if not init_data:
raise ValueError("Init data should be provided.")
@@ -379,8 +379,13 @@ class Widevine:
try:
subprocess.run(
cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True,
encoding="utf-8", errors="replace",
cmd,
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
encoding="utf-8",
errors="replace",
)
except subprocess.CalledProcessError as e:
error_msg = e.stderr if e.stderr else f"mp4decrypt failed with exit code {e.returncode}"
+1 -1
View File
@@ -568,7 +568,7 @@ class Track:
Load DRM information for this track if it was deferred during parsing.
Args:
service: Service instance that can fetch track-specific DRM info
service (Service | None): Service instance that can fetch track-specific DRM info
Returns:
True if DRM was loaded or already present, False if failed