-
Notifications
You must be signed in to change notification settings - Fork 247
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
Sphinx and autodoc #757
Comments
Hello and thanks for the report. |
It works with plugin_depends_on. As I understood the behavior of the 0.12 venv build architecture, this is normal because in this case, pandas is in the .pybuilder venv. |
Correct
|
Yes but in my case, I want my dependency to be a runtime dependency (installed when my package is installed) and I want it to be accessible while building my documentation. |
You can add
In this case you need that dependency in your tooling and at runtime. These are different considerations and adding both dependencies is totally valid. |
@mathPi how's it going? |
Hi, I didn't have time to continue on this subject.
|
You can't make sphinx plugin use build because then it won't find self. But sphinx may need to have access to build environment against which it is running so I may add a layer for sphinx python path. |
How do you think it can be ? |
I mean I would have to make a code change in a sphinx plugin. |
Hi,
I'm trying to make the transition from pybuilder 0.11.X to 0.12.X.
I have an issue with the documentation generation and especially the autodoc.
In my project I have dependencies to external libraries, like pandas. When generating the documentation, I have an issue : "No module named 'pandas'"
I looked at the sphinx plugin source code, and it looks like it uses the pybuilder virtual env. To be able to generate the autodoc, it would need an environment with the project dependencies.
Steps to reproduce:
Does someone have the same issue ? Did someone succeed to solve it ?
Thanks for you help.
The text was updated successfully, but these errors were encountered: