I created a python library which depends on pypiwin32 package. For some functionality, they use _winreg
package. It works on Windows, however RTD virtualenv is not running on Windows and this package is not available. Since it is part of python itself and not on pypi, there is no way I could make it a dependency.
Each time i build docs from source code, it fails on missing the _winreg
package.
I tried to remove dependency on pypiwin32
only for RTD with something like this in setup.py:
if os.environ.get('READTHEDOCS') == 'True':
REQUIRED = []
else:
REQUIRED = [
"pypiwin32"
]
It works for all .rst Sphinx files. On the other hand, no documentation for functions is generated. On local machine (Windows) everything is properly documented.
Note: Read the docs documentation is generated from rtd branch of my github project.
Is there any workaround for this?
Thank you.