From e4438a3a718fe94722eb20fec4154ee0ef5d7715 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 2 Jan 2023 13:41:45 +0100 Subject: [PATCH] PyPI readme: fix screenshot links & trim changelog (#2522) Co-authored-by: Tom Christie --- pyproject.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 592a6e26..bd617710 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,5 +77,16 @@ content-type = "text/markdown" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] path = "README.md" +[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +text = "\n## Release Information\n\n" + [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] path = "CHANGELOG.md" +pattern = "\n(###.+?\n)## " + +[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +text = "\n---\n\n[Full changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)\n" + +[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] +pattern = 'src="(docs/img/.*?)"' +replacement = 'src="https://raw.githubusercontent.com/encode/httpx/master/\1"'