Skip to content

Commit

Permalink
fix another place requests was imported (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeiler authored Jan 25, 2025
1 parent dffe13f commit a8c5883
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11.0.4
11.0.5
7 changes: 4 additions & 3 deletions clarifai_grpc/channel/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
import os
import typing # noqa

import requests

from clarifai_grpc.channel.errors import ApiError

CLIENT_VERSION = "11.0.4"
CLIENT_VERSION = "11.0.5"
OS_VER = os.sys.platform
PYTHON_VERSION = ".".join(
map(
Expand Down Expand Up @@ -50,6 +48,9 @@ def execute_request(self, method, params, url):
json.dumps(headers, indent=2),
json.dumps(succinct_payload, indent=2),
)
# Avoid import at the top so we don't depend on requests in requirements.txt
import requests # noqa

try:
if method == "GET":
res = self._session.get(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="clarifai-grpc",
version="11.0.4",
version="11.0.5",
author="Clarifai",
author_email="[email protected]",
description="Clarifai gRPC API Client",
Expand Down

0 comments on commit a8c5883

Please sign in to comment.