Permalink
Browse files

add history in setup.py

  • Loading branch information...
sdpython committed Sep 17, 2017
1 parent 73ad0aa commit a1381f9f22e6ed8b81a380537f09bc4dba7b6756
Showing with 6 additions and 0 deletions.
  1. +6 −0 setup.py
View
@@ -13,6 +13,7 @@
versionPython = "%s.%s" % (sys.version_info.major, sys.version_info.minor)
path = "Lib/site-packages/" + project_var_name
readme = 'README.rst'
history = "HISTORY.rst"
requirements = None
KEYWORDS = project_var_name + ', coding goûter'
@@ -174,6 +175,11 @@ def write_version():
long_description = f.read()
else:
long_description = ""
if os.path.exists(history):
if sys.version_info[0] == 2:
from codecs import open
with open(history, "r", encoding='utf-8-sig') as f:
long_description += f.read()
if "--verbose" in sys.argv:
verbose()

0 comments on commit a1381f9

Please sign in to comment.