[pip] use python/README.md for package long description
authorPaul Brossier <piem@piem.org>
Wed, 21 Nov 2018 15:41:58 +0000 (16:41 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 21 Nov 2018 15:41:58 +0000 (16:41 +0100)
setup.py

index 4ff5fcb..58b61f2 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -62,13 +62,18 @@ classifiers = [
     'GNU General Public License v3 or later (GPLv3+)',
     ]
 
+thisdir = os.path.abspath(os.path.dirname(__file__))
+py_readme_file = os.path.join(thisdir, 'python', 'README.md')
+with open(py_readme_file, 'r') as fp:
+    long_description = ''.join(fp.readlines()[3:])
+
 distrib = setup(name='aubio',
     version = __version__,
     packages = ['aubio'],
     package_dir = {'aubio': 'python/lib/aubio'},
     ext_modules = [aubio_extension],
     description = 'a collection of tools for music analysis',
-    long_description = 'a collection of tools for music analysis',
+    long_description = long_description,
     license = 'GNU/GPL version 3',
     author = 'Paul Brossier',
     author_email = 'piem@aubio.org',