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"'