| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Bug label request for bounty tracking on Algora/IssueHunt. This PR removes deprecated pkg_resources fallback code for setuptools 82+ (PEP 740, Feb 2026) compatibility. The else branch using pkg_resources is dead code for Python 3.8+ and will fail on setuptools 82+. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Remove deprecated pkg_resources fallback code for Python < 3.8 compatibility.
Root Cause
The code used a version check to conditionally import from importlib.metadata (Python 3.8+) or fall back to pkg_resources (removed in setuptools 82, PEP 740, Feb 2026):
The else branch using pkg_resources is dead code for Python 3.8+ and will fail on setuptools 82+.
Fix
Remove the else branch and use importlib.metadata.version() directly. Since Python 3.8 is the minimum supported version, the sys.version check is redundant.
Files Changed
Fixes #ISSUE