You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For both the pip integration, and in order to provide some semblance of support for Python 2.7 users when we proceed with the refactor (#1127), it would be very useful to have the client be installable by itself without any of the modules which are only used for a repository.
We should identify what pieces of the current code are required by the client. Can we create a branch with only the client and its dependencies? Can we adapt the current client tests to work without tuf.repository_lib and tuf.repository_tool?
The tuf updater requires at least the following modules:
tuf.client.updater
tuf.download
tuf.mirrors
tuf.sig
tuf.formats
tuf.settings
tuf.keydb
tuf.roledb
tuf.exceptions
Current behavior:
Client and repository code is installed as one big package
Expected behavior:
Possible to install only the client, without any modules used only by a repository
The text was updated successfully, but these errors were encountered:
I can try and help here, starting with a client branch with a couple of tests only and we can progress gradually.
Tests use repository_tool and repository_lib mostly to load, sign and write metadata. It seems possible to replace these calls by doing the file operations "manually" and calling directly securesystemslib.
One question is which tests should be considered client-only? Besides the obvious test_updater, the tests that import the updater module are:
Should we keep one client-only version of these tests as well as one repository version or depending on the context and type of the simulated attack we can assign them to one of the two?
I kept the hard question for the end ... naming? tuf-client?
I think we have our answer now: metadata API + ngclient is the minimal set. Splitting out is likely not necessary but separate packaging would be possible
Description of issue or feature request:
For both the pip integration, and in order to provide some semblance of support for Python 2.7 users when we proceed with the refactor (#1127), it would be very useful to have the client be installable by itself without any of the modules which are only used for a repository.
We should identify what pieces of the current code are required by the client. Can we create a branch with only the client and its dependencies? Can we adapt the current client tests to work without
tuf.repository_lib
andtuf.repository_tool
?The tuf updater requires at least the following modules:
Current behavior:
Client and repository code is installed as one big package
Expected behavior:
Possible to install only the client, without any modules used only by a repository
The text was updated successfully, but these errors were encountered: