summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt McKee <contactme@kurtmckee.org>2023-01-30 08:20:12 -0600
committerKurt McKee <contactme@kurtmckee.org>2023-01-30 08:20:12 -0600
commitf50bf26466f342d185760783cad018ca832ca858 (patch)
tree7e397c55694d041d4e351c0c680077eebda7efab
parent7850153c54e9295e73ffb42710b0b809c6ed096a (diff)
downloadpelican-f50bf26466f342d185760783cad018ca832ca858.tar.gz
Use absolute URL's in the package `long_description` for PyPI
Fixes #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(