Skip to content

Commit b140d12

Browse files
committed
setup.py: stop putting CHANGES.rst into the long description.
It can't be rendered as plain ReST so it is invalid on PyPI.
1 parent e1dc8d0 commit b140d12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
def read_desc():
3232
with open('README.rst', encoding='utf-8') as stream:
3333
readme = stream.read()
34-
with open('CHANGES.rst', encoding='utf-8') as stream:
35-
changes = stream.read()
34+
# CHANGES.rst includes sphinx-specific markup, so
35+
# it can't be in the long description without some processing
36+
# that we're not doing -- its invalid ReST
3637

37-
return readme + '\n\n' + changes
38+
return readme
3839

3940
def read_version_number():
4041
VERSION_PATTERN = re.compile(r"__version__ = '([^']+)'")

0 commit comments

Comments
 (0)