Skip to content

Commit c08c6f0

Browse files
committed
REL: add long_description to setup.py
twine requires it for setting project description on PyPI.
1 parent 9885f5a commit c08c6f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def getversioncfg():
7777

7878
versiondata = getversioncfg()
7979

80+
with open(os.path.join(MYDIR, 'README.rst')) as fp:
81+
long_description = fp.read()
82+
8083
# define distribution
8184
setup_args = dict(
8285
name = "diffpy.srfit",
@@ -92,6 +95,8 @@ def getversioncfg():
9295
maintainer = "Pavol Juhas",
9396
maintainer_email = "pavol.juhas@gmail.com",
9497
description = "SrFit - Structure refinement from diffraction data",
98+
long_description = long_description,
99+
long_description_content_type = 'text/x-rst',
95100
license = 'BSD-style license',
96101
url = "https://github.com/diffpy/diffpy.srfit",
97102
keywords = "optimization constraints restraints structure refinement complex modeling",

0 commit comments

Comments
 (0)