b07b360f0799 — alain@leufroy.fr 0.1.1 4 years ago
[pkg] fix README and setup.py
2 files changed, 4 insertions(+), 2 deletions(-)

M README.md
M setup.py
M README.md +1 -0
@@ 1,3 1,4 @@ 
+
 Simple but powerful text-base interactive interface for [https://mercurial-scm.org](mercurial).
 
 [![asciicast](https://asciinema.org/a/41dn083fyvookt4tf4hakqt7o.png)](https://asciinema.org/a/41dn083fyvookt4tf4hakqt7o)

          
M setup.py +3 -2
@@ 38,8 38,9 @@ def get_setup():
 
 def get_descriptions():
     """Read descriptions from README"""
-    with io.open(b'README.md', b'r', encoding=b'utf-8') as readme:
-        readme.readline() # skip encoding declaration
+    config = configparser.ConfigParser()
+    config.read('setup.cfg')
+    with io.open(config.get('metadata', 'description-file'), b'r', encoding=b'utf-8') as readme:
         for line in readme:
             if line.strip() and not line.startswith('.. '):
                 description = line.strip()