Skip to content
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

0.4.3: + master [c3684ca9]: pytest is failing with sphinx 6.1.3 #57

Open
kloczek opened this issue Mar 11, 2023 · 1 comment
Open

0.4.3: + master [c3684ca9]: pytest is failing with sphinx 6.1.3 #57

kloczek opened this issue Mar 11, 2023 · 1 comment
Assignees
Labels
bug Something isn't working stale

Comments

@kloczek
Copy link

kloczek commented Mar 11, 2023

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
  • build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-extras-require-0.4.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-extras-require-0.4.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
Test session started at 20:19:41
rootdir: /home/tkloczko/rpmbuild/BUILD/extras_require-0.4.3, configfile: tox.ini
plugins: datadir-1.4.1, regressions-2.4.2, timeout-2.1.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 108 items

tests/test_directive.py .....................................................EEEEEEEE.......                                                                                          [ 62%]
tests/test_flag.py ..................                                                                                                                                                 [ 79%]
tests/test_from___pkginfo__.py ....                                                                                                                                                   [ 83%]
tests/test_from_file.py ....                                                                                                                                                          [ 87%]
tests/test_from_flit.py ....                                                                                                                                                          [ 90%]
tests/test_from_pyproject.py ....                                                                                                                                                     [ 94%]
tests/test_from_setup_cfg.py .....                                                                                                                                                    [ 99%]
tests/test_setup.py .                                                                                                                                                                 [100%]

========================================================================================== ERRORS ===========================================================================================
__________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________

test_params = {'shared_result': None}, app_params = app_params(args=[], kwargs={'srcdir': path('/tmp/pytest-of-tkloczko/pytest-8/root')})
make_app = <function make_app.<locals>.make at 0x7f3a985e85e0>, shared_result = <sphinx.testing.fixtures.SharedResult object at 0x7f3a985e90d0>

    @pytest.fixture(scope='function')
    def app(test_params: dict, app_params: tuple[dict, dict], make_app: Callable,
            shared_result: SharedResult) -> Generator[SphinxTestApp, None, None]:
        """
        Provides the 'sphinx.application.Sphinx' object
        """
        args, kwargs = app_params
>       app_ = make_app(*args, **kwargs)

/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:178: in make
    app_: Any = SphinxTestApp(*args, **kwargs)
/usr/lib/python3.8/site-packages/sphinx/testing/util.py:136: in __init__
    super().__init__(srcdir, confdir, outdir, doctreedir,
/usr/lib/python3.8/site-packages/sphinx/application.py:219: in __init__
    self.setup_extension(extension)
/usr/lib/python3.8/site-packages/sphinx/application.py:398: in setup_extension
    self.registry.load_extension(self, extname)
/usr/lib/python3.8/site-packages/sphinx/registry.py:443: in load_extension
    mod = import_module(extname)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: in <module>
    from sphinx.util import progress_message
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx.deprecation._ModuleWrapper object at 0x7f3a99bcc970>, name = 'progress_message'

    def __getattr__(self, name: str) -> Any:
        if name not in self._objects:
            return getattr(self._module, name)

        canonical_name = self._names.get(name, None)
        if canonical_name is not None:
>           warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
                          f"use '{canonical_name}' instead. "
                          "Check CHANGES for Sphinx API modifications.",
                          self._warning, stacklevel=3)
E           sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

/usr/lib/python3.8/site-packages/sphinx/deprecation.py:46: RemovedInSphinx80Warning
_______________________________________________________________________ ERROR at setup of test_output[flit_demo.html] _______________________________________________________________________

test_params = {'shared_result': None}, app_params = app_params(args=[], kwargs={'srcdir': path('/tmp/pytest-of-tkloczko/pytest-8/root')})
make_app = <function make_app.<locals>.make at 0x7f3a97cbd550>, shared_result = <sphinx.testing.fixtures.SharedResult object at 0x7f3a98fabc40>

    @pytest.fixture(scope='function')
    def app(test_params: dict, app_params: tuple[dict, dict], make_app: Callable,
            shared_result: SharedResult) -> Generator[SphinxTestApp, None, None]:
        """
        Provides the 'sphinx.application.Sphinx' object
        """
        args, kwargs = app_params
>       app_ = make_app(*args, **kwargs)

/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:178: in make
    app_: Any = SphinxTestApp(*args, **kwargs)
/usr/lib/python3.8/site-packages/sphinx/testing/util.py:136: in __init__
    super().__init__(srcdir, confdir, outdir, doctreedir,
/usr/lib/python3.8/site-packages/sphinx/application.py:219: in __init__
    self.setup_extension(extension)
/usr/lib/python3.8/site-packages/sphinx/application.py:398: in setup_extension
    self.registry.load_extension(self, extname)
/usr/lib/python3.8/site-packages/sphinx/registry.py:443: in load_extension
    mod = import_module(extname)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: in <module>
    from sphinx.util import progress_message
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx.deprecation._ModuleWrapper object at 0x7f3a99bcc970>, name = 'progress_message'

    def __getattr__(self, name: str) -> Any:
        if name not in self._objects:
            return getattr(self._module, name)

        canonical_name = self._names.get(name, None)
        if canonical_name is not None:
>           warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
                          f"use '{canonical_name}' instead. "
                          "Check CHANGES for Sphinx API modifications.",
                          self._warning, stacklevel=3)
E           sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

/usr/lib/python3.8/site-packages/sphinx/deprecation.py:46: RemovedInSphinx80Warning
______________________________________________________________________ ERROR at setup of test_output[scopes_demo.html] ______________________________________________________________________

test_params = {'shared_result': None}, app_params = app_params(args=[], kwargs={'srcdir': path('/tmp/pytest-of-tkloczko/pytest-8/root')})
make_app = <function make_app.<locals>.make at 0x7f3a97dc3160>, shared_result = <sphinx.testing.fixtures.SharedResult object at 0x7f3a97bb56d0>

    @pytest.fixture(scope='function')
    def app(test_params: dict, app_params: tuple[dict, dict], make_app: Callable,
            shared_result: SharedResult) -> Generator[SphinxTestApp, None, None]:
        """
        Provides the 'sphinx.application.Sphinx' object
        """
        args, kwargs = app_params
>       app_ = make_app(*args, **kwargs)

/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:178: in make
    app_: Any = SphinxTestApp(*args, **kwargs)
/usr/lib/python3.8/site-packages/sphinx/testing/util.py:136: in __init__
    super().__init__(srcdir, confdir, outdir, doctreedir,
/usr/lib/python3.8/site-packages/sphinx/application.py:219: in __init__
    self.setup_extension(extension)
/usr/lib/python3.8/site-packages/sphinx/application.py:398: in setup_extension
    self.registry.load_extension(self, extname)
/usr/lib/python3.8/site-packages/sphinx/registry.py:443: in load_extension
    mod = import_module(extname)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: in <module>
    from sphinx.util import progress_message
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx.deprecation._ModuleWrapper object at 0x7f3a99bcc970>, name = 'progress_message'

    def __getattr__(self, name: str) -> Any:
        if name not in self._objects:
            return getattr(self._module, name)

        canonical_name = self._names.get(name, None)
        if canonical_name is not None:
>           warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
                          f"use '{canonical_name}' instead. "
                          "Check CHANGES for Sphinx API modifications.",
                          self._warning, stacklevel=3)
E           sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

/usr/lib/python3.8/site-packages/sphinx/deprecation.py:46: RemovedInSphinx80Warning
____________________________________________________________________ ERROR at setup of test_output[setup_cfg_demo.html] _____________________________________________________________________

test_params = {'shared_result': None}, app_params = app_params(args=[], kwargs={'srcdir': path('/tmp/pytest-of-tkloczko/pytest-8/root')})
make_app = <function make_app.<locals>.make at 0x7f3a97d57790>, shared_result = <sphinx.testing.fixtures.SharedResult object at 0x7f3a97d01ca0>

    @pytest.fixture(scope='function')
    def app(test_params: dict, app_params: tuple[dict, dict], make_app: Callable,
            shared_result: SharedResult) -> Generator[SphinxTestApp, None, None]:
        """
        Provides the 'sphinx.application.Sphinx' object
        """
        args, kwargs = app_params
>       app_ = make_app(*args, **kwargs)

/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:178: in make
    app_: Any = SphinxTestApp(*args, **kwargs)
/usr/lib/python3.8/site-packages/sphinx/testing/util.py:136: in __init__
    super().__init__(srcdir, confdir, outdir, doctreedir,
/usr/lib/python3.8/site-packages/sphinx/application.py:219: in __init__
    self.setup_extension(extension)
/usr/lib/python3.8/site-packages/sphinx/application.py:398: in setup_extension
    self.registry.load_extension(self, extname)
/usr/lib/python3.8/site-packages/sphinx/registry.py:443: in load_extension
    mod = import_module(extname)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: in <module>
    from sphinx.util import progress_message
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx.deprecation._ModuleWrapper object at 0x7f3a99bcc970>, name = 'progress_message'

    def __getattr__(self, name: str) -> Any:
        if name not in self._objects:
            return getattr(self._module, name)

        canonical_name = self._names.get(name, None)
        if canonical_name is not None:
>           warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
                          f"use '{canonical_name}' instead. "
                          "Check CHANGES for Sphinx API modifications.",
                          self._warning, stacklevel=3)
E           sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

/usr/lib/python3.8/site-packages/sphinx/deprecation.py:46: RemovedInSphinx80Warning
________________________________________________________________ ERROR at setup of test_output[requirements_file_demo.html] _________________________________________________________________

test_params = {'shared_result': None}, app_params = app_params(args=[], kwargs={'srcdir': path('/tmp/pytest-of-tkloczko/pytest-8/root')})
make_app = <function make_app.<locals>.make at 0x7f3a97d2e700>, shared_result = <sphinx.testing.fixtures.SharedResult object at 0x7f3a97b6e1f0>

    @pytest.fixture(scope='function')
    def app(test_params: dict, app_params: tuple[dict, dict], make_app: Callable,
            shared_result: SharedResult) -> Generator[SphinxTestApp, None, None]:
        """
        Provides the 'sphinx.application.Sphinx' object
        """
        args, kwargs = app_params
>       app_ = make_app(*args, **kwargs)

/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:178: in make
    app_: Any = SphinxTestApp(*args, **kwargs)
/usr/lib/python3.8/site-packages/sphinx/testing/util.py:136: in __init__
    super().__init__(srcdir, confdir, outdir, doctreedir,
/usr/lib/python3.8/site-packages/sphinx/application.py:219: in __init__
    self.setup_extension(extension)
/usr/lib/python3.8/site-packages/sphinx/application.py:398: in setup_extension
    self.registry.load_extension(self, extname)
/usr/lib/python3.8/site-packages/sphinx/registry.py:443: in load_extension
    mod = import_module(extname)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: in <module>
    from sphinx.util import progress_message
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx.deprecation._ModuleWrapper object at 0x7f3a99bcc970>, name = 'progress_message'

    def __getattr__(self, name: str) -> Any:
        if name not in self._objects:
            return getattr(self._module, name)

        canonical_name = self._names.get(name, None)
        if canonical_name is not None:
>           warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
                          f"use '{canonical_name}' instead. "
                          "Check CHANGES for Sphinx API modifications.",
                          self._warning, stacklevel=3)
E           sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

/usr/lib/python3.8/site-packages/sphinx/deprecation.py:46: RemovedInSphinx80Warning
_____________________________________________________________________ ERROR at setup of test_output[pkginfo_demo.html] ______________________________________________________________________

test_params = {'shared_result': None}, app_params = app_params(args=[], kwargs={'srcdir': path('/tmp/pytest-of-tkloczko/pytest-8/root')})
make_app = <function make_app.<locals>.make at 0x7f3a97ccb820>, shared_result = <sphinx.testing.fixtures.SharedResult object at 0x7f3a97b7da00>

    @pytest.fixture(scope='function')
    def app(test_params: dict, app_params: tuple[dict, dict], make_app: Callable,
            shared_result: SharedResult) -> Generator[SphinxTestApp, None, None]:
        """
        Provides the 'sphinx.application.Sphinx' object
        """
        args, kwargs = app_params
>       app_ = make_app(*args, **kwargs)

/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:178: in make
    app_: Any = SphinxTestApp(*args, **kwargs)
/usr/lib/python3.8/site-packages/sphinx/testing/util.py:136: in __init__
    super().__init__(srcdir, confdir, outdir, doctreedir,
/usr/lib/python3.8/site-packages/sphinx/application.py:219: in __init__
    self.setup_extension(extension)
/usr/lib/python3.8/site-packages/sphinx/application.py:398: in setup_extension
    self.registry.load_extension(self, extname)
/usr/lib/python3.8/site-packages/sphinx/registry.py:443: in load_extension
    mod = import_module(extname)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: in <module>
    from sphinx.util import progress_message
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx.deprecation._ModuleWrapper object at 0x7f3a99bcc970>, name = 'progress_message'

    def __getattr__(self, name: str) -> Any:
        if name not in self._objects:
            return getattr(self._module, name)

        canonical_name = self._names.get(name, None)
        if canonical_name is not None:
>           warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
                          f"use '{canonical_name}' instead. "
                          "Check CHANGES for Sphinx API modifications.",
                          self._warning, stacklevel=3)
E           sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

/usr/lib/python3.8/site-packages/sphinx/deprecation.py:46: RemovedInSphinx80Warning
______________________________________________________________________ ERROR at setup of test_output[manual_demo.html] ______________________________________________________________________

test_params = {'shared_result': None}, app_params = app_params(args=[], kwargs={'srcdir': path('/tmp/pytest-of-tkloczko/pytest-8/root')})
make_app = <function make_app.<locals>.make at 0x7f3a97d2e700>, shared_result = <sphinx.testing.fixtures.SharedResult object at 0x7f3a97be34f0>

    @pytest.fixture(scope='function')
    def app(test_params: dict, app_params: tuple[dict, dict], make_app: Callable,
            shared_result: SharedResult) -> Generator[SphinxTestApp, None, None]:
        """
        Provides the 'sphinx.application.Sphinx' object
        """
        args, kwargs = app_params
>       app_ = make_app(*args, **kwargs)

/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:178: in make
    app_: Any = SphinxTestApp(*args, **kwargs)
/usr/lib/python3.8/site-packages/sphinx/testing/util.py:136: in __init__
    super().__init__(srcdir, confdir, outdir, doctreedir,
/usr/lib/python3.8/site-packages/sphinx/application.py:219: in __init__
    self.setup_extension(extension)
/usr/lib/python3.8/site-packages/sphinx/application.py:398: in setup_extension
    self.registry.load_extension(self, extname)
/usr/lib/python3.8/site-packages/sphinx/registry.py:443: in load_extension
    mod = import_module(extname)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: in <module>
    from sphinx.util import progress_message
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx.deprecation._ModuleWrapper object at 0x7f3a99bcc970>, name = 'progress_message'

    def __getattr__(self, name: str) -> Any:
        if name not in self._objects:
            return getattr(self._module, name)

        canonical_name = self._names.get(name, None)
        if canonical_name is not None:
>           warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
                          f"use '{canonical_name}' instead. "
                          "Check CHANGES for Sphinx API modifications.",
                          self._warning, stacklevel=3)
E           sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

/usr/lib/python3.8/site-packages/sphinx/deprecation.py:46: RemovedInSphinx80Warning
__________________________________________________________ ERROR at setup of test_no_requirements_demo[no_requirements_demo.html] ___________________________________________________________

test_params = {'shared_result': None}, app_params = app_params(args=[], kwargs={'srcdir': path('/tmp/pytest-of-tkloczko/pytest-8/root')})
make_app = <function make_app.<locals>.make at 0x7f3a97cbdd30>, shared_result = <sphinx.testing.fixtures.SharedResult object at 0x7f3a97b4c880>

    @pytest.fixture(scope='function')
    def app(test_params: dict, app_params: tuple[dict, dict], make_app: Callable,
            shared_result: SharedResult) -> Generator[SphinxTestApp, None, None]:
        """
        Provides the 'sphinx.application.Sphinx' object
        """
        args, kwargs = app_params
>       app_ = make_app(*args, **kwargs)

/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/sphinx/testing/fixtures.py:178: in make
    app_: Any = SphinxTestApp(*args, **kwargs)
/usr/lib/python3.8/site-packages/sphinx/testing/util.py:136: in __init__
    super().__init__(srcdir, confdir, outdir, doctreedir,
/usr/lib/python3.8/site-packages/sphinx/application.py:219: in __init__
    self.setup_extension(extension)
/usr/lib/python3.8/site-packages/sphinx/application.py:398: in setup_extension
    self.registry.load_extension(self, extname)
/usr/lib/python3.8/site-packages/sphinx/registry.py:443: in load_extension
    mod = import_module(extname)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: in <module>
    from sphinx.util import progress_message
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx.deprecation._ModuleWrapper object at 0x7f3a99bcc970>, name = 'progress_message'

    def __getattr__(self, name: str) -> Any:
        if name not in self._objects:
            return getattr(self._module, name)

        canonical_name = self._names.get(name, None)
        if canonical_name is not None:
>           warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
                          f"use '{canonical_name}' instead. "
                          "Check CHANGES for Sphinx API modifications.",
                          self._warning, stacklevel=3)
E           sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

/usr/lib/python3.8/site-packages/sphinx/deprecation.py:46: RemovedInSphinx80Warning
===================================================================================== warnings summary ======================================================================================
tests/test_from_setup_cfg.py::test_from_setup_cfg[extra_c = faker; pytest; tox-extra_c-expects0]
tests/test_from_setup_cfg.py::test_from_setup_cfg[extra_c =\n    faker\n    pytest\n    tox; python<=3.6\n-extra_c-expects1]
tests/test_from_setup_cfg.py::test_from_setup_cfg_errors[extra_c = faker; pytest; tox-extra-expects0]
tests/test_from_setup_cfg.py::test_from_setup_cfg_errors[extra_c =\n    faker\n    pytest\n    tox; python<=3.6\n-test-expects1]
tests/test_from_setup_cfg.py::test_from_setup_cfg_missing_section
  /home/tkloczko/rpmbuild/BUILD/extras_require-0.4.3/sphinxcontrib/extras_require/sources.py:238: SetuptoolsDeprecationWarning: As setuptools moves its configuration towards `pyproject.toml`,
  `setuptools.config.read_configuration` became deprecated.

  For the time being, you can use the `setuptools.config.setupcfg` module
  to access a backward compatible API, but this module is provisional
  and might be removed in the future.

    setup_cfg = read_configuration(setup_cfg_file)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================================== slowest 25 durations ====================================================================================
0.10s setup    tests/test_directive.py::test
0.02s call     tests/test_from_setup_cfg.py::test_from_setup_cfg[extra_c = faker; pytest; tox-extra_c-expects0]
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg_missing_section
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg_errors[extra_c = faker; pytest; tox-extra-expects0]
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg_errors[extra_c =\n    faker\n    pytest\n    tox; python<=3.6\n-test-expects1]
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg[extra_c =\n    faker\n    pytest\n    tox; python<=3.6\n-extra_c-expects1]
0.01s setup    tests/test_directive.py::test_output[flit_demo.html]
0.01s setup    tests/test_directive.py::test_output[manual_demo.html]
0.01s setup    tests/test_directive.py::test_output[scopes_demo.html]
0.01s setup    tests/test_directive.py::test_no_requirements_demo[no_requirements_demo.html]
0.01s setup    tests/test_directive.py::test_output[setup_cfg_demo.html]
0.01s setup    tests/test_directive.py::test_output[requirements_file_demo.html]
0.01s setup    tests/test_directive.py::test_output[pkginfo_demo.html]

(12 durations < 0.005s hidden.  Use -vv to show these durations.)
================================================================================== short test summary info ==================================================================================
ERROR tests/test_directive.py::test - sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API mo...
ERROR tests/test_directive.py::test_output[flit_demo.html] - sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API mo...
ERROR tests/test_directive.py::test_output[scopes_demo.html] - sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API mo...
ERROR tests/test_directive.py::test_output[setup_cfg_demo.html] - sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API mo...
ERROR tests/test_directive.py::test_output[requirements_file_demo.html] - sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API mo...
ERROR tests/test_directive.py::test_output[pkginfo_demo.html] - sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API mo...
ERROR tests/test_directive.py::test_output[manual_demo.html] - sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API mo...
ERROR tests/test_directive.py::test_no_requirements_demo[no_requirements_demo.html] - sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API mo...
========================================================================= 100 passed, 5 warnings, 8 errors in 1.33s =========================================================================

Here is list of installed modules in build env

Package                       Version
----------------------------- -----------------
alabaster                     0.7.13
apeye                         1.3.0
apeye-core                    1.1.1
attrs                         22.2.0
autodocsumm                   0.2.10
Babel                         2.12.1
beautifulsoup4                4.11.2
build                         0.10.0
CacheControl                  0.12.11
charset-normalizer            3.1.0
click                         8.1.3
coincidence                   0.6.4
consolekit                    1.4.1
cssutils                      2.6.0
default-values                0.5.1
deprecation                   2.1.0
deprecation-alias             0.3.1
dict2css                      0.3.0
diskcache                     5.4.0
dist-meta                     0.7.0
distro                        1.8.0
docutils                      0.19
dom_toml                      0.6.0
domdf-python-tools            3.3.0
exceptiongroup                1.0.0
extras                        1.0.0
fixtures                      4.0.1
gpg                           1.18.0-unknown
handy-archives                0.1.2
html-section                  0.3.0
html5lib                      1.1
idna                          3.4
imagesize                     1.4.1
importlib-metadata            6.0.0
iniconfig                     2.0.0
Jinja2                        3.1.2
libcomps                      0.1.19
lockfile                      0.12.2
MarkupSafe                    2.1.2
mistletoe                     1.0.1
more-itertools                9.1.0
msgpack                       1.0.4
natsort                       8.0.2
packaging                     23.0
pbr                           5.11.1
pip                           22.3.1
platformdirs                  2.6.0
pluggy                        1.0.0
pychoosealicense              2022.7.25
Pygments                      2.14.0
pypi-json                     0.3.0
pyproject_hooks               1.0.0
pyproject-parser              0.5.0
pytest                        7.2.2
pytest-datadir                1.4.1
pytest-regressions            2.4.2
pytest-timeout                2.1.0
python-dateutil               2.8.2
python-frontmatter            1.0.0
pytz                          2022.4
PyYAML                        6.0
requests                      2.28.2
rpm                           4.17.0
ruamel.yaml                   0.17.21
ruamel.yaml.clib              0.2.6
seed-intersphinx-mapping      1.2.0
setuptools                    65.6.3
shippinglabel                 1.4.1
six                           1.16.0
snowballstemmer               2.2.0
soupsieve                     2.4
Sphinx                        6.1.3
sphinx_autodoc_typehints      1.19.4
sphinx-copybutton             0.5.1
sphinx-debuginfo              0.2.2
sphinx-jinja2-compat          0.2.0
sphinx-licenseinfo            0.3.1
sphinx-notfound-page          0.8.3
sphinx-prompt                 1.5.0
sphinx-pyproject              0.1.0
sphinx-tabs                   3.4.1
sphinx-toolbox                3.3.0
sphinxcontrib-applehelp       1.0.4
sphinxcontrib-devhelp         1.0.2.dev20230202
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1.dev20230128
sphinxcontrib-qthelp          1.0.3.dev20230128
sphinxcontrib-serializinghtml 1.1.5
sphinxemoji                   0.2.0
tabulate                      0.9.0
testtools                     2.5.0
toctree-plus                  0.6.0
toml                          0.10.2
tomli                         2.0.1
typing_extensions             4.4.0
urllib3                       1.26.12
webencodings                  0.5.1
wheel                         0.38.4
whey                          0.0.23
zipp                          3.15.0
@kloczek kloczek added the bug Something isn't working label Mar 11, 2023
@kloczek
Copy link
Author

kloczek commented Mar 11, 2023

Looks like documentation needs to be update for sphinx 6.1.3

+ /usr/bin/sphinx-build -n -T -b man doc-source build/sphinx/man
Running Sphinx v6.1.3
making output directory... done
WARNING: Unable to determine documentation url for project docutils
WARNING: Unable to determine documentation url for project sphinx-prompt
[autosummary] generating autosummary for: 404.rst, Source.rst, api/directive.rst, api/extras_require.rst, api/sources.rst, index.rst, license.rst, usage/configuration.rst, usage/directive.rst, usage/installation.rst
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://www.sphinx-doc.org/en/stable/objects.inv...
loading intersphinx inventory from https://domdf-python-tools.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://packaging.pypa.io/en/stable/objects.inv...
loading intersphinx inventory from https://setuptools.pypa.io/en/latest/objects.inv...
loading intersphinx inventory from https://shippinglabel.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://sphinx-toolbox.readthedocs.io/en/latest/objects.inv...
intersphinx inventory has moved: https://www.sphinx-doc.org/en/stable/objects.inv -> https://www.sphinx-doc.org/en/master/objects.inv
building [mo]: targets for 0 po files that are out of date
writing output...
building [man]: all manpages
updating environment: [new config] 10 added, 1 changed, 0 removed
reading sources... [ 70%] license
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/cmd/build.py", line 284, in build_main
    app.build(args.force_all, args.filenames)
  File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 347, in build
    self.builder.build_update()
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 308, in build_update
    self.build(['__all__'], to_build)
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 327, in build
    updated_docnames = set(self.read())
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 434, in read
    self._read_serial(docnames)
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 455, in _read_serial
    self.read_doc(docname)
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 511, in read_doc
    publisher.publish()
  File "/usr/lib/python3.8/site-packages/docutils/core.py", line 224, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "/usr/lib/python3.8/site-packages/sphinx/io.py", line 105, in read
    self.parse()
  File "/usr/lib/python3.8/site-packages/docutils/readers/__init__.py", line 76, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib/python3.8/site-packages/sphinxcontrib/default_values/__init__.py", line 340, in parse
    super().parse(inputstring, document)
  File "/usr/lib/python3.8/site-packages/sphinx/parsers.py", line 80, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 169, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
  File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 3024, in text
    self.section(title.lstrip(), source, style, lineno + 1, messages)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 325, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 391, in new_subsection
    newabsoffset = self.nested_parse(
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 279, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2357, in explicit_markup
    self.explicit_list(blank_finish)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2382, in explicit_list
    newline_offset, blank_finish = self.nested_list_parse(
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 316, in nested_list_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2660, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct
    return method(self, expmatch)
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2104, in directive
    return self.run_directive(
  File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive
    result = directive_instance.run()
  File "/usr/lib/python3.8/site-packages/sphinx_licenseinfo/__init__.py", line 99, in run
    distro = get_distribution(self.options["py"])
  File "/usr/lib/python3.8/site-packages/dist_meta/distributions.py", line 591, in get_distribution
    raise DistributionNotFoundError(name)
dist_meta.distributions.DistributionNotFoundError: extras_require

Exception occurred:
  File "/usr/lib/python3.8/site-packages/dist_meta/distributions.py", line 591, in get_distribution
    raise DistributionNotFoundError(name)
dist_meta.distributions.DistributionNotFoundError: extras_require
The full traceback has been saved in /tmp/sphinx-err-bgc_qbar.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!

@stale stale bot added the stale label Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants