From a0351c087f69c79c810fa4c04e83cbcc96394bb0 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 28 Mar 2022 09:11:30 +0300 Subject: [PATCH] Infra: Include trailing slash in RSS URLs to avoid 301 redirect (#2474) --- Makefile | 1 + generate_rss.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 065f94580..a6cc86c2f 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,7 @@ venv: echo "To recreate it, remove it first with \`make clean-venv'."; \ else \ $(PYTHON) -m venv $(VENVDIR); \ + $(VENVDIR)/bin/python3 -m pip install -U pip wheel; \ $(VENVDIR)/bin/python3 -m pip install -r requirements.txt; \ echo "The venv has been created in the $(VENVDIR) directory"; \ fi diff --git a/generate_rss.py b/generate_rss.py index 7af56c263..358e13823 100755 --- a/generate_rss.py +++ b/generate_rss.py @@ -167,7 +167,7 @@ def main(): joined_authors = ", ".join(f"{name} ({email_address})" for name, email_address in parsed_authors) else: joined_authors = author - url = f"https://peps.python.org/pep-{pep_num:0>4}" + url = f"https://peps.python.org/pep-{pep_num:0>4}/" item = entry.FeedEntry() item.title(f"PEP {pep_num}: {title}")