From e6a07fe7ae689cad66c1d754cf565649a9400083 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 21 Nov 2018 16:41:58 +0100 Subject: [PATCH] [pip] use python/README.md for package long description --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4ff5fcb0..58b61f25 100755 --- 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', -- 2.11.0