HomeSoftware Heritage

requirements: Workaround ImportError when running pytest

Description

requirements: Workaround ImportError when running pytest

markupsafe 2.1.0 removes functions that were used by Jinja2 < 3,
the latter being a dependency of pybadges.

As Jinja2 < 3 is installed in the venv, pinning markupsafe to
a version still compatible with Jinja2 < 3 is the only way to
avoid error when running pytest as some plugins import jinja2.

Details

Provenance
anlambertAuthored on Feb 18 2022, 4:24 PM
anlambertPushed on Feb 18 2022, 5:20 PM
Differential Revision
D7205: requirements: Workaround ImportError when running pytest
Parents
rDWAPPS213828bfd4fd: package.json: Upgrade dependencies
Branches
Unknown
Tags
Unknown
References
tag: v0.0.371
Build Status
Buildable 26990
Build 42199: test-and-buildJenkins console · Jenkins