Skip to content

Commit 7bd1511

Browse files
build(deps): update sigstore requirement from ~=3.1.0 to >=3.1,<3.3 in the python group (#45)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: William Woodruff <william@trailofbits.com>
1 parent b290811 commit 7bd1511

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies = [
1717
"cryptography",
1818
"packaging",
1919
"pydantic",
20-
"sigstore~=3.1.0",
20+
"sigstore~=3.2",
2121
"sigstore-protobuf-specs",
2222
]
2323
requires-python = ">=3.11"

src/pypi_attestations/_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def from_bundle(cls, sigstore_bundle: Bundle) -> Attestation:
255255
verification_material=VerificationMaterial(
256256
certificate=base64.b64encode(certificate),
257257
transparency_entries=[
258-
TransparencyLogEntry(sigstore_bundle.log_entry._to_dict_rekor()) # noqa: SLF001
258+
sigstore_bundle.log_entry._to_rekor().to_dict() # noqa: SLF001
259259
],
260260
),
261261
envelope=Envelope(

test/test_cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88
import tempfile
99
from pathlib import Path
1010

11-
import pypi_attestations._cli
1211
import pytest
1312
import sigstore.oidc
13+
from sigstore.oidc import IdentityError
14+
15+
import pypi_attestations._cli
1416
from pypi_attestations._cli import (
1517
_logger,
1618
_validate_files,
1719
get_identity_token,
1820
main,
1921
)
2022
from pypi_attestations._impl import Attestation
21-
from sigstore.oidc import IdentityError
2223

2324
ONLINE_TESTS = "CI" in os.environ or "TEST_INTERACTIVE" in os.environ
2425
online = pytest.mark.skipif(not ONLINE_TESTS, reason="online tests not enabled")

test/test_impl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from typing import Any
88

99
import pretend
10-
import pypi_attestations._impl as impl
1110
import pytest
1211
import sigstore
1312
from pydantic import TypeAdapter, ValidationError
@@ -17,6 +16,8 @@
1716
from sigstore.sign import SigningContext
1817
from sigstore.verify import Verifier, policy
1918

19+
import pypi_attestations._impl as impl
20+
2021
ONLINE_TESTS = "CI" in os.environ or "TEST_INTERACTIVE" in os.environ
2122

2223
online = pytest.mark.skipif(not ONLINE_TESTS, reason="online tests not enabled")

0 commit comments

Comments
 (0)