Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dbapi_extension.py compatible with Sphinx 1.6 #599

Merged
merged 1 commit into from Oct 18, 2017

Conversation

mitya57
Copy link
Contributor

@mitya57 mitya57 commented Oct 12, 2017

In sphinx-doc/sphinx@1a821b89e9952fc2, the deprecated make_admonition() function was removed.

This pull request updates the code to use the modern API instead. Also Directive is imported from docutils.parsers.rst, as import from sphinx.util.compat is deprecated since sphinx-doc/sphinx@2df0bb8d03d05fe7.

In Sphinx commit 1a821b89e9952fc2, the deprecated make_admonition()
function was removed. This commit updates the code to use the modern
API instead.
@dvarrazzo
Copy link
Member

Hello,

thank you for your MR!

Could you please fix the doc/requirements.txt file to match the sphinx version required to build the docs?

Thank you very much

@mitya57
Copy link
Contributor Author

mitya57 commented Oct 12, 2017

It still works with older Sphinx too. Just old Sphinx contained some compat code for ancient docutils versions (like pre-2009), and new Sphinx does not.

@dvarrazzo dvarrazzo merged commit 1ccb61f into psycopg:master Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants