From b5fb99f6e1f378b1413387127cb572f48524dba0 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Fri, 30 Dec 2022 17:48:39 +0100 Subject: [PATCH] PyPI readme: fix screenshot links & trim changelog --- pyproject.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 592a6e26e1..bd61771057 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"'