Merge pull request #3094 from kurtmckee/fix-readme-link-on-pypi-issue-3093

Fixes https://github.com/getpelican/pelican/issues/3093
This commit is contained in:
Justin Mayer 2023-01-30 18:00:38 +01:00 committed by GitHub
commit 95ff3b8e62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(