Hi Jon,

I suspect it is not related with not using a package. The error
message simply says that Sphinx can't load pytest.
Please install pytest into your environment.

Note: Sphinx does not expect the document is a python package. So no
setup.py is needed.

Thanks,
Takeshi KOMIYA

2019年3月19日(火) 2:06 Jon Ro <[email protected]>:
>
> Hi everyone,
>
> Whenever I create a package, I used Sphinx to document the public classes. It 
> goes like that mostly:
>     .. autoclass:: my_package.my_class
>         :members:
>
>
>
> However, today I opened a new Python project. This project runs Integration 
> tests against couple of our services. Therefore - It's not a 'package' per 
> se. It doesn't have `setup.py`, because it's not going to be distributed. So 
> it's a git repo with `tests` folder, a `support` in it with methods I use. 
> This won't work:
>
>     .. automodule:: tests.support.my_support_file
>         :members:
>
>
> I'm getting the following error:
>
> WARNING: autodoc: failed to import module 'helper' from module 'support'; the 
> following exception was raised: No module named 'pytest'
>
>
> Is that a side effect of not using a package?  is there a way around it? or I 
> must have `setup.py` for Sphinx to work?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to