frej / fast-export

A mercurial to git converter using git-fast-import
http://repo.or.cz/w/fast-export.git
808 stars 255 forks source link

Support for Python 3.12 (e.g. replace `imp` usage for Python 3 users) #310

Closed cho-m closed 9 months ago

cho-m commented 10 months ago

When migrating some mercurial-dependent formulae in Homebrew to Python 3.12 (https://github.com/Homebrew/homebrew-core/pull/152277), the CI found that this package is incompatible with Python 3.12 at least due to usage of removed imp https://github.com/frej/fast-export/blob/0d0e90d3280e83580e5531d70ca54450b9593a89/pluginloader/__init__.py#L2

Removal documented at https://docs.python.org/3/whatsnew/3.12.html#imp along with recommended importlib equivalent.

imp has been deprecated since Python 3.4. Given documented support for Python 3.5+, it is probably ideal to use supported importlib module when running Python 3.