| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -120,6 +120,15 @@ def _get_source_files(): | |||
| 120 | 120 | yield os.path.join(root, filename) | |
| 121 | 121 | ||
| 122 | 122 | ||
| 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 | + | ||
| 123 | 132 | class BuildExtPythonnet(build_ext.build_ext): | |
| 124 | 133 | def build_extension(self, ext): | |
| 125 | 134 | """Builds the .pyd file using msbuild or xbuild""" | |
@@ -364,6 +373,7 @@ def run(self): | |||
| 364 | 373 | license='MIT', | |
| 365 | 374 | author="The Python for .Net developers", | |
| 366 | 375 | setup_requires=setup_requires, | |
| 376 | + long_description=_get_long_description(), | ||
| 367 | 377 | ext_modules=[ | |
| 368 | 378 | Extension("clr", sources=list(_get_source_files())) | |
| 369 | 379 | ], | |
| Back | FazBrowse Home | New Git URL |
0 commit comments