-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure pyspx conditional import
Import third-party pyspx package in securesystemslib.spx_keys only and require whoever imports securesystemslib.spx_keys to handle ImportError (or IOError in case of missing C backend). See securesystemslib.keys for exemplary import handling. This commit also moves three spx-specific schema definitions from securesystemslib.formats to securesystemslib.spx_keys, so that the former does not have to deal with a conditional import of an optional library.
- Loading branch information
Showing
4 changed files
with
31 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters