Skip to content

Commit 5ee28c4

Browse files
committed
REL: add long_description to setup.py
twine requires it for setting project description on PyPI.
1 parent 3029098 commit 5ee28c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

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

7777
versiondata = getversioncfg()
7878

79+
with open(os.path.join(MYDIR, 'README.rst')) as fp:
80+
long_description = fp.read()
81+
7982
# define distribution
8083
setup_args = dict(
8184
name = "diffpy.structure",
@@ -97,6 +100,8 @@ def getversioncfg():
97100
url = 'https://github.com/diffpy/diffpy.structure',
98101
description = "Crystal structure container "
99102
"and parsers for structure formats.",
103+
long_description = long_description,
104+
long_description_content_type = 'text/x-rst',
100105
license = 'BSD-style license',
101106
keywords = "crystal structure data storage CIF PDB",
102107
classifiers = [

0 commit comments

Comments
 (0)