Use absolute URL's in the package long_description for PyPI

Fixes #3093
This commit is contained in:
Kurt McKee 2023-01-30 08:20:12 -06:00
commit f50bf26466
No known key found for this signature in database
GPG key ID: 64713C0B5BA8E1C2

View file

@ -25,6 +25,13 @@ entry_points = {
README = open('README.rst', encoding='utf-8').read()
CHANGELOG = open('docs/changelog.rst', encoding='utf-8').read()
# Relative links in the README must be converted to absolute URL's
# so that they render correctly on PyPI.
README = README.replace(
"<CONTRIBUTING.rst>",
"<https://docs.getpelican.com/en/latest/contribute.html>",
)
description = '\n'.join([README, CHANGELOG])
setup(