Skip to content

Commit

Permalink
Update dependencies and fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mconigliaro committed Jan 31, 2025
1 parent d42d15e commit 7f3f996
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 76 deletions.
6 changes: 3 additions & 3 deletions authum/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ def __init__(self, saml_assertion: str) -> None:
self.attribute_statement = root.find(".//saml:AttributeStatement", self.ns)

def __getitem__(self, k: str) -> list:
if not self.attribute_statement:
if self.attribute_statement is None:
return []

attr = self.attribute_statement.find(f".//saml:Attribute[@Name='{k}']", self.ns)
if not attr:
if attr is None:
raise KeyError(k)
return [v.text for v in attr.findall(".//saml:AttributeValue", self.ns)]

def __iter__(self) -> Iterable:
if not self.attribute_statement:
if self.attribute_statement is None:
return []

return (
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"boto3~=1.19",
"click~=8.0",
"Flask~=2.0",
"keyring~=23.2",
"keyring~=25.6",
"pluggy~=1.0",
"pyyaml~=6.0",
"requests~=2.26",
Expand All @@ -24,11 +24,11 @@ dependencies = [
dev = [
"Mako~=1.1",
"pex~=2.1",
"pytest~=6.2",
"pytest-cov~=3.0",
"pytest-xdist~=2.4",
"pytest~=8.3",
"pytest-cov~=6.0",
"pytest-xdist~=3.6",
"responses~=0.15",
"ruff~=0.9.4",
"ruff~=0.9",
]

[build-system]
Expand Down
132 changes: 64 additions & 68 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f3f996

Please sign in to comment.