Skip to content

Commit

Permalink
add history in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Sep 17, 2017
1 parent 8109df9 commit 3a883fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + ', ENSAE, hackathon'
Expand Down Expand Up @@ -167,6 +168,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()
Expand Down

0 comments on commit 3a883fc

Please sign in to comment.