Bump dependencies and update OS matrix (#6492)

This commit is contained in:
Jakub Kuczys
2024-12-24 19:54:56 +01:00
committed by GitHub
parent 3aac07a4d7
commit 8ad9c55d50
12 changed files with 55 additions and 95 deletions

View File

@@ -17,6 +17,12 @@ def pip_compile(version: str, name: str) -> None:
if EXCLUDE_STEM_RE.fullmatch(stem):
return
constraint_flags = [
arg
for file in REQUIREMENTS_FOLDER.glob(f"{sys.platform}-3.8-*.txt")
for arg in ("-c", file.name)
]
executable = ("py", f"-{version}") if sys.platform == "win32" else (f"python{version}",)
subprocess.check_call(
(
@@ -30,6 +36,7 @@ def pip_compile(version: str, name: str) -> None:
f"{name}.in",
"--output-file",
f"{stem}.txt",
*constraint_flags,
)
)

View File

@@ -49,6 +49,8 @@ def get_requirements(fp: TextIO) -> List[RequirementData]:
via_prefix = "via "
if source.startswith(via_prefix):
source = source[len(via_prefix) :]
if source.startswith("-c ") and source != "-c base.txt":
continue
current.comments.add(source)
elif line and not line.startswith(("#", " ")):
current = RequirementData(line)