From: Hynek Schlawack Date: Mon, 2 Jan 2023 12:41:45 +0000 (+0100) Subject: PyPI readme: fix screenshot links & trim changelog (#2522) X-Git-Tag: 0.23.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4438a3a718fe94722eb20fec4154ee0ef5d7715;p=thirdparty%2Fhttpx.git PyPI readme: fix screenshot links & trim changelog (#2522) Co-authored-by: Tom Christie --- 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"'