From f50bf26466f342d185760783cad018ca832ca858 Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Mon, 30 Jan 2023 08:20:12 -0600 Subject: [PATCH] Use absolute URL's in the package `long_description` for PyPI Fixes #3093 --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index b88f59285..da038d244 100755 --- a/setup.py +++ b/setup.py @@ -25,6 +25,13 @@ 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( + "", + "", +) + description = '\n'.join([README, CHANGELOG]) setup(