sphinx_rtd_theme icon indicating copy to clipboard operation
sphinx_rtd_theme copied to clipboard

0.5.2: build and pytest based test suite warnings

Open kloczek opened this issue 3 years ago • 7 comments

+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, flaky-3.7.0, mock-3.6.0, hypothesis-6.12.0
collected 3 items

tests/test_builders.py ...                                                                                                                                           [100%]

============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/sphinx/util/rst.py:56
  /usr/lib/python3.8/site-packages/sphinx/util/rst.py:56: DeprecationWarning: 'environmentfilter' is renamed to 'pass_environment', the old name will be removed in Jinja 3.1.
    def heading(env: Environment, text: str, level: int = 1) -> str:

../../../../../usr/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170
  /usr/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: RemovedInSphinx40Warning: The alias 'sphinx.builders.html.SingleFileHTMLBuilder' is deprecated, use 'sphinx.builders.singlehtml.SingleFileHTMLBuilder' instead. Check CHANGES for Sphinx API modifications.
    exec(co, module.__dict__)

tests/test_builders.py:6
  /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/tests/test_builders.py:6: RemovedInSphinx40Warning: The alias 'sphinx.builders.html.DirectoryHTMLBuilder' is deprecated, use 'sphinx.builders.dirhtml.DirectoryHTMLBuilder' instead. Check CHANGES for Sphinx API modifications.
    from sphinx.builders.html import SingleFileHTMLBuilder, DirectoryHTMLBuilder

tests/test_builders.py::test_basic
  /usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:106: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    def warning(context: Dict, message: str, *args: Any, **kwargs: Any) -> str:

tests/test_builders.py: 18 warnings
  /usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:184: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    self.environment.globals['debug'] = contextfunction(pformat)

tests/test_builders.py: 18 warnings
  /usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:186: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    self.environment.globals['accesskey'] = contextfunction(accesskey)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 3 passed, 40 warnings in 3.86s ======================================================================

Also build emmits some warnings as well

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
running build
running build_py

> [email protected] preinstall /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2
> bin/preinstall.js


> [email protected] install /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/tkloczko/.npm/node-sass/4.14.1/linux-x64-83_binding.node

> [email protected] postinstall /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass
> node scripts/build.js

Binary found at /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass/vendor/linux-x64-83/binding.node
Testing binary
Binary is fine
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 896 packages from 501 contributors and audited 967 packages in 12.877s

26 packages are looking for funding
  run `npm fund` for details

found 402 vulnerabilities (381 low, 6 moderate, 15 high)
  run `npm audit fix` to fix them, or `npm audit` for details
WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 16 of node_modules/wyrm/sass/wyrm_core/_reset.sass
         from line 25 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 31 of node_modules/wyrm/sass/wyrm_core/_font_icon_defaults.sass
         from line 32 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 102 of node_modules/wyrm/sass/wyrm_core/_alert.sass
         from line 35 of stdin

WARNING: [Bourbon] [Deprecation] `user-select` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_user-select.scss, in mixin `user-select`
         from line 67 of node_modules/wyrm/sass/wyrm_core/_button.sass
         from line 36 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 69 of node_modules/wyrm/sass/wyrm_core/_button.sass
         from line 36 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 227 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 234 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 240 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 283 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 383 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 394 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 493 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 495 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 497 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 499 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 501 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 503 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 505 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 248 of src/sass/_theme_layout.sass
         from line 45 of stdin

Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Hash: 2e769a286cbbca41dd0a
Version: webpack 4.41.5
Time: 3100ms
Built at: 05/06/2021 2:37:54 PM
                                                               Asset       Size  Chunks                                Chunk Names
                             css/badge_only.css?2e769a286cbbca41dd0a    3.2 KiB       0  [emitted] [immutable]         badge_only
   css/fonts/Roboto-Slab-Bold.woff2?9984f4a9bda09be08e83f2506954adbe   65.7 KiB          [emitted]
    css/fonts/Roboto-Slab-Bold.woff?bed5564a116b05148e3b3bea6fb1162a   85.6 KiB          [emitted]
css/fonts/Roboto-Slab-Regular.woff2?7abf5b8d04d26a2cafea937019bca958   64.9 KiB          [emitted]
 css/fonts/Roboto-Slab-Regular.woff?c1be9284088d487c5e3ff0a10a92e58c   84.3 KiB          [emitted]
  css/fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713    162 KiB          [emitted]
  css/fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde    434 KiB          [emitted]              [big]
  css/fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9    162 KiB          [emitted]
css/fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e   75.4 KiB          [emitted]
 css/fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad   95.7 KiB          [emitted]
   css/fonts/lato-bold-italic.woff2?0b6bb6725576b072c5d0b02ecdd1900d    189 KiB          [emitted]
    css/fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c    316 KiB          [emitted]              [big]
          css/fonts/lato-bold.woff2?cccb897485813c7c256901dbca54ecf2    181 KiB          [emitted]
           css/fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b    302 KiB          [emitted]              [big]
 css/fonts/lato-normal-italic.woff2?4eb103b4d12be57cb1d040ed5e162e9d    191 KiB          [emitted]
  css/fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892    321 KiB          [emitted]              [big]
        css/fonts/lato-normal.woff2?bd03a2cc277bbbc338d464e679fe9942    178 KiB          [emitted]
         css/fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a    302 KiB          [emitted]              [big]
                                  css/theme.css?2e769a286cbbca41dd0a    121 KiB       1  [emitted] [immutable]         theme
                               js/badge_only.js?2e769a286cbbca41dd0a  934 bytes       0  [emitted] [immutable]         badge_only
                                       js/html5shiv-printshiv.min.js   4.27 KiB          [emitted]
                                                 js/html5shiv.min.js   2.67 KiB          [emitted]
                                    js/theme.js?2e769a286cbbca41dd0a    4.8 KiB       1  [emitted] [immutable]         theme
Entrypoint theme = css/theme.css?2e769a286cbbca41dd0a js/theme.js?2e769a286cbbca41dd0a
Entrypoint badge_only = css/badge_only.css?2e769a286cbbca41dd0a js/badge_only.js?2e769a286cbbca41dd0a
[0] multi ./src/theme.js ./src/sass/theme.sass 40 bytes {1} [built]
[1] ./src/theme.js 8.74 KiB {1} [built]
[2] external "jQuery" 42 bytes {1} [built]
[3] ./src/sass/theme.sass 39 bytes {1} [built]
[4] ./src/sass/badge_only.sass 39 bytes {0} [built]
    + 2 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  css/fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde (434 KiB)
  css/fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a (302 KiB)
  css/fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b (302 KiB)
  css/fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c (316 KiB)
  css/fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892 (321 KiB)

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!node_modules/sass-loader/dist/cjs.js??ref--5-2!src/sass/badge_only.sass:
    Entrypoint mini-css-extract-plugin = *
    [0] ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ref--5-2!./src/sass/badge_only.sass 4.69 KiB {0} [built]
        + 7 hidden modules
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!node_modules/sass-loader/dist/cjs.js??ref--5-2!src/sass/theme.sass:
    Entrypoint mini-css-extract-plugin = *
    [0] ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ref--5-2!./src/sass/theme.sass 130 KiB {0} [built]
        + 20 hidden modules

kloczek avatar May 06 '21 13:05 kloczek

And yet another set of warnings when man page is generated:

+ sphinx-build -b man -d sphinx_rtd_theme docs .
Running Sphinx v3.5.4
loading translations [en]... done
WARNING: html_static_path entry '_static/' is placed inside outdir
loading intersphinx inventory from https://docs.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from http://www.sphinx-doc.org/en/stable/objects.inv...
intersphinx inventory has moved: http://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
building [man]: all manpages
updating environment: [new config] 10 added, 0 changed, 0 removed
reading sources... [100%] installing
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/demo.rst:261: WARNING: Footnote [4] is not referenced.
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/demo.rst:267: WARNING: Footnote [11] is not referenced.
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/demo.rst:18: WARNING: Undefined substitution referenced: "problematic".
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/demo.rst:261: WARNING: Unknown target name: "5".
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/demo.rst:304: WARNING: Unknown target name: "body elements".
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/demo.rst:316: WARNING: Unknown target name: "hyperlink reference without a target".
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... python-sphinx_rtd_theme.3 { installing configuring contributing changelog demo/structure demo/demo demo/lists_tables demo/api demo/long } /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/demo.rst:275: WARNING: citation not found: nonexistent
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/lists_tables.rst:: WARNING: "table cell spanning" not supported
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/lists_tables.rst:: WARNING: "table row spanning" not supported
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/lists_tables.rst:: WARNING: "table row spanning" not supported
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/lists_tables.rst:: WARNING: "table cell spanning" not supported
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/lists_tables.rst:: WARNING: "table cell spanning" not supported
/home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/docs/demo/lists_tables.rst:: WARNING: "table cell spanning" not supported
done
build succeeded, 14 warnings.

kloczek avatar May 06 '21 13:05 kloczek

BTW: is iit possible to make a new release?

kloczek avatar Jun 06 '21 07:06 kloczek

BTW: is iit possible to make a new release?

We are planning a 1.0 release, we don't have a ETA.

stsewd avatar Jun 07 '21 15:06 stsewd

The tests will be fixed with #1105

The warnings when compiling assets are difficult to resolve as they come from wyrm, a package no longer maintained and we are trying to replace with bootstrap.

The warnings while building the test files are intended to catch different output sphinx might give. These could probably just be removed though as they are not actually that helpful.


Is there a reason for this report? The warnings here are all harmless and do not have any negative effects on the end-users.

Blendify avatar Jul 13 '21 01:07 Blendify

Is there a reason for this report? The warnings here are all harmless and do not have any negative effects on the end-users.

I'm working on my distro python packages (at the moment have ~550 modules packaged). As I'm not the python expert always is better to ask maintainer is is something important or not :) Deprecation warnings always looks suspicious :P

kloczek avatar Jul 13 '21 10:07 kloczek

Just tested that PR.

[tkloczko@barrel SPECS]$ rpmbuild -ba --with check python-sphinx_rtd_theme.spec --without failing_tests
warning: Downloading https://github.com/rtfd/sphinx_rtd_theme//archive/0.5.2/python-sphinx_rtd_theme-0.5.2.tar.gz to /home/tkloczko/rpmbuild/SOURCES/python-sphinx_rtd_theme-0.5.2.tar.gz
warning: Downloading https://github.com/rtfd/sphinx_rtd_theme//pull/1105.patch#/python-sphinx_rtd_theme-Tests-Fix-deprecation-warning-with-new-sphinx-versions.patch to /home/tkloczko/rpmbuild/SOURCES/python-sphinx_rtd_theme-Tests-Fix-deprecation-warning-with-new-sphinx-versions.patch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.g8HHhT
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd /home/tkloczko/rpmbuild/BUILD
+ rm -rf sphinx_rtd_theme-0.5.2
+ /usr/bin/gzip -dc /home/tkloczko/rpmbuild/SOURCES/python-sphinx_rtd_theme-0.5.2.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd sphinx_rtd_theme-0.5.2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/python-sphinx_rtd_theme-man3_level.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/python-sphinx_rtd_theme-relax_docutils_dependencies.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/python-sphinx_rtd_theme-Tests-Fix-deprecation-warning-with-new-sphinx-versions.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ RPM_EC=0
++ jobs -p
+ exit 0


[..]

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
running build
running build_py

> [email protected] preinstall /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2
> bin/preinstall.js


> [email protected] install /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/tkloczko/.npm/node-sass/4.14.1/linux-x64-83_binding.node

> [email protected] postinstall /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass
> node scripts/build.js

Binary found at /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass/vendor/linux-x64-83/binding.node
Testing binary
Binary is fine
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 896 packages from 501 contributors and audited 967 packages in 11.854s

26 packages are looking for funding
  run `npm fund` for details

found 477 vulnerabilities (381 low, 64 moderate, 32 high)
  run `npm audit fix` to fix them, or `npm audit` for details
WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 16 of node_modules/wyrm/sass/wyrm_core/_reset.sass
         from line 25 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 31 of node_modules/wyrm/sass/wyrm_core/_font_icon_defaults.sass
         from line 32 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 102 of node_modules/wyrm/sass/wyrm_core/_alert.sass
         from line 35 of stdin

WARNING: [Bourbon] [Deprecation] `user-select` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_user-select.scss, in mixin `user-select`
         from line 67 of node_modules/wyrm/sass/wyrm_core/_button.sass
         from line 36 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 69 of node_modules/wyrm/sass/wyrm_core/_button.sass
         from line 36 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 227 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 234 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 240 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 283 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 383 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 394 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 493 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 495 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 497 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 499 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 501 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 503 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 505 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 248 of src/sass/_theme_layout.sass
         from line 45 of stdin

Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Hash: 2e769a286cbbca41dd0a
Version: webpack 4.41.5
Time: 3169ms
Built at: 07/13/2021 11:35:38 AM

kloczek avatar Jul 13 '21 10:07 kloczek

and pytest:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx_rtd_theme-0.5.2-4.2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx_rtd_theme-0.5.2-4.2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, Faker-8.10.0
collected 5 items

. .                                                                                                                                                                  [ 25%]
tests/test_builders.py ...                                                                                                                                           [100%]

============================================================================ 4 passed in 10.47s ============================================================================

kloczek avatar Jul 13 '21 10:07 kloczek

I'm working on a 2.0 release that drops support for some old versions and I hit this issue as well. The output that I'm seeing with errors and warnings is:

/home/circleci/project/docs/demo/test_py_module/test_py27.py:docstring of test_py_module.test_py27.Foo:17: WARNING: Duplicate explicit target name: "1".
/home/circleci/project/docs/demo/test_py_module/test_py27.py:docstring of test_py_module.test_py27.Foo:20: WARNING: Duplicate explicit target name: "citation".
/home/circleci/project/docs/demo/test_py_module/test_py27.py:docstring of test_py_module.test_py27.Foo:20: WARNING: duplicate citation Citation, other instance in /home/circleci/project/docs/demo/api.rst
/home/circleci/project/docs/demo/demo.rst:265: WARNING: Footnote [4] is not referenced.
/home/circleci/project/docs/demo/demo.rst:18: ERROR: Undefined substitution referenced: "problematic".
/home/circleci/project/docs/demo/demo.rst:271: WARNING: duplicate citation Citation, other instance in /home/circleci/project/docs/demo/api.rst
/home/circleci/project/docs/demo/demo.rst:265: ERROR: Unknown target name: "5".
/home/circleci/project/docs/demo/demo.rst:318: ERROR: Unknown target name: "hyperlink reference without a target".

I'd like to fix these issues so our test suit is clean.

humitos avatar Aug 18 '23 10:08 humitos

I found that those ERROR and WARNING from Sphinx are on purpose. If you go where they are defined, they explain it:

  • https://github.com/readthedocs/sphinx_rtd_theme/blob/e2e96708c350f099e092ea26e406de950963d043/docs/demo/demo.rst?plain=1#L24-L25
  • https://github.com/readthedocs/sphinx_rtd_theme/blob/e2e96708c350f099e092ea26e406de950963d043/docs/demo/demo.rst?plain=1#L265-L266

This is to understand how the theme behaves under these circumstances.

humitos avatar Aug 25 '23 16:08 humitos

Yeah, there are a few intentional mistakes in the documentation styleguides, from lines wrapping poorly, docutils errors and oddities, and non standard authoring patterns like putting blocks of content where they normal would not exist.

It's also not going to be possible to get rid of the Bourbon/Neat errors, as there is a very particular chain of dependencies there that we can't change at the moment.

agjohnson avatar Aug 30 '23 01:08 agjohnson