]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
PyPI readme: fix screenshot links & trim changelog (#2522)
authorHynek Schlawack <hs@ox.cx>
Mon, 2 Jan 2023 12:41:45 +0000 (13:41 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Jan 2023 12:41:45 +0000 (12:41 +0000)
Co-authored-by: Tom Christie <tom@tomchristie.com>
pyproject.toml

index 592a6e26e1c73fb65ecbce391e210964a4c317af..bd617710575908c29c5bf5d9f9f9df613957c8af 100644 (file)
@@ -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"'