File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
1
# After changing this file, check it on:
2
2
# http://lint.travis-ci.org/
3
3
language : python
4
+ sudo : false
4
5
python :
5
6
- 3.3
6
7
- 2.7
8
+ cache :
9
+ directories :
10
+ - $HOME/.cache/pip
7
11
before_install :
8
12
- pip install --upgrade pip setuptools # Upgrade pip and setuptools to get ones with `wheel` support
9
- - pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel -- use-mirrors nose numpy matplotlib Sphinx
13
+ - pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --trusted-host wheels.astropy.org --trusted-host wheels2.astropy.org -- use-wheel nose numpy matplotlib Sphinx
10
14
script :
11
15
- python setup.py test
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def _str_member_list(self, name):
135
135
maxlen_0 = max (3 , max ([len (x [0 ]) for x in others ]))
136
136
hdr = sixu ("=" )* maxlen_0 + sixu (" " ) + sixu ("=" )* 10
137
137
fmt = sixu ('%%%ds %%s ' ) % (maxlen_0 ,)
138
- out += ['' , hdr ]
138
+ out += ['' , '' , hdr ]
139
139
for param , param_type , desc in others :
140
140
desc = sixu (" " ).join (x .strip () for x in desc ).strip ()
141
141
if param_type :
Original file line number Diff line number Diff line change @@ -802,6 +802,8 @@ def test_duplicate_signature():
802
802
Current time.
803
803
y : ndarray
804
804
Current variable values.
805
+ x : float
806
+ Some parameter
805
807
806
808
Methods
807
809
-------
@@ -837,6 +839,8 @@ def test_class_members_doc():
837
839
Current time.
838
840
y : ndarray
839
841
Current variable values.
842
+ x : float
843
+ Some parameter
840
844
841
845
Methods
842
846
-------
@@ -851,7 +855,13 @@ def test_class_members_doc():
851
855
""" )
852
856
853
857
def test_class_members_doc_sphinx ():
854
- doc = SphinxClassDoc (None , class_doc_txt )
858
+ class Foo :
859
+ @property
860
+ def x (self ):
861
+ """Test attribute"""
862
+ return None
863
+
864
+ doc = SphinxClassDoc (Foo , class_doc_txt )
855
865
non_blank_line_by_line_compare (str (doc ),
856
866
"""
857
867
Foo
@@ -872,6 +882,11 @@ def test_class_members_doc_sphinx():
872
882
873
883
.. rubric:: Attributes
874
884
885
+ .. autosummary::
886
+ :toctree:
887
+
888
+ x
889
+
875
890
=== ==========
876
891
t (float) Current time.
877
892
y (ndarray) Current variable values.
You can’t perform that action at this time.
0 commit comments