srobo / competition-simulator

A simulator for Student Robotics Virtual Competitions
https://studentrobotics.org/docs/simulator/
MIT License
8 stars 2 forks source link

Move to importlib.metadata #403

Closed PeterJCLaw closed 10 months ago

PeterJCLaw commented 11 months ago

pkg_resources isn't part of the standard library an is in fact deprecated. Using importlib.metadata is the expected replacement, and is part of the standard library. This resolves a warning that users would otherwise see when running Webots, which is likely to confuse first-time users.

Manually checked with a missing and a mismatched version of some required packages.

Fixes https://github.com/srobo/competition-simulator/issues/398