You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Parse __version__ directly so we don't have to install scenedetect
25
+
# (importing it triggers a cv2-availability guard).
26
+
VERSION=$(python -c "import ast,pathlib; print(next(n.value.value for n in ast.parse(pathlib.Path('scenedetect/__init__.py').read_text()).body if isinstance(n, ast.Assign) and any(getattr(t,'id',None)=='__version__' for t in n.targets)))")
25
27
echo "scenedetect.__version__ = $VERSION"
26
28
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
27
29
TAG_VERSION=${GITHUB_REF#refs/tags/v}
@@ -37,10 +39,16 @@ jobs:
37
39
fi
38
40
- name: Build and Check
39
41
run: |
40
-
python -m build
41
-
twine check dist/*
42
+
# Build to a clean output dir — `dist/` already holds tracked installer
43
+
# scripts and config (e.g. dist/generate_assets.py, dist/installer/),
44
+
# so `twine check dist/*` would try to validate non-distribution files.
45
+
python -m build --outdir build-dist
46
+
twine check build-dist/*
42
47
- name: pip-audit
43
-
run: pip-audit
48
+
# CVE-2026-3219 in pip 26.0.1 has no fix version available upstream
49
+
# and pip ships pre-installed on the runner (not controlled by this
0 commit comments