You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fisrst of all: it ins not possible use straight sphinx to build cleanly documentation out of source tree.
+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/manRunning Sphinx v4.5.0making output directory... doneloading intersphinx inventory from https://docs.python.org/3/objects.inv...building [mo]: targets for 0 po files that are out of datebuilding [man]: all manpagesupdating environment: [new config] 4 added, 0 changed, 0 removedreading sources... [100%] indexWARNING: autodoc: failed to import function 'connect' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import class 'Connection' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import class 'cursor.Cursor' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import exception 'Warning' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import exception 'Error' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import exception 'DatabaseError' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import exception 'IntegrityError' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import exception 'ProgrammingError' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import exception 'OperationalError' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import exception 'NotSupportedError' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import function 'register_adapter' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'WARNING: autodoc: failed to import function 'register_converter' from module 'aiosqlite'; the following exception was raised:No module named 'aiosqlite'CONTRIBUTING.md:34: WARNING: Inline emphasis start-string without end-string.looking for now-outdated files... none foundpickling environment... donechecking consistency... donewriting... python-aiosqlite.3 { api changelog contributing } donebuild succeeded, 13 warnings.
This issue can be fixed by patch like below:
--- a/docs/conf.py~ 2022-04-30 11:25:41.000000000 +0000+++ b/docs/conf.py 2022-04-30 11:26:27.942119042 +0000@@ -10,9 +10,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
-# import os-# import sys-# sys.path.insert(0, os.path.abspath('.'))+import os+import sys+sys.path.insert(0, os.path.abspath('..'))
# -- Project information -----------------------------------------------------
That patch does exacly what is mentioned in comment above modified lines.
Than .. on building my packages I'm using sphinx-build command with -n switch which shows warmings about missing references. These are not critical issues.
Here is the output with warnings:
[tkloczko@devel-g2v aiosqlite-0.17.0]$ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/manRunning Sphinx v4.5.0loading pickled environment... donebuilding [mo]: targets for 0 po files that are out of datebuilding [man]: all manpagesupdating environment: 0 added, 1 changed, 0 removedreading sources... [100%] apilooking for now-outdated files... none foundpickling environment... donechecking consistency... donewriting... python-aiosqlite.3 { api changelog contributing } /home/tkloczko/rpmbuild/BUILD/aiosqlite-0.17.0/aiosqlite/core.py:docstring of aiosqlite.core.connect:: WARNING: py:class reference target not found: asyncio.events.AbstractEventLoop/home/tkloczko/rpmbuild/BUILD/aiosqlite-0.17.0/aiosqlite/core.py:docstring of aiosqlite.core.Connection:: WARNING: py:class reference target not found: asyncio.events.AbstractEventLoopdonebuild succeeded, 2 warnings.
The text was updated successfully, but these errors were encountered:
re: building docs, the expected workflow is to run make html, which will generate a virtualenv with the supprted version of sphinx, and install aiosqlite appropriately so that sphinx can find it.
re: warnings, thank you, I’ll add -n to the make rules, and see about fixing the missing references. 🍻
Outside python domain it is typical that documentation is generated out of source tree and not out of installed stuff. That patch fixes that.
Other thing is that it tox execution takes time to assemply venv. That is not necessry and more complicated .. KISS principle.
That patch as well guarantees that documentation will be generated out of source tree and not out of installed module.
Fisrst of all: it ins not possible use straight sphinx to build cleanly documentation out of source tree.
This issue can be fixed by patch like below:
That patch does exacly what is mentioned in comment above modified lines.
Than .. on building my packages I'm using
sphinx-build
command with-n
switch which shows warmings about missing references. These are not critical issues.Here is the output with warnings:
The text was updated successfully, but these errors were encountered: