Skip to content

Commit

Permalink
fix(dependencies): add urllib3 and requests to aiohttp extra (#755)
Browse files Browse the repository at this point in the history
Fixes #707.
  • Loading branch information
busunkim96 committed May 25, 2021
1 parent 27714c4 commit a923442
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
9 changes: 5 additions & 4 deletions noxfile.py
Expand Up @@ -69,13 +69,14 @@ def lint(session):
)


@nox.session(python="3.6")
@nox.session(python="3.8")
def blacken(session):
"""Run black.
Format code to uniform standard.
This currently uses Python 3.6 due to the automated Kokoro run of synthtool.
That run uses an image that doesn't have 3.6 installed. Before updating this
check the state of the `gcp_ubuntu_config` we use for that Kokoro run.
The Python version should be consistent with what is
supplied in the Python Owlbot postprocessor.
https://github.com/googleapis/synthtool/blob/master/docker/owlbot/python/Dockerfile
"""
session.install(BLACK_VERSION)
session.run("black", *BLACK_PATHS)
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Expand Up @@ -31,7 +31,11 @@
)

extras = {
"aiohttp": "aiohttp >= 3.6.2, < 4.0.0dev; python_version>='3.6'",
"aiohttp": [
"aiohttp >= 3.6.2, < 4.0.0dev; python_version>='3.6'",
"requests >= 2.18.0, < 3.0.0dev",
"urllib3 >= 1.0.0, <2.0.0dev",
],
"pyopenssl": "pyopenssl>=20.0.0",
"reauth": "pyu2f>=0.1.5",
}
Expand Down
4 changes: 3 additions & 1 deletion testing/constraints-3.6.txt
Expand Up @@ -11,4 +11,6 @@ setuptools==40.3.0
six==1.9.0
rsa==4.6
rsa==3.1.4
aiohttp==3.6.2
aiohttp==3.6.2
requests==2.18.0
urllib3==1.0.0

0 comments on commit a923442

Please sign in to comment.