Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions ci_scripts/check_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,13 @@ def create_deprecation_pr(package: str, reason: str) -> Optional[str]:
deprecated_file = Path("ci_scripts/deprecated.txt")
lines = deprecated_file.read_text().splitlines()

comments = lines[:7]
deprecated_packages = lines[7:]
i = next(
i for i, line in enumerate(lines)
if line.strip() and not line.lstrip().startswith("#")
)

comments = lines[:i]
deprecated_packages = lines[i:]

if package not in deprecated_packages:
deprecated_packages.append(package)
Expand Down
6 changes: 3 additions & 3 deletions ci_scripts/deprecated.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# SPDX-License-Identifier: Apache-2.0

# List of deprecated packages. Deprecated packages are those which are now built
for riscv64 platforms by the upstream projects, so we don't need to maintain a
build workflow for it ourselves. Previously-built wheels should remain in the
RISE package registry.
# for riscv64 platforms by the upstream projects, so we don't need to maintain a
# build workflow for it ourselves. Previously-built wheels should remain in the
# RISE package registry.

aiohttp
blake3
Expand Down
Loading