heroku / salesforce-oauth-request

Util package to drive Salesforce Oauth Web flow for scripting and testing.
MIT License
34 stars 12 forks source link

Python 2 and 3 compatibility. #8

Open seporaitis opened 8 years ago

seporaitis commented 8 years ago

It would be good if salesforce-oauth-request would support Python 2.7 and Python 3 - this pull request does that plus:

One additional dependency - six - was added.

A caveat about automated tests: because encrypted variables are tied to the repository (docs) - travis build will fail after merging into master (because tests depend on those vars), so a separate pull request would be needed to make the build pass on your end. Let me know if instructions how to do it would be helpful.

Alternatively, it would be good to know early, if the project is not active anymore. We are transitioning to Python3 at my workplace and this package (as well as salesforce-bulk) are dependencies and we could do something like this to still make it work for everyone involved.