HomeSoftware Heritage

requirements: Workaround another ImportError when running pytest

Description

requirements: Workaround another ImportError when running pytest

When calling "./bin/install" from swh-environment in a freshly created
venv, for some reason pip will end up installing flask==1.1.2 when
processing swh-web (likely related to the venv state after installing
other swh modules).

That flask version is quite outdated and will fail to import the json
module from the version of itsdangerous installed in the venv.

So as a workaround pin flask to the first version that does not trigger
that ImportError issue.

Details

Provenance
anlambertAuthored on Feb 21 2022, 1:55 PM
anlambertPushed on Feb 21 2022, 2:20 PM
Differential Revision
D7207: requirements: Workaround another ImportError when running pytest
Parents
rDWAPPSf7b35626cb3b: requirements: Workaround ImportError when running pytest
Branches
Unknown
Tags
Unknown
Build Status
Buildable 26998
Build 42211: test-and-buildJenkins console · Jenkins