Skip to content

Commit

Permalink
Add dependency to httpx >= 0.25.0 everywhere (#40256)
Browse files Browse the repository at this point in the history
Our "lowest-dependency" tests detectaed that weaviate client depends
implicitly on httpx >= 0.19.0 (imports USE_CLIENT_DEFAULTS from
httpx and it's missing < 0.19.0). Howeer this error is raised during
importing of examples for weaviate in "Always" tests, and closer look at
weaviate shows that it actually has >=0.25.0 and it makes sense for all
our providers to bump httpx to 0.25.0 as minimum as well as add it to
weaviate explicitly..
  • Loading branch information
potiuk authored Jun 15, 2024
1 parent 1ddadf5 commit 35871f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airflow/providers/google/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ dependencies:
- google-cloud-run>=0.10.0
- google-cloud-batch>=0.13.0
- grpcio-gcp>=0.2.2
- httpx>=0.18.0
- httpx>=0.25.0
- json-merge-patch>=0.2
- looker-sdk>=22.4.0
- pandas-gbq>=0.7.0
Expand Down
1 change: 1 addition & 0 deletions airflow/providers/weaviate/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ integrations:

dependencies:
- apache-airflow>=2.7.0
- httpx>=0.25.0
- weaviate-client>=3.24.2
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
Expand Down
3 changes: 2 additions & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@
"google-cloud-vision>=3.4.0",
"google-cloud-workflows>=1.10.0",
"grpcio-gcp>=0.2.2",
"httpx>=0.18.0",
"httpx>=0.25.0",
"json-merge-patch>=0.2",
"looker-sdk>=22.4.0",
"pandas-gbq>=0.7.0",
Expand Down Expand Up @@ -1304,6 +1304,7 @@
"weaviate": {
"deps": [
"apache-airflow>=2.7.0",
"httpx>=0.25.0",
"pandas>=1.5.3,<2.2;python_version<\"3.12\"",
"pandas>=2.1.1,<2.2;python_version>=\"3.12\"",
"weaviate-client>=3.24.2"
Expand Down
2 changes: 1 addition & 1 deletion hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
'google-re2>=1.0;python_version<"3.12"',
'google-re2>=1.1;python_version>="3.12"',
"gunicorn>=20.1.0",
"httpx>=0.18.0",
"httpx>=0.25.0",
'importlib_metadata>=6.5;python_version<"3.12"',
# Importib_resources 6.2.0-6.3.1 break pytest_rewrite
# see https://github.com/python/importlib_resources/issues/299
Expand Down

0 comments on commit 35871f8

Please sign in to comment.