zopefoundation / persistent

automatic persistence for Python objects
https://pypi.org/project/persistent/
Other
46 stars 28 forks source link

4.9.0: sphinx warnings `reference target not found` #173

Closed kloczek closed 2 months ago

kloczek commented 2 years ago

First of all currently it is not possible to use straight sphinx-build command to build documentation out of source tree

```console + /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man Running Sphinx v5.0.1 making output directory... done WARNING: html_static_path entry '_static' does not exist loading intersphinx inventory from https://docs.python.org/objects.inv... intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv building [mo]: targets for 0 po files that are out of date building [man]: all manpages updating environment: [new config] 10 added, 0 changed, 0 removed reading sources... [100%] using WARNING: autodoc: failed to import class 'mapping.PersistentMapping' from module 'persistent'; the following exception was raised: No module named 'persistent' WARNING: autodoc: failed to import class 'list.PersistentList' from module 'persistent'; the following exception was raised: No module named 'persistent' WARNING: autodoc: failed to import module 'interfaces' from module 'persistent'; the following exception was raised: No module named 'persistent' WARNING: autodoc: failed to import class 'Persistent' from module 'persistent'; the following exception was raised: No module named 'persistent' looking for now-outdated files... none found pickling environment... done checking consistency... done writing... python-persistent.3 { using api api/interfaces api/collections api/attributes api/pickling api/cache changes glossary } /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/index.rst:1: WARNING: py:mod reference target not found: persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:2: WARNING: py:mod reference target not found: persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:6: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:9: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:88: WARNING: py:attr reference target not found: _p_changed /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:99: WARNING: py:attr reference target not found: _p_state /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:109: WARNING: py:attr reference target not found: _p_jar /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:117: WARNING: py:attr reference target not found: _p_oid /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:210: WARNING: py:class reference target not found: PersistentList /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:210: WARNING: py:class reference target not found: PersistentMapping /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_activate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_deactivate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_invalidate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:328: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:412: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:423: WARNING: py:meth reference target not found: __getattribute__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:417: WARNING: py:meth reference target not found: persistent.IPersistent._p_getattr /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:432: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:426: WARNING: py:meth reference target not found: persistent.IPersistent._p_setattr /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:441: WARNING: py:meth reference target not found: __delattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:435: WARNING: py:meth reference target not found: persistent.IPersistent._p_delattr /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:446: WARNING: py:meth reference target not found: __getattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api.rst:1: WARNING: py:mod reference target not found: persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/interfaces.rst:1: WARNING: py:mod reference target not found: persistent.interfaces /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/interfaces.rst:21: WARNING: py:class reference target not found: IPersistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:4: WARNING: py:meth reference target not found: __getattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:46: WARNING: py:meth reference target not found: __getattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __getattribute__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __delattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:68: WARNING: py:meth reference target not found: __getattribute__` /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:71: WARNING: py:meth reference target not found: __getattribute__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:128: WARNING: py:meth reference target not found: __setattr__` /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:131: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:135: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:208: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:222: WARNING: py:meth reference target not found: __delattr__` /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:229: WARNING: py:meth reference target not found: __delattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:298: WARNING: py:meth reference target not found: __delattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __getnewargs__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __getstate__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __setstate__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:76: WARNING: py:attr reference target not found: __slots__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:125: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:125: WARNING: py:attr reference target not found: __slots /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:7: WARNING: py:class reference target not found: persistent.interfaces.IPeristent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:11: WARNING: py:meth reference target not found: _p_deactivate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:11: WARNING: py:meth reference target not found: _p_invalidate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:14: WARNING: py:attr reference target not found: _p_changed /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:14: WARNING: py:meth reference target not found: _p_deactivate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:16: WARNING: py:attr reference target not found: _p_changed /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:16: WARNING: py:meth reference target not found: _p_invalidate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:33: WARNING: py:meth reference target not found: new_ghost done build succeeded, 58 warnings. ```

First part of warnings can be fixed by patch like below:

--- a/docs/conf.py~     2022-03-10 06:52:53.000000000 +0000
+++ b/docs/conf.py      2022-06-13 22:30:57.149489504 +0000
@@ -16,7 +16,7 @@
 # If extensions (or modules to document with autodoc) are in another directory,
 # 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.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath("../src"))

 # -- General configuration -----------------------------------------------------

This patch fixes what is in the comment and that can of fix is suggested in sphinx example copy.py https://www.sphinx-doc.org/en/master/usage/configuration.html#example-of-configuration-file

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.

```console + /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man Running Sphinx v5.0.1 making output directory... done WARNING: html_static_path entry '_static' does not exist loading intersphinx inventory from https://docs.python.org/objects.inv... intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv building [mo]: targets for 0 po files that are out of date building [man]: all manpages updating environment: [new config] 10 added, 0 changed, 0 removed reading sources... [100%] using WARNING: autodoc: failed to import class 'mapping.PersistentMapping' from module 'persistent'; the following exception was raised: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/src/persistent/__init__.py) WARNING: autodoc: failed to import class 'list.PersistentList' from module 'persistent'; the following exception was raised: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/src/persistent/__init__.py) WARNING: autodoc: failed to import class 'Persistent' from module 'persistent'; the following exception was raised: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/src/persistent/__init__.py) looking for now-outdated files... none found pickling environment... done checking consistency... done writing... python-persistent.3 { using api api/interfaces api/collections api/attributes api/pickling api/cache changes glossary } /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/index.rst:1: WARNING: py:mod reference target not found: persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:2: WARNING: py:mod reference target not found: persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:6: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:9: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:88: WARNING: py:attr reference target not found: _p_changed /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:99: WARNING: py:attr reference target not found: _p_state /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:109: WARNING: py:attr reference target not found: _p_jar /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:117: WARNING: py:attr reference target not found: _p_oid /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:210: WARNING: py:class reference target not found: PersistentList /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:210: WARNING: py:class reference target not found: PersistentMapping /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_activate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_deactivate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_invalidate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:328: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:412: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:423: WARNING: py:meth reference target not found: __getattribute__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:417: WARNING: py:meth reference target not found: persistent.IPersistent._p_getattr /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:432: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:426: WARNING: py:meth reference target not found: persistent.IPersistent._p_setattr /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:441: WARNING: py:meth reference target not found: __delattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:435: WARNING: py:meth reference target not found: persistent.IPersistent._p_delattr /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/using.rst:446: WARNING: py:meth reference target not found: __getattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api.rst:1: WARNING: py:mod reference target not found: persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:4: WARNING: py:meth reference target not found: __getattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:46: WARNING: py:meth reference target not found: __getattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __getattribute__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __delattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:68: WARNING: py:meth reference target not found: __getattribute__` /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:71: WARNING: py:meth reference target not found: __getattribute__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:128: WARNING: py:meth reference target not found: __setattr__` /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:131: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:135: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:208: WARNING: py:meth reference target not found: __setattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:222: WARNING: py:meth reference target not found: __delattr__` /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:229: WARNING: py:meth reference target not found: __delattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/attributes.rst:298: WARNING: py:meth reference target not found: __delattr__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __getnewargs__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __getstate__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __setstate__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:76: WARNING: py:attr reference target not found: __slots__ /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:125: WARNING: py:class reference target not found: persistent.Persistent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/pickling.rst:125: WARNING: py:attr reference target not found: __slots /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:7: WARNING: py:class reference target not found: persistent.interfaces.IPeristent /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:11: WARNING: py:meth reference target not found: _p_deactivate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:11: WARNING: py:meth reference target not found: _p_invalidate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:14: WARNING: py:attr reference target not found: _p_changed /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:14: WARNING: py:meth reference target not found: _p_deactivate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:16: WARNING: py:attr reference target not found: _p_changed /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:16: WARNING: py:meth reference target not found: _p_invalidate /home/tkloczko/rpmbuild/BUILD/persistent-4.9.0/docs/api/cache.rst:33: WARNING: py:meth reference target not found: new_ghost done build succeeded, 55 warnings. ```

You can peak on fixes that kind of issues in other projects https://github.com/latchset/jwcrypto/pull/289 https://github.com/click-contrib/sphinx-click/commit/abc31069 https://github.com/latchset/jwcrypto/pull/289 https://github.com/RDFLib/rdflib-sqlalchemy/issues/95 https://github.com/sissaschool/elementpath/commit/bf869d9e https://github.com/jaraco/cssutils/issues/21

dataflake commented 2 months ago

The Sphinx configuration has changed dramatically and this is no longer applicable.

kloczek commented 2 months ago

Just checked master and still that patch is not added and still I see he same warnings

```console + /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man Running Sphinx v8.0.2 loading translations [en]... done making output directory... done WARNING: html_static_path entry '_static' does not exist building [mo]: targets for 0 po files that are out of date writing output... building [man]: all manpages updating environment: [new config] 10 added, 0 changed, 0 removed reading sources... [100%] using WARNING: autodoc: failed to import class 'mapping.PersistentMapping' from module 'persistent'; the following exception was raised: No module named 'persistent' [autodoc.import_object] WARNING: autodoc: failed to import class 'list.PersistentList' from module 'persistent'; the following exception was raised: No module named 'persistent' [autodoc.import_object] WARNING: autodoc: failed to import module 'interfaces' from module 'persistent'; the following exception was raised: No module named 'persistent' [autodoc.import_object] WARNING: autodoc: failed to import class 'Persistent' from module 'persistent'; the following exception was raised: No module named 'persistent' [autodoc.import_object] looking for now-outdated files... none found pickling environment... done checking consistency... done writing... python-persistent.3 { using api api/interfaces api/collections api/attributes api/pickling api/cache changes glossary } /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/index.rst:1: WARNING: py:mod reference target not found: persistent [ref.mod] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:2: WARNING: py:mod reference target not found: persistent [ref.mod] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:6: WARNING: py:class reference target not found: persistent.Persistent [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:9: WARNING: py:class reference target not found: persistent.Persistent [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:88: WARNING: py:attr reference target not found: _p_changed [ref.attr] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:99: WARNING: py:attr reference target not found: _p_state [ref.attr] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:109: WARNING: py:attr reference target not found: _p_jar [ref.attr] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:117: WARNING: py:attr reference target not found: _p_oid [ref.attr] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:210: WARNING: py:class reference target not found: PersistentList [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:210: WARNING: py:class reference target not found: PersistentMapping [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_activate [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_deactivate [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:219: WARNING: py:meth reference target not found: persistent.Persistent._p_invalidate [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:328: WARNING: py:class reference target not found: persistent.Persistent [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:412: WARNING: py:class reference target not found: persistent.Persistent [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:423: WARNING: py:meth reference target not found: __getattribute__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:417: WARNING: py:meth reference target not found: persistent.IPersistent._p_getattr [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:432: WARNING: py:meth reference target not found: __setattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:426: WARNING: py:meth reference target not found: persistent.IPersistent._p_setattr [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:441: WARNING: py:meth reference target not found: __delattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:435: WARNING: py:meth reference target not found: persistent.IPersistent._p_delattr [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/using.rst:446: WARNING: py:meth reference target not found: __getattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api.rst:1: WARNING: py:mod reference target not found: persistent [ref.mod] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/interfaces.rst:1: WARNING: py:mod reference target not found: persistent.interfaces [ref.mod] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/interfaces.rst:21: WARNING: py:class reference target not found: IPersistent [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:4: WARNING: py:meth reference target not found: __getattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:46: WARNING: py:meth reference target not found: __getattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __getattribute__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __setattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:52: WARNING: py:meth reference target not found: __delattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:68: WARNING: py:meth reference target not found: __getattribute__` [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:71: WARNING: py:meth reference target not found: __getattribute__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:128: WARNING: py:meth reference target not found: __setattr__` [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:131: WARNING: py:meth reference target not found: __setattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:135: WARNING: py:meth reference target not found: __setattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:208: WARNING: py:meth reference target not found: __setattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:222: WARNING: py:meth reference target not found: __delattr__` [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:229: WARNING: py:meth reference target not found: __delattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/attributes.rst:298: WARNING: py:meth reference target not found: __delattr__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __getnewargs__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __getstate__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/pickling.rst:44: WARNING: py:meth reference target not found: __setstate__ [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/pickling.rst:76: WARNING: py:attr reference target not found: __slots__ [ref.attr] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/pickling.rst:125: WARNING: py:class reference target not found: persistent.Persistent [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/pickling.rst:125: WARNING: py:attr reference target not found: __slots [ref.attr] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/cache.rst:7: WARNING: py:class reference target not found: persistent.interfaces.IPeristent [ref.class] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/cache.rst:11: WARNING: py:meth reference target not found: _p_deactivate [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/cache.rst:11: WARNING: py:meth reference target not found: _p_invalidate [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/cache.rst:14: WARNING: py:attr reference target not found: _p_changed [ref.attr] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/cache.rst:14: WARNING: py:meth reference target not found: _p_deactivate [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/cache.rst:16: WARNING: py:attr reference target not found: _p_changed [ref.attr] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/cache.rst:16: WARNING: py:meth reference target not found: _p_invalidate [ref.meth] /home/tkloczko/rpmbuild/BUILD/persistent-6.0/docs/api/cache.rst:33: WARNING: py:meth reference target not found: new_ghost [ref.meth] done build succeeded, 58 warnings. ```

All because none changes abut typing has been added.

kloczek commented 2 months ago

On top of that looks like with what is on master pytest is failing

```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-persistent-6.0-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-persistent-6.0-2.fc37.x86_64/usr/lib/python3.10/site-packages + /usr/bin/pytest -ra -m 'not network' ==================================================================================== test session starts ==================================================================================== platform linux -- Python 3.10.14, pytest-8.2.2, pluggy-1.5.0 rootdir: /home/tkloczko/rpmbuild/BUILD/persistent-6.0 plugins: mock-3.14.0 collected 0 items / 10 errors ========================================================================================== ERRORS =========================================================================================== ___________________________________________________________________ ERROR collecting src/persistent/tests/test__compat.py ___________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test__compat.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) ________________________________________________________________ ERROR collecting src/persistent/tests/test_compile_flags.py ________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_compile_flags.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) ____________________________________________________________________ ERROR collecting src/persistent/tests/test_docs.py _____________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_docs.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) ____________________________________________________________________ ERROR collecting src/persistent/tests/test_list.py _____________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_list.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) ___________________________________________________________________ ERROR collecting src/persistent/tests/test_mapping.py ___________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_mapping.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) _________________________________________________________________ ERROR collecting src/persistent/tests/test_persistence.py _________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_persistence.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) _________________________________________________________________ ERROR collecting src/persistent/tests/test_picklecache.py _________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_picklecache.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) ____________________________________________________________________ ERROR collecting src/persistent/tests/test_ring.py _____________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_ring.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) __________________________________________________________________ ERROR collecting src/persistent/tests/test_timestamp.py __________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_timestamp.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) ____________________________________________________________________ ERROR collecting src/persistent/tests/test_wref.py _____________________________________________________________________ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/tests/test_wref.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) src/persistent/__init__.py:36: in from persistent import picklecache as _picklecache src/persistent/picklecache.py:29: in from persistent.ring import Ring src/persistent/ring.py:18: in from persistent import _ring E ImportError: cannot import name '_ring' from partially initialized module 'persistent' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/persistent-6.0/src/persistent/__init__.py) ================================================================================== short test summary info ================================================================================== ERROR src/persistent/tests/test__compat.py ERROR src/persistent/tests/test_compile_flags.py ERROR src/persistent/tests/test_docs.py ERROR src/persistent/tests/test_list.py ERROR src/persistent/tests/test_mapping.py ERROR src/persistent/tests/test_persistence.py ERROR src/persistent/tests/test_picklecache.py ERROR src/persistent/tests/test_ring.py ERROR src/persistent/tests/test_timestamp.py ERROR src/persistent/tests/test_wref.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ==================================================================================== 10 errors in 0.29s ===================================================================================== ```
dataflake commented 2 months ago

The supported way to build the docs is using tox, the tox docs configuration sets up everything and the documentation builds without errors.

We do not use pytest and do not guarantee compatibility with it.

kloczek commented 2 months ago

Those warnings have nothing to do with tox. It is pure result of use -i option.

kloczek commented 1 month ago

Gentle ping .. did you try to add to tox.ini -i option like blow?

--- a/tox.ini
+++ b/tox.ini
@@ -80,5 +80,5 @@
 skip_install = false
 commands_pre =
 commands =
-    sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
-    sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
+    sphinx-build -b html -i -d docs/_build/doctrees docs docs/_build/html
+    sphinx-build -b doctest -i -d docs/_build/doctrees docs docs/_build/doctest
kloczek commented 1 month ago

Additionally warnings

WARNING: autodoc: failed to import class 'mapping.PersistentMapping' from module 'persistent'; the following exception was raised:
No module named 'persistent' [autodoc.import_object]
WARNING: autodoc: failed to import class 'list.PersistentList' from module 'persistent'; the following exception was raised:
No module named 'persistent' [autodoc.import_object]
WARNING: autodoc: failed to import module 'interfaces' from module 'persistent'; the following exception was raised:
No module named 'persistent' [autodoc.import_object]
WARNING: autodoc: failed to import class 'Persistent' from module 'persistent'; the following exception was raised:
No module named 'persistent' [autodoc.import_object]

Seems related to issues reported by pytest https://github.com/zopefoundation/persistent/issues/172

dataflake commented 1 month ago

The tox run works and shows no warnings:

$ bin/tox -edocs
docs: install_deps> python -I -m pip install 'setuptools<74'
.pkg: install_requires> python -I -m pip install 'setuptools<74'
.pkg: _optional_hooks> python /Users/jens/src/zope/persistent/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python /Users/jens/src/zope/persistent/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: install_requires_for_build_sdist> python -I -m pip install 'cffi; platform_python_implementation == "CPython"' 'cffi>=1.17.0rc1; platform_python_implementation == "CPython" and python_version >= "3.13a0"'
.pkg: get_requires_for_build_wheel> python /Users/jens/src/zope/persistent/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: install_requires_for_build_wheel> python -I -m pip install 'cffi; platform_python_implementation == "CPython"' 'cffi>=1.17.0rc1; platform_python_implementation == "CPython" and python_version >= "3.13a0"'
.pkg: prepare_metadata_for_build_wheel> python /Users/jens/src/zope/persistent/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: build_sdist> python /Users/jens/src/zope/persistent/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
docs: install_package_deps> python -I -m pip install Sphinx 'cffi; platform_python_implementation == "CPython"' 'cffi>=1.17.0rc1; platform_python_implementation == "CPython" and python_version >= "3.13a0"' manuel repoze.sphinx.autointerface sphinx-rtd-theme zope.deferredimport zope.interface zope.testrunner
docs: install_package> python -I -m pip install --force-reinstall --no-deps /Users/jens/src/zope/persistent/.tox/.tmp/package/1/persistent-6.2.dev0.tar.gz
docs: commands[0]> sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
Running Sphinx v7.4.7
loading translations [en]... done
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 10 source files that are out of date
updating environment: 0 added, 3 changed, 0 removed
reading sources... [100%] changes
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets...
copying static files... done
copying extra files... done
copying assets: done
writing output... [100%] using
generating indices... genindex py-modindex done
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in docs/_build/html.
docs: commands[1]> sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
Running Sphinx v7.4.7
loading translations [en]... done
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
writing output...
building [doctest]: targets for 10 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
reading sources...
looking for now-outdated files... none found
running tests...

Document: api/attributes
------------------------
1 items passed all tests:
  80 tests in default
80 tests in 1 items.
80 passed and 0 failed.
Test passed.

Document: using
---------------
1 items passed all tests:
  97 tests in default
97 tests in 1 items.
97 passed and 0 failed.
Test passed.

Document: api/pickling
----------------------
1 items passed all tests:
  68 tests in default
68 tests in 1 items.
68 passed and 0 failed.
Test passed.

Document: api/cache
-------------------
1 items passed all tests:
  11 tests in default
11 tests in 1 items.
11 passed and 0 failed.
Test passed.

Doctest summary
===============
  256 tests
    0 failures in tests
    0 failures in setup code
    0 failures in cleanup code
build succeeded.

Testing of doctests in the sources finished, look at the results in docs/_build/doctest/output.txt.
  docs: OK (10.76=setup[8.77]+cmd[1.78,0.20] seconds)
  congratulations :) (10.79 seconds)
kloczek commented 1 month ago

The tox run works and shows no warnings:

Please add in tox configuration to run sphinx-build with additional option -i and you will be able to see all those warnings.

dataflake commented 1 month ago

Building the docs with tox -edocs is the supported way of building the docs for this package and it works without error or warning. There is no point in exploring an unsupported way of building the docs.

kloczek commented 1 month ago

Again .. tox docs target is not using -i param in sphinh-build command. PLEASE try to use below patch ad rerun tox


--- a/tox.ini
+++ b/tox.ini
@@ -80,5 +80,5 @@
 skip_install = false
 commands_pre =
 commands =
-    sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
-    sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
+    sphinx-build -b -i html -d docs/_build/doctrees docs docs/_build/html
+    sphinx-build -b -i doctest -d docs/_build/doctrees docs docs/_build/doctest
``
dataflake commented 1 month ago

There is no point breaking the working tox invocation by adding flags. Please stop posting about it.

kloczek commented 1 month ago

This is not about breaking anything. Those warnings shows in which one places in for example htlm, pdq, qch and probably fe other places there is only highlighted keyword without link. Really PLEAE check html output using web browser. I'm generating roff output (man page) so I'm not affected by those warnings however any other output with hyperlinks is affected by those warnings.

dataflake commented 1 month ago

OK, I applied your changes as you proposed them.

First try:

...
docs: commands[0]> sphinx-build -b -i html -d docs/_build/doctrees docs docs/_build/html
usage: sphinx-build [OPTIONS] SOURCEDIR OUTPUTDIR [FILENAMES...]
sphinx-build: error: argument --builder/-b: expected one argument
docs: exit 2 (0.17 seconds) /Users/jens/src/zope/persistent> sphinx-build -b -i html -d docs/_build/doctrees docs docs/_build/html pid=92853
  docs: FAIL code 2 (4.41=setup[4.24]+cmd[0.17] seconds)
  evaluation failed :( (4.47 seconds)

So obviously the -i cannot be right after -b. Second try:

...
docs: commands[0]> sphinx-build -i -b html -d docs/_build/doctrees docs docs/_build/html
usage: sphinx-build [OPTIONS] SOURCEDIR OUTPUTDIR [FILENAMES...]
sphinx-build: error: unrecognized arguments: -i
docs: exit 2 (0.09 seconds) /Users/jens/src/zope/persistent> sphinx-build -i -b html -d docs/_build/doctrees docs docs/_build/html pid=93067
  docs: FAIL code 2 (3.75=setup[3.65]+cmd[0.09] seconds)
  evaluation failed :( (3.77 seconds)

Also, running .tox/docs/bin/sphinx-build -h does not even show an option -i. The version of Sphinx is 7.4.7 because the chosen Sphinx theme, sphinx-rtd-theme, requires Sphinx<8.

dataflake commented 1 month ago

P.S.: sphinx-build from Sphinx 8.0.2 does not seem to know the -i flag, either, so I have no idea what you're doing.

kloczek commented 1 month ago

Correction: please use -n option.

[tkloczko@pers-jacek SPECS]$ sphinx-build --help | grep nit
  --nitpicky, -n        nitpicky mode: warn about all missing references
dataflake commented 1 month ago

OK, now I see warnings. There are no import warnings during the tox run because the module can be imported. The rest, like you said yourself, are not critical. Feel free to propose a PR.

kloczek commented 1 month ago

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.

Good that you just wrote whit I've mentioned on opening ticket ("These are not critical issues"). I have no time to fix that and those warnings are not affecting my build procedure). I'm only messenger.

Just please keep this ticket opened .. maybe someone else will fix that.