acoomans / flask-autodoc

Flask autodoc automatically creates an online documentation for your flask application.
MIT License
98 stars 49 forks source link

flask.ext.autodoc is deprecated, use flask_autodoc #38

Open argolo opened 6 years ago

argolo commented 6 years ago

As of Flask 0.11, most Flask extensions have transitioned to the new naming schema. The flask.ext.foo compatibility alias is still in Flask 0.11 but is now deprecated – you should use flask_foo.

jwg4 commented 6 years ago

@acoomans Is there any chance this could be merged? It is a simple fix, and there are three Pull Requests for this, which suggests a lot of people would like this warning to be removed.

komailo commented 6 years ago

any update?

kjohnsen commented 6 years ago

Please merge this...imports break in Flask 1.0.2

jpds commented 6 years ago

I've had to go around and disable autodoc on all my now Flask-1.0.2 microservices.

sdanbury commented 6 years ago

Getting the same issue now I have upgraded to Flask==1.0.2, anything I can do to help and get this through?

jwg4 commented 6 years ago

I have forked this package to get Flask-Selfdoc which is available at https://github.com/jwg4/flask-selfdoc and also via pip on the main pypi server. So far I have only made a couple of changes, including fixing this import problem, which causes a warning on versions of flask before 1.0.2 and fails with that version. Some more changes are in the pipeline, but the basic interface will remain completely compatible with code using Flask-Autodoc. Feedback, PRs gratefully received. Let me know if you have any trouble with it @sdanbury ;)

sdanbury commented 6 years ago

Thanks @jwg4, it looks like flask-selfdoc could be pretty much a drop-in replacement. I will have a look in more detail tomorrow.