From 2e1f674897e89bbc69a389696773aebfec601916 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 3 May 2018 15:43:30 +0200 Subject: [PATCH] Fixed #29373 -- Added long_description in setup.py. --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index 32dfc9d291..332800a314 100644 --- a/setup.py +++ b/setup.py @@ -61,6 +61,11 @@ EXCLUDE_FROM_PACKAGES = ['django.conf.project_template', version = __import__('django').get_version() +def read(fname): + with open(os.path.join(os.path.dirname(__file__), fname)) as f: + return f.read() + + setup( name='Django', version=version, @@ -70,6 +75,7 @@ setup( author_email='foundation@djangoproject.com', description=('A high-level Python Web framework that encourages ' 'rapid development and clean, pragmatic design.'), + long_description=read('README.rst'), license='BSD', packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), include_package_data=True,