Skip to content
Merged
Changes from 1 commit
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
12 changes: 3 additions & 9 deletions add_to_pydotorg.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,18 +271,12 @@
if rfile.endswith((".asc", ".sig", ".crt", ".sigstore", ".spdx.json")):
continue

for prefix in ("python", "Python"):
if rfile.startswith(prefix):
break
else:
prefix, _, rest = rfile.partition("-")

Check warning on line 274 in add_to_pydotorg.py

View check run for this annotation

Codecov / codecov/patch

add_to_pydotorg.py#L274

Added line #L274 was not covered by tests

if prefix.lower() not in ("python-", "windows-"):

Check warning on line 276 in add_to_pydotorg.py

View check run for this annotation

Codecov / codecov/patch

add_to_pydotorg.py#L276

Added line #L276 was not covered by tests
print(f" File {reldir}/{rfile} has wrong prefix")
continue

try:
prefix, rest = rfile.split("-", 1)
except: # noqa: E722
prefix, rest = rfile, ""

if not rest.startswith((release + "-", release + ".")):
print(f" File {reldir}/{rfile} has a different version")
continue
Expand Down
Loading