mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use absolute URL's in the package long_description for PyPI
Fixes #3093
This commit is contained in:
parent
7850153c54
commit
f50bf26466
1 changed files with 7 additions and 0 deletions
7
setup.py
7
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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue