From ad6142b67c8f137b001770339510979c5df43d85 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 13 Apr 2018 09:03:09 -0700 Subject: [PATCH] long_description in markdown for the new PyPI --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index 1b187a70..dd7d23db 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,18 @@ from setuptools import setup, find_packages from datasette import __version__ +from pathlib import Path + + +def get_long_description(): + with open(Path(__file__).parent / 'README.md', encoding='utf8') as fp: + return fp.read() + setup( name='datasette', description='An instant JSON API for your SQLite databases', + long_description=get_long_description(), + long_description_content_type='text/markdown', author='Simon Willison', version=__version__, license='Apache License, Version 2.0',