Skip to content

Mock C extension module: the case of Pyqt #2093

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

Closed
SylvainCorlay opened this issue Mar 27, 2016 · 2 comments
Closed

Mock C extension module: the case of Pyqt #2093

SylvainCorlay opened this issue Mar 27, 2016 · 2 comments
Labels
Support Support question

Comments

@SylvainCorlay
Copy link

I have not been able to successfully make shims for PyQt. (Some projects shim some of the pyqt submodules but not all of it.)

I imagine that the special case of pyqt (4 or 5) is sufficiently common for it to be useful for other people, hence the issue.

Is there anyone who has a good example of how to mock pyqt for readthedocs? Would it be in scope for readthedocs to handle pyqt?

@agjohnson
Copy link
Contributor

I have thought about an extension that provided automatic mocking for common modules that require mocking. It's nothing I've ever bothered to write though. It would still require the user not install those dependencies first, which is where most users hit issues in the first place.

I've also thought maybe RTD should inspect dependencies and warn, but that's definitely a ways off our current roadmap.

To successfully mock out qt dependencies, make sure you aren't setting any qt dependencies via setup.py and/or requirements.txt. You should be able to mock out the modules normally, afaik.

@agjohnson agjohnson added the Support Support question label Apr 8, 2016
@humitos
Copy link
Member

humitos commented Dec 28, 2017

Hi @SylvainCorlay! I wanted to check with you if you still have this issue? If you already solve it, can you please share your solution?

Besides, I found similar situation on these issues #2387 and #2511 that you may find useful.

I'm closing this issue since it's quite old and there was no updates. Please, feel free to reopen it if you consider.

@humitos humitos closed this as completed Dec 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

3 participants