From 0f7a98c01bc3e2aa8f1c579eb4abd5593a3466f2 Mon Sep 17 00:00:00 2001 From: Elliot Nunn Date: Tue, 11 Jun 2019 16:39:49 +0800 Subject: [PATCH] Make README work on PyPI --- setup.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0254b51..3a20511 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,15 @@ from setuptools import setup, Extension +from os import path +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + setup_args = dict( name='tbxi', - version='0.6', + long_description=long_description, + long_description_content_type='text/markdown', + version='0.7', author='Elliot Nunn', author_email='elliotnunn@fastmail.com', description='Tools to compile and inspect Macintosh ROM images',