From be5831a62929ac457198deb121a0c1ebad621138 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 23 Aug 2017 23:29:21 -0700 Subject: [PATCH] Offer the readme as a long description for new PyPI --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index 43920611..f52f54eb 100644 --- a/setup.py +++ b/setup.py @@ -185,9 +185,15 @@ if 'upload' in sys.argv[1:]: tests_require = open('test_requirements.txt').read().splitlines() + +def readme(): + with open('README.rst') as f: + return f.read() + setup( name='ocrmypdf', description='OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched', + long_description=readme(), url='https://github.com/jbarlow83/OCRmyPDF', author='James R. Barlow', author_email='jim@purplerock.ca',