Closed imjoehaines closed 9 months ago
Flask is removing their __version__ attribute (see https://github.com/bugsnag/bugsnag-python/issues/364) so we can no longer rely on this to report the current Flask version
__version__
Instead we need to use importlib.metadata on Python 3.8+ or pkg_resources on older versions (partially reverting #362)
importlib.metadata
pkg_resources
Goal
Flask is removing their
__version__
attribute (see https://github.com/bugsnag/bugsnag-python/issues/364) so we can no longer rely on this to report the current Flask versionInstead we need to use
importlib.metadata
on Python 3.8+ orpkg_resources
on older versions (partially reverting #362)