File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030from securesystemslib .signer import SSlibSigner
3131
3232from tuf .api .metadata import (
33+ SPECIFICATION_VERSION ,
3334 DelegatedRole ,
3435 Delegations ,
3536 Key ,
@@ -82,7 +83,7 @@ def _in(days: float) -> datetime:
8283# expiration intervals, whereas roles that change less and might use offline
8384# keys (root, delegating targets) may have longer expiration intervals.
8485
85- SPEC_VERSION = "1.0.19"
86+ SPEC_VERSION = "." . join ( SPECIFICATION_VERSION )
8687
8788# Define containers for role objects and cryptographic keys created below. This
8889# allows us to sign and write metadata in a batch more easily.
Original file line number Diff line number Diff line change 2626from securesystemslib .signer import SSlibSigner
2727
2828from tuf .api .metadata import (
29+ SPECIFICATION_VERSION ,
2930 DelegatedRole ,
3031 Delegations ,
3132 Key ,
@@ -41,7 +42,7 @@ def _in(days: float) -> datetime:
4142 return datetime .utcnow ().replace (microsecond = 0 ) + timedelta (days = days )
4243
4344
44- SPEC_VERSION = "1.0.19"
45+ SPEC_VERSION = "." . join ( SPECIFICATION_VERSION )
4546roles : Dict [str , Metadata ] = {}
4647keys : Dict [str , Dict [str , Any ]] = {}
4748
You can’t perform that action at this time.
0 commit comments