Skip to content

Commit

Permalink
New API: Add support spec_version constant
Browse files Browse the repository at this point in the history
The modules under the tuf/api folder in TUF are an alternative TUF
implementation. That's why they should use their own constant for
SPECIFICATION_VERSION.

This time, I used a list for the SPECIFICATION_VERSION constant in order
to retrieve major and minor versions easier.

Signed-off-by: Martin Vrachev <[email protected]>
  • Loading branch information
MVrachev committed Jun 9, 2021
1 parent 15eb0d9 commit 3bc5ad7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tuf/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""TUF new API
This package contains all modules related to the TUF refactoring effort.
"""
# This reference implementation produces metadata intended to conform to
# version 1.0.0 of the TUF specification, and is expected to consume metadata
# conforming to version 1.0.0 of the TUF specification.
# All downloaded metadata must be equal to our supported major version of 1.
# For example, "1.4.3" and "1.0.0" are supported. "2.0.0" is not supported.
# See https://github.com/theupdateframework/specification
SPECIFICATION_VERSION = ["1", "0", "0"]

0 comments on commit 3bc5ad7

Please sign in to comment.