From 4fe379579d98d3f6921e7fe238cedfa86302f4f0 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Wed, 12 Apr 2017 13:49:20 +0100 Subject: [PATCH] Readme in setup.py --- README.md | 2 +- setup.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bd541aa02..dc39a71ad 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,6 @@ Tests To run the tests, install `pytest` and `pytest-cov`, and then run: - python setup.py test + python setup.py test A code coverage report will be generated in `htmlcov/`. diff --git a/setup.py b/setup.py index 246320837..77fba29f8 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,9 @@ with open(op.join(basedir, "fsl", "version.py")) as f: exec(line, version) break +with open(op.join(basedir, 'README.md'), 'rt') as f: + readme = f.read() + class doc(Command): """Build the API documentation. """ @@ -76,6 +79,7 @@ setup( version=version['__version__'], description='FSL Python library', + long_description=readme, url='https://git.fmrib.ox.ac.uk/paulmc/fslpy', -- GitLab