Unsafe fixes.
This commit is contained in:
1 parent
95081ca50e
commit
54a4b57230
20 files changed
+55
-81
No files matched your search
+1
-2
@@ -84,13 +84,12 @@ def find_dist_files(version: str) -> list[Path]:
|
||||
Raises FileNotFoundError listing every missing file if any are absent.
|
||||
"""
|
||||
dist_dir = REPO_ROOT / "dist"
|
||||
ver = re.escape(version)
|
||||
wheel = next((p for p in dist_dir.glob(f"mediahive-{version}-*.whl")), None)
|
||||
sdist = next(
|
||||
(
|
||||
p
|
||||
for p in dist_dir.glob(f"mediahive-{version}.*")
|
||||
if p.suffix in (".gz", ".zip") and p.name != f"mediahive-{version}.zip"
|
||||
if p.suffix in {".gz", ".zip"} and p.name != f"mediahive-{version}.zip"
|
||||
),
|
||||
None,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user