Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a

This commit is contained in:
OverSu 2026-11-28 12:20:19 +01:00
commit 3a1fba4efe

View file

@ -75,7 +75,7 @@ def group_scope(name):
scope = []
if re.search(r'\bPC\b|Desktop', label): scope.append('pc')
if 'Android' in label: scope.append('apk')
if 'Sargo' in label or 'Tundra' in label: scope.append('models')
if any(name in label for name in ('Sargo', 'Pixel 3a', 'Tundra')): scope.append('models')
if label == 'Web': scope.append('web')
if not scope:
raise ValueError('Unknown platform group: ' + label)
@ -91,7 +91,7 @@ def parse_text(markdown):
for chunk in re.split(r'^## ', markdown, flags=re.MULTILINE)[1:]:
heading, _, body = chunk.partition('\n')
if heading.startswith(('Tenue du journal', 'Maintaining this journal')): continue
title = re.sub(r'^\d{2}/\d{2}/\d{4}\s*:\s*', '', heading)
title = re.sub(r'^\d{2}/\d{2}/\d{4}\s*[:·]\s*', '', heading)
version = re.match(r'\d+\.\d+[.\w-]*', title)
key = version.group() if version else ('development' if title.startswith(('En développement', 'In development')) else 'history')
kind = 'version' if version else key
@ -99,7 +99,7 @@ def parse_text(markdown):
date = None
if stamp and stamp[2].lower() in months:
date = f'{stamp[3]}-{months[stamp[2].lower()]:02d}-{int(stamp[1]):02d}'
numeric_date = re.match(r'(\d{2})/(\d{2})/(\d{4})\s*:', heading)
numeric_date = re.match(r'(\d{2})/(\d{2})/(\d{4})\s*[:·]', heading)
if numeric_date:
date = f'{numeric_date[3]}-{numeric_date[2]}-{numeric_date[1]}'
names = re.findall(r'^### (.+)', body, re.MULTILINE)