File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 102102
103103* .dll
104104
105+ README.rst
Original file line number Diff line number Diff line change 11from setuptools import setup
22import re , sys , shutil , os
3+ import subprocess
4+
5+ # Convert README.md to RST for PyPi -- copied from (CC0) https://github.com/dhimmel/hetio
6+ # Thank you, Daniel Himmelstein (dhimmel)!
7+
8+ # Try to create an rst long_description from README.md
9+ try :
10+ args = 'pandoc' , '--to' , 'rst' , 'README.md'
11+ long_description = subprocess .check_output (args )
12+ long_description = long_description .decode ()
13+ except Exception as error :
14+ print ('README.md conversion to reStructuredText failed. Error:' )
15+ print (error )
16+ print ('Setting long_description to None.' )
17+ long_description = None
18+
19+
320
421with open ('dss/__init__.py' , 'r' ) as f :
522 match = re .search ("__version__ = '(.*?)'" , f .read ())
4663 ext_package = "dss" ,
4764 install_requires = ["cffi>=1.11.2" , "numpy>=1.0" ],
4865 zip_safe = False ,
66+ long_description = long_description ,
4967 classifiers = [
5068 'Intended Audience :: Science/Research' ,
5169 'Intended Audience :: Education' ,
You can’t perform that action at this time.
0 commit comments