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 102
102
103
103
* .dll
104
104
105
+ README.rst
Original file line number Diff line number Diff line change 1
1
from setuptools import setup
2
2
import 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
+
3
20
4
21
with open ('dss/__init__.py' , 'r' ) as f :
5
22
match = re .search ("__version__ = '(.*?)'" , f .read ())
46
63
ext_package = "dss" ,
47
64
install_requires = ["cffi>=1.11.2" , "numpy>=1.0" ],
48
65
zip_safe = False ,
66
+ long_description = long_description ,
49
67
classifiers = [
50
68
'Intended Audience :: Science/Research' ,
51
69
'Intended Audience :: Education' ,
You can’t perform that action at this time.
0 commit comments