humanprotocol / hmt-escrow

A Python 3 library to launch escrow contracts onto the HUMAN network.
MIT License
24 stars 42 forks source link

Environment fix #350

Closed hugoseabra-imachines closed 2 years ago

hugoseabra-imachines commented 2 years ago

When building local image, many broken npm and python packages due to ubuntu:focal packages.

When updating to ubuntu:jammy, the following changes were needed:

[x] python version to 3.10; [x] downgrade npm to version 6 to run gyp correctly; [x] update package.json for vulnerability fixes (good to have); [x] added python-is-python3 package as python command is not default in new Ubuntu/Debian versions;

hugoseabra-imachines commented 2 years ago

lgtm, seemingly random applying of formatting seems strange

I had to remove mypy from apt-get and added it with pip. It's version updated with a completely different behavior at linting.