Skip to content

Solves #1061 and #1656 - #1663

Closed
lsaffre wants to merge 5 commits into
sphinx-doc:masterfrom
lsaffre:master
Closed

Solves #1061 and #1656#1663
lsaffre wants to merge 5 commits into
sphinx-doc:masterfrom
lsaffre:master

Conversation

@lsaffre

@lsaffre lsaffre commented Jan 3, 2015

Copy link
Copy Markdown
Contributor

This solves #1061 and #1656, at least for me and as far as i tried.
See also http://lino-framework.org/blog/2015/0103.html
Sorry for an accidental changeset (and a second one to revert it).

@shimizukawa

Copy link
Copy Markdown
Member

Thanks for contribution! However, the change makes errors. Please check the test result.

Comment thread sphinx/ext/autodoc.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the cause of the test failures: the angle brackets are added compared to the old return value.

I think it's better readable with angle brackets, but:

  • test should be adapted
  • angle brackets should also be added in the next line for consistency

@lsaffre

lsaffre commented Jan 4, 2015

Copy link
Copy Markdown
Contributor Author

Thanks Georg for finding the reason (i had no idea where to start searching). Yes, brackets might be more readable, but for me it works without them.

@lsaffre

lsaffre commented Jan 4, 2015

Copy link
Copy Markdown
Contributor Author

Now the tests fail only on Python 3 where they say "nose.proxy.NameError: global name 'unicode' is not defined". Any suggestions how to solve this?

Comment thread sphinx/ext/autodoc.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 3 lines change is a cause of test failing on Py3. text_type is a compatibility type for py2 unicode and py3 str. please revert this 3 lines.

@lsaffre

lsaffre commented Jan 4, 2015

Copy link
Copy Markdown
Contributor Author

Thanks, Takayuki, for your hint!

@birkenfeld

Copy link
Copy Markdown
Member

Looks good to me now.

@birkenfeld

Copy link
Copy Markdown
Member

BTW, now with git it's easier to remove unwanted changesets. Just to a git rebase -i, remove the offending commits, and then push with -f. Github will automatically update the pull request.

@lsaffre

lsaffre commented Jan 5, 2015

Copy link
Copy Markdown
Contributor Author

Thanks, Georg, for your hint about |git rebase|. I tried it but without success... must say that this would have been my first rebase... details in my blog http://lino-framework.org/blog/2015/0105.html

@birkenfeld

Copy link
Copy Markdown
Member

Well, looking at your blog entry, there are two snags:

  • git needs EDITOR to return only when the edit is completed. I don't think this can be changed, but I assume that it's possible to set a different editor executable.
  • the argument to the rebase is the head of the commits that should not be touched. Commits between that and HEAD will be offered for rebase. When you do rebase -i master on the master branch, it's a noop since there are no commits between master and master :) Usually the argument will be origin/master (rebase/edit commits made relative to upstream repository's branch), or a different branch (rebase commits onto the specified branch).

@birkenfeld

Copy link
Copy Markdown
Member

Merged manually, thanks!

@birkenfeld birkenfeld closed this Jan 6, 2015
@birkenfeld

Copy link
Copy Markdown
Member

See 21b8384

Note that it retained your author info, another nice bit in git.

@lsaffre

lsaffre commented Jan 6, 2015

Copy link
Copy Markdown
Contributor Author

Nice, I am part of Sphinx's history :-) Thanks, Georg and Takayuki, for
your help and sorry for my slowness (so many other urgent projects).

Luc

On 06/01/15 19:19, Georg Brandl wrote:

See 21b8384
21b8384

Note that it retained your author info, another nice bit in git.


Reply to this email directly or view it on GitHub
#1663 (comment).

shimizukawa added a commit that referenced this pull request Jul 5, 2015
FIX: Only check if members is True. closes #1822, refs #1891, #1828, #1061, #1663
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants