(raw: str)
| 51 | |
| 52 | |
| 53 | def msi_version(raw: str) -> str: |
| 54 | # Mirror scripts/update_installer.py / generate_manifest.py - artifact |
| 55 | # filenames use the normalized X.Y.Z form, not the Python __version__. |
| 56 | parts = [re.split(r"[^\d]", p, maxsplit=1)[0] for p in raw.split(".")] |
| 57 | while len(parts) < 3: |
| 58 | parts.append("0") |
| 59 | return ".".join(parts[:4]) |
| 60 | |
| 61 | |
| 62 | VERSION = msi_version(scenedetect.__version__) |
no outgoing calls
no test coverage detected