Fix #5104: apidoc: Interface of sphinx.apidoc:main() has changed#5106
Fix #5104: apidoc: Interface of sphinx.apidoc:main() has changed#5106tk0miya merged 2 commits intosphinx-doc:1.7from
sphinx.apidoc:main() has changed#5106Conversation
|
Doesn't this suffer from the same problem that was fixed in #3668? Shouldn't it be |
|
|
|
@tk0miya Shouldn't both |
|
Yes, #3668 is incompatible change to past release. So this revert the change. The most important feature of |
|
Why revert #3668? It fixed an important bug where the first argument passed to |
|
The change of #3668 is merged into
I don't think this is not a bug. The main function is not public API. So there are no specification. |
|
Ah, I see. I guess I assumed that #3668 had been merged and released before 1.7.
Fair enough. Is |
It's not. The public APIs are listed in document: But it does not mean other functions are fragile. We'll work to keep all of functions stable. So please let me know if something goes wrong. |
|
If |
|
AFAIK, Anyway, your request is not related with this bug. So I'd like to merge this if this works fine. Could you move to new issue please? |
@adamjstewart try sphinx-contrib/apidoc. We're using this extensively in OpenStack until I can talk @tk0miya around into accepting #4101 😉
@tk0miya I'm afraid it's more complicated than that. There are big differences between |
FWIW, #3668 was necessary due to a change in how argparse and optparse work. That defaults to using |
Thanks for sharing @stephenfin. Glad to hear there are proper tools out there. Have been resorting to hacks like calling If it helps, @tk0miya, lots of people try to do something similar. ( readthedocs/readthedocs.org#1139 ) Am sure they would also appreciate proper support in Sphinx for this use case. :) |
|
In any event, would still be great to have this PR land. |
Codecov Report
@@ Coverage Diff @@
## 1.7 #5106 +/- ##
==========================================
+ Coverage 82.04% 82.05% +<.01%
==========================================
Files 283 288 +5
Lines 37825 38144 +319
Branches 5860 5914 +54
==========================================
+ Hits 31035 31298 +263
- Misses 5481 5528 +47
- Partials 1309 1318 +9
Continue to review full report at Codecov.
|
|
@stephenfin Thank you for your help. it was very helpful to me (because I'm very poor at English...) |
|
Merged. Thank you for your comment. Let's talk about the API or modules in another issue. I'll take a look #4101 later. Please wait a moment. |
Feature or Bugfix
Purpose