Skip to content

Commit dda6711

Browse files
committed
Append CHANGELOG.rst to long_description
1 parent 979c9dc commit dda6711

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
)
3131
]
3232

33-
# Read README with explicit encoding
34-
f = codecs.open('README.rst', encoding='utf-8', mode='r')
35-
long_description = f.read()
36-
f.close()
33+
def readfile(filename):
34+
with codecs.open(filename, encoding='utf-8', mode='r') as f:
35+
return f.read()
3736

37+
long_description = readfile('README.rst') + '\n' + readfile('CHANGELOG.rst')
3838

3939
setup(
4040
name='xxhash',

0 commit comments

Comments
 (0)