pytest-mpl icon indicating copy to clipboard operation
pytest-mpl copied to clipboard

Update path to Jinja2 templates

Open ConorMacBride opened this issue 3 years ago • 1 comments

A test from #179 was showing:

ValueError: The 'pytest_mpl.summary.html' package was not installed in a way that PackageLoader understands.

The update in this PR might fix that as it follows the PackageLoader docs, although we should check why it usually works with pytest_mpl.summary.html.

ConorMacBride avatar Aug 22 '22 09:08 ConorMacBride

This warning may also be relevant:

  /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'pytest_mpl.summary.templates' as data is deprecated, please list it in `packages`.
      !!


      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'pytest_mpl.summary.templates' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'pytest_mpl.summary.templates' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'pytest_mpl.summary.templates' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  creating build/lib/pytest_mpl/summary/templates

QuLogic avatar Nov 29 '22 01:11 QuLogic