On a cheap steel bike, I use the foot method. Stomp on one dropout, bend the other out a half inch, then use the nuts to pinch it back when the motor is installed.
On alloy, such as a front fork, then you need to evaluate what you need. You cannot pinch in, or spread out the tubes or it will bind the fork up. So in that case you have to decide wheter you need a thin washer on the axle or a file on the axle shoulder, and make it fit perfect.
Alloy rear dropouts, I don't recomend much spreading. But 2-3 mm per side is within the natural flex of the material on most bikes, so you just spread the forks a tiny bit as you slot in the motor with your hands.
I would NOT advise standing on alloy frames and yanking on them. If you really must bend an alloy frame then pushing them out carefully with a threaded rod and nuts makes sense to me. I wouldn't consider bending alloy much further than a centimeter. So like 135mm could bend to 145mm.