Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also purge source metadata files #157

Merged
merged 2 commits into from
Aug 12, 2024
Merged
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
21 changes: 17 additions & 4 deletions run_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,15 +897,28 @@
f"https://www.python.org/downloads/release/python-{str(db['release']).replace('.', '')}/",
f"https://docs.python.org/release/{db['release']}/",
f"https://www.python.org/ftp/python/{normalized_release}/",
f"https://www.python.org/ftp/python/{normalized_release}/Python-{db['release']}.tgz",
f"https://www.python.org/ftp/python/{normalized_release}/Python-{db['release']}.tgz.asc",
f"https://www.python.org/ftp/python/{normalized_release}/Python-{db['release']}.tar.xz",
f"https://www.python.org/ftp/python/{normalized_release}/Python-{db['release']}.tar.xz.asc",
f"https://docs.python.org/release/{normalized_release}/",
"https://www.python.org/downloads/",
"https://www.python.org/downloads/windows/",
"https://www.python.org/downloads/macos/",
]
# Purge the source URLs and their associated metadata files.
source_urls = [
f"https://www.python.org/ftp/python/{normalized_release}/Python-{db['release']}.tgz",
f"https://www.python.org/ftp/python/{normalized_release}/Python-{db['release']}.tar.xz",
]
for source_url in source_urls:

Check warning on line 910 in run_release.py

View check run for this annotation

Codecov / codecov/patch

run_release.py#L905-L910

Added lines #L905 - L910 were not covered by tests
urls.extend(
[
f"{source_url}",

Check warning on line 913 in run_release.py

View check run for this annotation

Codecov / codecov/patch

run_release.py#L912-L913

Added lines #L912 - L913 were not covered by tests
f"{source_url}.asc",
f"{source_url}.crt",
f"{source_url}.sig",
f"{source_url}.sigstore",

Check warning on line 917 in run_release.py

View check run for this annotation

Codecov / codecov/patch

run_release.py#L916-L917

Added lines #L916 - L917 were not covered by tests
f"{source_url}.spdx.json",
]

Check warning on line 919 in run_release.py

View check run for this annotation

Codecov / codecov/patch

run_release.py#L919

Added line #L919 was not covered by tests
)

for url in urls:
req = urllib.request.Request(url=url, headers=headers, method="PURGE")
# try:
Expand Down