← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~chad.smith/cloud-init:unittest-oauthlib-import into cloud-init:master

 

The proposal to merge ~chad.smith/cloud-init:unittest-oauthlib-import into cloud-init:master has been updated.

Description changed to:

url_helper: dynamically import oauthlib import from inside oauth_headers

oauth_headers is the only function which requires oauthlib, move the
import and ImportError handling inside this function to only attempt
loading at runtime if called. This will allow us to build on platforms
that don't have python-oauthlib installed by default. Add simple unittests
around the missing oauthlib dependencies to make sure the function
performs as intended and raises and NotImplementedError if oauthlib can't
be imported.



For more details, see:
https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/329872
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~chad.smith/cloud-init:unittest-oauthlib-import into cloud-init:master.


References