Skip to content

Commit 92c4cd5

Browse files
authored
Merge pull request #202 from NYU-RTS/bump-slurm-sdk
use httpx2
2 parents df3c6ea + 7431ff6 commit 92c4cd5

4 files changed

Lines changed: 29 additions & 21 deletions

File tree

coldfront/plugins/keycloak_user_search/keycloak_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from dataclasses import dataclass
22
from coldfront.core.utils.common import import_from_settings
3-
from httpx import URL
3+
from httpx2 import URL
44

55

66
@dataclass

coldfront/plugins/keycloak_user_search/search.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from coldfront.core.user.utils import UserSearch
22
from coldfront.plugins.keycloak_user_search.keycloak_config import KeycloakClientConfig
33
import logging
4-
from httpx import Client, URL, Headers
4+
from httpx2 import Client, URL, Headers
55

66
logger = logging.getLogger(__name__)
77

@@ -45,9 +45,7 @@ def get_username_matches(self, input_str: str) -> list[dict]:
4545
"Authorization": f"Bearer {self.token}",
4646
}
4747
)
48-
search_url = self.config.base_url.join(
49-
self.config.search_username_path + input_str
50-
)
48+
search_url = self.config.base_url.join(self.config.search_username_path + input_str)
5149
result = self.client.get(search_url, headers=headers).raise_for_status().json()
5250
return result
5351

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies = [
4141
"djangorestframework>=3.16.1",
4242
"doi2bib>=0.4.0",
4343
"formencode>=2.1.1",
44-
"httpx>=0.28.1",
44+
"httpx2>=2.5.0",
4545
"humanize>=4.11.0",
4646
"plotly[express]>=6.2.0",
4747
"python-dateutil>=2.9.0",

uv.lock

Lines changed: 25 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)