-
Notifications
You must be signed in to change notification settings - Fork 597
httpx from scratch #1823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
httpx from scratch #1823
Changes from all commits
ddc2339
a8d1347
d33d106
29739c5
29ae25e
8b84547
72f8f05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,13 @@ authors = [{ name = "Replicate", email = "[email protected]" }] | |
license.file = "LICENSE" | ||
urls."Source" = "https://github.com/replicate/cog" | ||
|
||
requires-python = ">=3.7" | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
# intentionally loose. perhaps these should be vendored to not collide with user code? | ||
"attrs>=20.1,<24", | ||
"fastapi>=0.75.2,<0.99.0", | ||
# we may not need http2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We almost certainly don't. What's the cost of including it vs not? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the only real motivation for this when it was written is using http2 for file uploads which did not go through localhost at the time. h2 is not a big library so I don't think this is terribly consequential either way |
||
"httpx[http2]>=0.21.0,<1", | ||
"pydantic>=1.9,<2", | ||
"PyYAML", | ||
"requests>=2,<3", | ||
|
@@ -27,14 +29,15 @@ dependencies = [ | |
optional-dependencies = { "dev" = [ | ||
"black", | ||
"build", | ||
"httpx", | ||
'hypothesis<6.80.0; python_version < "3.8"', | ||
'hypothesis; python_version >= "3.8"', | ||
"respx", | ||
'numpy<1.22.0; python_version < "3.8"', | ||
'numpy; python_version >= "3.8"', | ||
"pillow", | ||
"pyright==1.1.347", | ||
"pytest", | ||
"pytest-asyncio", | ||
"pytest-httpserver", | ||
"pytest-rerunfailures", | ||
"pytest-xdist", | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this officially drop 3.7?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah