Skip to content

Add Doc/requirements.txt for Read the Docs build #260

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

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

encukou
Copy link
Member

@encukou encukou commented Jan 30, 2019

The documentation build uses docstrings from the code, and so it needs the code to be importable.
We already use a fake _ldap module for cases where the C compiler is not available, like on Read the Docs.

Another issue on Read the Docs is that the pyasn1 dependency needs to be installed. This can't be done automatically via setup.py install, as that would attempt to build C code.

Instead, add a documentation-only "requirements.txt", which we can point Read the Docs to.

The documentation build uses docstrings from the code, and so it
needs the code to be importable.
We already use a fake _ldap module for cases where the C compiler
is not available, like on Read the Docs.

Another issue on Read the Docs is that the pyasn1 dependency needs
to be installed. This can't be done automatically via setup.py
install, as that would attempt to build C code.

Instead, add a documentation-only "requirements.txt", which we can
point Read the Docs to.
@encukou
Copy link
Member Author

encukou commented Jan 30, 2019

I made a private docs build to verify this solves the problem.
This is not a code change and it's needed to get documentation building.
I am using my admin powers to merge without review.

@encukou encukou merged commit 7fb02c0 into python-ldap:master Jan 30, 2019
@encukou encukou deleted the doc-requirements branch January 30, 2019 17:09
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.

1 participant