-
Notifications
You must be signed in to change notification settings - Fork 148
Add 'Annotation' class as a part of the SPDX 2.1 specification. #74
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
Conversation
ccca9a3 to
8cb3582
Compare
|
This needs to be updated to resolve merge conflicts. |
c049034 to
960367c
Compare
Add 'annotator','annotation_date', and 'comment' to the 'annotation' class. Signed-off-by: Yash Nisar <[email protected]>
Signed-off-by: Yash Nisar <[email protected]>
Signed-off-by: Yash Nisar <[email protected]>
960367c to
413edaa
Compare
pombredanne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!... I made some veryminor comments for your consideration
| def test_correct_annotation_spdx_id(self): | ||
| spdx_id = 'SPDXRef-45' | ||
| self.add_annotator() | ||
| self.builder.set_annotation_spdx_id(self.document, spdx_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you assert as test result here?
| self.write_tagvalue_file(doc, filename) | ||
| ############################################### | ||
| doc, error = self.parse_tagvalue_file(filename) | ||
| # print(doc.annotations[-1].annotation_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you likely want to delete this
| for lics in doc.extracted_licenses: | ||
| print '\tIdentifier: {0}'.format(lics.identifier) | ||
| print '\tName: {0}'.format(lics.full_name) | ||
| print 'Annotations:' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the examples to also work on Python 3, please import the future print function and use it.
|
Actually these are so inor that you can address these comments seprately. |
Add 'annotator','annotation_date', and 'comment'
to the 'annotation' class.
Signed-off-by: Yash Nisar [email protected]