Skip to content

Commit 8e22261

Browse files
dependabot[bot]jku
andauthored
Bump the python-dependencies group with 2 updates (#286)
* Bump the python-dependencies group with 2 updates Bumps the python-dependencies group with 2 updates: [securesystemslib[crypto]](https://github.com/secure-systems-lab/securesystemslib) and [ruff](https://github.com/astral-sh/ruff). Updates `securesystemslib[crypto]` from 1.2.0 to 1.3.0 - [Release notes](https://github.com/secure-systems-lab/securesystemslib/releases) - [Changelog](https://github.com/secure-systems-lab/securesystemslib/blob/main/CHANGELOG.md) - [Commits](secure-systems-lab/securesystemslib@v1.2.0...v1.3.0) Updates `ruff` from 0.11.5 to 0.11.6 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.11.5...0.11.6) --- updated-dependencies: - dependency-name: securesystemslib[crypto] dependency-version: 1.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-dependencies - dependency-name: ruff dependency-version: 0.11.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * lint: Update securesystemslib annotations securesystemslib now has actual annotations, make sure we respect them. There are no functional changes (the added assert cannot in practice happen: the API is just weird). Signed-off-by: Jussi Kukkonen <jkukkonen@google.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jussi Kukkonen <jkukkonen@google.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent ab82533 commit 8e22261

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55
[project]
66
name = "tuf-conformance"
77
dependencies = [
8-
"securesystemslib[crypto]==1.2.0",
8+
"securesystemslib[crypto]==1.3.0",
99
"tuf==6.0.0",
1010
"pytest==8.3.5"
1111
]
@@ -15,7 +15,7 @@ requires-python = ">= 3.10"
1515
[project.optional-dependencies]
1616
lint = [
1717
"mypy==1.15.0",
18-
"ruff==0.11.5"
18+
"ruff==0.11.6"
1919
]
2020

2121
[tool.hatch.version]

tuf_conformance/_internal/repository_simulator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def new_signer(
169169
f"Test ran out of {keytype}/{scheme} keys (NUM_SIGNERS = {NUM_SIGNERS})"
170170
)
171171

172-
def add_signer(self, role: str, signer: CryptoSigner) -> None:
172+
def add_signer(self, role: str, signer: Signer) -> None:
173173
if role not in self.signers:
174174
self.signers[role] = {}
175175
keyid = signer.public_key.keyid
@@ -448,7 +448,7 @@ def add_key(
448448
self,
449449
role: str,
450450
delegator_name: str = Root.type,
451-
signer: CryptoSigner | None = None,
451+
signer: Signer | None = None,
452452
) -> None:
453453
"""add new public key to delegating metadata and store the signer for role"""
454454
if signer is None:

tuf_conformance/test_basic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313

1414
def recalculate_keyid(key: Key) -> None:
1515
"""method to recalculate keyid: needed if key content is modified"""
16-
data: bytes = encode_canonical(key.to_dict()).encode()
16+
canonical_key = encode_canonical(key.to_dict())
17+
assert canonical_key
18+
1719
hasher = digest("sha256")
18-
hasher.update(data)
20+
hasher.update(canonical_key.encode())
1921
key.keyid = hasher.hexdigest()
2022

2123

0 commit comments

Comments
 (0)