Define the METHOD macro and deploy it
travis: drop 3.1 since travis does not support it anymore