Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

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 7c8adc9 commit e5efcde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
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"


KEYWORDS = project_var_name + ', synchronization, files, Xavier, Dupré'
Expand Down Expand Up @@ -162,6 +163,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 e5efcde

Please sign in to comment.