Skip to content

Commit

Permalink
Fix coverage problem and add newsfragments.
Browse files Browse the repository at this point in the history
BTW, fix a bug in pyproject.toml
  • Loading branch information
Sraw committed Jul 25, 2018
1 parent ce4cf6d commit a059540
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/13.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix autodoc_member_order="bysource" doesn't work for async methods.
1 change: 1 addition & 0 deletions newsfragments/14.removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove support for sphinx<1.6.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# customize this)
# - At release time after bumping version number, run: towncrier
# (or towncrier --draft)
package = "sphinxcontrib-trio"
package = "sphinxcontrib_trio"
filename = "docs/source/index.rst"
directory = "newsfragments"
underlines = ["+", "~", "^"]
Expand Down
1 change: 1 addition & 0 deletions sphinxcontrib_trio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def setup(app):
# A monkey-patch to VariableCommentPicker to make autodoc_member_order = 'bysource' work.
from sphinx.pycode.parser import VariableCommentPicker

# pragma: no cover
if not hasattr(VariableCommentPicker, "visit_AsyncFunctionDef"):
VariableCommentPicker.visit_AsyncFunctionDef = VariableCommentPicker.visit_FunctionDef

Expand Down

0 comments on commit a059540

Please sign in to comment.