PyPI readme: fix screenshot links & trim changelog (#2522)

Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
Hynek Schlawack 2023-01-02 13:41:45 +01:00 committed by GitHub
parent 6a98e188c4
commit e4438a3a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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