bugsnag / bugsnag-python

Official BugSnag error monitoring and error reporting for django, flask, tornado and other python apps.
https://docs.bugsnag.com/platforms/python/
MIT License
84 stars 42 forks source link

Remove use of deprecated pkg_resources module #362

Closed imjoehaines closed 1 year ago

imjoehaines commented 1 year ago

Goal

pkg_resources has been deprecated but we only use it to fetch bugsnag-python's version number for the notifier part of the payload. We can encode this in the source to avoid depending on this module. This also removes a couple of possible (though unlikely in practice) failure cases that would result in no version being sent

See the warning in the docs: https://setuptools.pypa.io/en/latest/pkg_resources.html