File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,15 @@ def _get_source_files():
120120 yield os .path .join (root , filename )
121121
122122
123+ def _get_long_description ():
124+ """Helper to populate long_description for pypi releases"""
125+ try :
126+ import pypandoc
127+ return pypandoc .convert ('README.md' , 'rst' )
128+ except ImportError :
129+ return '.Net and Mono integration for Python'
130+
131+
123132class BuildExtPythonnet (build_ext .build_ext ):
124133 def build_extension (self , ext ):
125134 """Builds the .pyd file using msbuild or xbuild"""
@@ -364,6 +373,7 @@ def run(self):
364373 license = 'MIT' ,
365374 author = "The Python for .Net developers" ,
366375 setup_requires = setup_requires ,
376+ long_description = _get_long_description (),
367377 ext_modules = [
368378 Extension ("clr" , sources = list (_get_source_files ()))
369379 ],
You can’t perform that action at this time.
0 commit comments