File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1891,6 +1891,13 @@ def build_http():
1891
1891
# for Resumable Uploads rather than Permanent Redirects.
1892
1892
# This asks httplib2 to exclude 308s from the status codes
1893
1893
# it treats as redirects
1894
- http .redirect_codes = http .redirect_codes - {308 }
1894
+ try :
1895
+ http .redirect_codes = http .redirect_codes - {308 }
1896
+ except AttributeError :
1897
+ # Apache Beam tests depend on this library and cannot
1898
+ # currently upgrade their httplib2 version
1899
+ # http.redirect_codes does not exist in previous versions
1900
+ # of httplib2, so pass
1901
+ pass
1895
1902
1896
1903
return http
Original file line number Diff line number Diff line change 33
33
packages = ["apiclient" , "googleapiclient" , "googleapiclient/discovery_cache" ]
34
34
35
35
install_requires = [
36
- "httplib2>=0.17.0,<1dev" ,
36
+ # NOTE: Apache Beam tests depend on this library and cannot
37
+ # currently upgrade their httplib2 version.
38
+ # Please see https://github.com/googleapis/google-api-python-client/pull/841
39
+ "httplib2>=0.9.2,<1dev" ,
37
40
"google-auth>=1.4.1" ,
38
41
"google-auth-httplib2>=0.0.3" ,
39
42
"google-api-core>=1.13.0,<2dev" ,
You can’t perform that action at this time.
0 commit comments