-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document public API for tuf.api and tuf.ngclient #2234
Conversation
Signed-off-by: Fridolin Pokorny <[email protected]>
It looks like this circular import causes the reported issue: python-tuf/tuf/api/serialization/json.py Lines 16 to 19 in c6f8b58
This will also break consumers. Moving to draft, feel free to let me know if this is something worth to have and worth to invest time. |
I agree that there are cases where our public API is not as well defined as it could be. I don't agree with this premise: Document public API for tuf.api and tuf.ngclient by declaring So:
|
@jku and I just recently talked about the lack of explicitness in our public API (secure-systems-lab/securesystemslib#456 (comment)). I am all for being more explicit. |
Maybe a good first step is to file an issue -- as lukas said there is some consensus that API could be more strictly defined -- and maybe make proposal of the actual change (how does the API change? or are we just declaring existing API more specifically?) |
Done in #2235 |
Status update tufI think we don't want anything importable at top level (apart from the modules) and nothing in tuf.ngclientngclient
the first of those seems clearly a good idea, second is debatable: it would break someone who is now doing tuf.api.metadataTODO: someone could write a proper proposal for a tuf.repositoryThis small component was just added -- I did not pay too much attention on |
Description of the changes being introduced by the pull request:
Document public API for
tuf.api
andtuf.ngclient
by declaring__all__
.