summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2023-01-30 18:00:38 +0100
committerGitHub <noreply@github.com>2023-01-30 18:00:38 +0100
commit95ff3b8e628ba483de345b838de7c0052b2f3b02 (patch)
tree7e397c55694d041d4e351c0c680077eebda7efab
parent7850153c54e9295e73ffb42710b0b809c6ed096a (diff)
parentf50bf26466f342d185760783cad018ca832ca858 (diff)
downloadpelican-95ff3b8e628ba483de345b838de7c0052b2f3b02.tar.gz
Merge pull request #3094 from kurtmckee/fix-readme-link-on-pypi-issue-3093
Fixes https://github.com/getpelican/pelican/issues/3093
-rwxr-xr-xsetup.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index b88f5928..da038d24 100755
--- a/setup.py
+++ b/setup.py
@@ -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(