Skip to content

Commit 0c85f85

Browse files
authored
[minor] Updated documentation on how to update httplib2
1 parent b3034c1 commit 0c85f85

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ You can see the [full history of the Python API on the documentation site](http:
3434

3535
## Updating HTTPLib2
3636

37-
1. Download the latest version of HTTPLib2 at https://pypi.org/project/httplib2.
38-
2. Extract the python2/httplib2 into shotgun_api3/lib/http2lib/python2 without the test folder.
39-
3. Extract the python3/httplib2 into shotgun_api3/lib/http2lib/python3 without the test folder.
40-
4. 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.
37+
The API comes with a copy of the `httplib2` inside the `shotgun_api3/lib` folder. To update the copy to a more recent version of the API, you can run the `update_httplib2.py` script at the root of this repository like this:
38+
39+
python update_httplib2.py vX.Y.Z
40+
41+
where `vX.Y.Z` is a release found on `httplib2`'s [release page](https://github.com/httplib2/httplib2/releases).
4142

4243
## Maintaining Python 2 and 3 compatibility
4344

0 commit comments

Comments
 (0)