@@ -65,6 +65,9 @@ def run(self):
6565 raise ValueError ("Version number '%s' is not valid (should match [N!]N(.N)*[{a|b|rc}N][.postN][.devN])" % current_version )
6666
6767
68+ with open (pjoin (here , 'README.md' )) as fid :
69+ LONG_DESCRIPTION = fid .read ()
70+
6871setup_args = dict (
6972 name = name ,
7073 version = current_version ,
@@ -76,11 +79,12 @@ def run(self):
7679 py_modules = ['ipykernel_launcher' ],
7780 package_data = package_data ,
7881 description = "IPython Kernel for Jupyter" ,
82+ long_description_content_type = "text/markdown" ,
7983 author = 'IPython Development Team' ,
80848185 url = 'https://ipython.org' ,
8286 license = 'BSD' ,
83- long_description = "The IPython kernel for Jupyter" ,
87+ long_description = LONG_DESCRIPTION ,
8488 platforms = "Linux, Mac OS X, Windows" ,
8589 keywords = ['Interactive' , 'Interpreter' , 'Shell' , 'Web' ],
8690 python_requires = '>=3.5' ,
@@ -112,6 +116,7 @@ def run(self):
112116
113117
114118if any (a .startswith (('bdist' , 'install' )) for a in sys .argv ):
119+ sys .path .insert (0 , here )
115120 from ipykernel .kernelspec import write_kernel_spec , make_ipkernel_cmd , KERNEL_NAME
116121
117122 # When building a wheel, the executable specified in the kernelspec is simply 'python'.
0 commit comments