File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -28,30 +28,30 @@ Options
28
28
29
29
The following options can be set in conf.py:
30
30
31
- - numpydoc_use_plots: bool
31
+ - `` numpydoc_use_plots `` : bool
32
32
33
33
Whether to produce ``plot:: `` directives for Examples sections that
34
34
contain ``import matplotlib ``.
35
35
36
- - numpydoc_show_class_members: bool
36
+ - `` numpydoc_show_class_members `` : bool
37
37
38
38
Whether to show all members of a class in the Methods and Attributes
39
39
sections automatically.
40
40
``True `` by default.
41
41
42
- - numpydoc_show_inherited_class_members: bool
42
+ - `` numpydoc_show_inherited_class_members `` : bool
43
43
44
44
Whether to show all inherited members of a class in the Methods and Attributes
45
45
sections automatically. If it's false, inherited members won't shown.
46
46
``True `` by default.
47
47
48
- - numpydoc_class_members_toctree: bool
48
+ - `` numpydoc_class_members_toctree `` : bool
49
49
50
50
Whether to create a Sphinx table of contents for the lists of class
51
51
methods and attributes. If a table of contents is made, Sphinx expects
52
52
each entry to have a separate page.
53
53
``True `` by default.
54
54
55
- - numpydoc_edit_link: bool (DEPRECATED -- edit your HTML template instead)
55
+ - `` numpydoc_edit_link `` : bool (DEPRECATED -- edit your HTML template instead)
56
56
57
57
Whether to insert an edit link after docstrings.
Original file line number Diff line number Diff line change 1
1
from __future__ import division , print_function
2
2
3
3
import sys
4
+ import os
4
5
5
6
from distutils .command .sdist import sdist
6
7
import setuptools
15
16
version = line .strip ().split ()[- 1 ][1 :- 1 ]
16
17
break
17
18
19
+ def read (fname ):
20
+ """Utility function to get README.rst into long_description.
21
+
22
+ ``long_description`` is what ends up on the PyPI front page.
23
+ """
24
+ with open (os .path .join (os .path .dirname (__file__ ), fname )) as f :
25
+ contents = f .read ()
26
+
27
+ return contents
28
+
29
+
18
30
setup (
19
31
name = "numpydoc" ,
20
32
packages = ["numpydoc" ],
21
33
version = version ,
22
34
description = "Sphinx extension to support docstrings in Numpy format" ,
35
+ long_description = read ('README.rst' ),
23
36
# classifiers from http://pypi.python.org/pypi?%3Aaction=list_classifiers
24
37
classifiers = ["Development Status :: 4 - Beta" ,
25
38
"Environment :: Plugins" ,
You can’t perform that action at this time.
0 commit comments