diff options
author | Kurt McKee <contactme@kurtmckee.org> | 2023-01-30 08:20:12 -0600 |
---|---|---|
committer | Kurt McKee <contactme@kurtmckee.org> | 2023-01-30 08:20:12 -0600 |
commit | f50bf26466f342d185760783cad018ca832ca858 (patch) | |
tree | 7e397c55694d041d4e351c0c680077eebda7efab | |
parent | 7850153c54e9295e73ffb42710b0b809c6ed096a (diff) | |
download | pelican-f50bf26466f342d185760783cad018ca832ca858.tar.gz |
Use absolute URL's in the package `long_description` for PyPI
Fixes #3093
-rwxr-xr-x | setup.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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( |