From 0d5357641e7375fbbb83938a203c9d0e8760689d Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Fri, 10 Apr 2026 16:21:29 +1000 Subject: [PATCH 1/2] fix: make the generated Simple Index (see PEP 503) better navigatable --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dbbf83bd..e6918a01 100644 --- a/Makefile +++ b/Makefile @@ -205,8 +205,8 @@ PROJECT_NAME := $(shell python -c $$'import re; print(re.sub(r"[-_.]+", "-", "$( .PHONY: simple-index simple-index: dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-py3-none-any.whl dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz mkdir -p dist/simple-index/$(PROJECT_NAME) - echo -e "\nSimple Index$(PACKAGE_NAME)" > dist/simple-index/index.html - echo -e "\nSimple Index: $(PROJECT_NAME)$(PACKAGE_NAME)-$(PACKAGE_VERSION)-py3-none-any.whl$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz" > dist/simple-index/$(PROJECT_NAME)/index.html + echo -e "\nSimple Index$(PACKAGE_NAME)" > dist/simple-index/index.html + echo -e "\nSimple Index: $(PROJECT_NAME)" > dist/simple-index/$(PROJECT_NAME)/index.html cp -f dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-py3-none-any.whl dist/simple-index/$(PROJECT_NAME)/ cp -f dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz dist/simple-index/$(PROJECT_NAME)/ From e529e207b751e8304bc5ac5e5739a6eb1885d101 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Sat, 11 Apr 2026 16:36:07 +1000 Subject: [PATCH 2/2] chore: add the wheel's build epoch to the package's index.html, zip the entire simple index for a build artifact --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e6918a01..f36d7ddc 100644 --- a/Makefile +++ b/Makefile @@ -206,9 +206,10 @@ PROJECT_NAME := $(shell python -c $$'import re; print(re.sub(r"[-_.]+", "-", "$( simple-index: dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-py3-none-any.whl dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz mkdir -p dist/simple-index/$(PROJECT_NAME) echo -e "\nSimple Index$(PACKAGE_NAME)" > dist/simple-index/index.html - echo -e "\nSimple Index: $(PROJECT_NAME)" > dist/simple-index/$(PROJECT_NAME)/index.html + echo -e "\nSimple Index: $(PROJECT_NAME)" > dist/simple-index/$(PROJECT_NAME)/index.html cp -f dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-py3-none-any.whl dist/simple-index/$(PROJECT_NAME)/ cp -f dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz dist/simple-index/$(PROJECT_NAME)/ + python -m zipfile -c dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-pep508-simple-index.zip dist/simple-index # Build the HTML and Markdown documentation from the package's source. DOCS_SOURCE := $(shell git ls-files docs/source)