Skip to content

Commit 19c1f1d

Browse files
authored
For SG-9540, upgrade httplib2 (#187)
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. Tests are also much faster.
1 parent c6285e1 commit 19c1f1d

9 files changed

Lines changed: 1565 additions & 3782 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ Some useful direct links:
3636

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

39+
## Updating HTTPLib2
40+
41+
1. Download the latest version of HTTPLib2 at https://pypi.org/project/httplib2.
42+
2. Extract the python2/httplib2 into shotgun_api3/lib/http2lib without the test folder.
43+
3. Scan the files for any references to importing httplib2 and make sure they import "from ." instead of "from httplib2" because the library isn't in the Python path.
44+
3945
## Tests
4046

4147
Integration and unit tests are provided.

0 commit comments

Comments
 (0)