Skip to content

Conversation

@jfboismenu
Copy link
Contributor

@jfboismenu jfboismenu commented Jan 21, 2019

This upgrades httplib2 to the most recent version (0.12.0). It has been slightly modified so the library imports parts of itself via from . import <something> instead of from http2lib import something, as the library isn't part of the PYTHONPATH.

The reasons for this are two-fold:

  1. first, it makes the API compatible with the Foundry's Athera pipeline
  2. it packages a much more recent version of the cacerts.txt file.

For the cacerts, we will have to revisit how we update the cacerts file so we don't end up with an out of date list in the future.

I also refactored the setUp code from the base test classes. Since these methods were essentially loading data from Shotgun in read-only, I've moved their initialization code from setUp to setUpClass, which means these values will be read from Shotgun once for every class instead of once per test. The execution time dropped from 287 seconds to 165 seconds on my computer.

Copy link
Contributor

@manneohrstrom manneohrstrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!


You can see the [full history of the Python API on the documentation site](http://developer.shotgunsoftware.com/python-api/changelog.html).

## Updating HTTPLib2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@jfboismenu jfboismenu merged commit 19c1f1d into master Jan 29, 2019
@jfboismenu jfboismenu deleted the SG-9540_upgrade_httplib2 branch January 29, 2019 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants