I’m looking at using the standalone event dispatcher from some code that uses gevent, and I noticed that importing event_dispatcher from nameko.standalone.events also pulls in eventlet, even though it’s not used by anything in standalone/events.py
It looks like the only reason eventlet gets pulled in is because serialization.py imports import_from_path from nameko.utils, which pulls in eventlet for the SpawningProxy, etc.
I moved import_from_path into it’s own file (pathutils.py) and verified that I can import event_dispatcher without pulling in eventlet.
What would you think about a PR to move import_from_path into it’s own file? Unfortunately it can’t go in utils since utils/init.py imports eventlet and has the bulk of the utils code in it.
Any better suggestions?