Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
"cryptography",
"packaging",
"pydantic",
"sigstore~=3.1.0",
"sigstore~=3.2",
"sigstore-protobuf-specs",
]
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion src/pypi_attestations/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def from_bundle(cls, sigstore_bundle: Bundle) -> Attestation:
verification_material=VerificationMaterial(
certificate=base64.b64encode(certificate),
transparency_entries=[
TransparencyLogEntry(sigstore_bundle.log_entry._to_dict_rekor()) # noqa: SLF001
sigstore_bundle.log_entry._to_rekor().to_dict() # noqa: SLF001
],
),
envelope=Envelope(
Expand Down
5 changes: 3 additions & 2 deletions test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
import tempfile
from pathlib import Path

import pypi_attestations._cli
import pytest
import sigstore.oidc
from sigstore.oidc import IdentityError

import pypi_attestations._cli
from pypi_attestations._cli import (
_logger,
_validate_files,
get_identity_token,
main,
)
from pypi_attestations._impl import Attestation
from sigstore.oidc import IdentityError

ONLINE_TESTS = "CI" in os.environ or "TEST_INTERACTIVE" in os.environ
online = pytest.mark.skipif(not ONLINE_TESTS, reason="online tests not enabled")
Expand Down
3 changes: 2 additions & 1 deletion test/test_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from typing import Any

import pretend
import pypi_attestations._impl as impl
import pytest
import sigstore
from pydantic import TypeAdapter, ValidationError
Expand All @@ -17,6 +16,8 @@
from sigstore.sign import SigningContext
from sigstore.verify import Verifier, policy

import pypi_attestations._impl as impl

ONLINE_TESTS = "CI" in os.environ or "TEST_INTERACTIVE" in os.environ

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