-
Notifications
You must be signed in to change notification settings - Fork 7
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
ENH: add Makefile information helper #124
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I think this is good enough as a first pass. Test coverage is 90%-ish for this PR. ➡️ Requesting at least a smell check, leaving level of review up to reviewer's whim |
@@ -104,132 +96,6 @@ def build_arg_parser(parser=None): | |||
return parser | |||
|
|||
|
|||
ParseResult = Union[ |
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.
This big block got moved to whatrecord.parse
; and Makefile
was added to the supported list
Wow that's a gnarly dependency tree |
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.
I'm not experienced enough with EPICS to be a great judge of this functionality, but it looks useful and well put-together to me. Tests look good too.
I should really play around with this more to get a better grasp on things, but at this moment it LGTM
|
||
@classmethod | ||
def from_makefile( | ||
cls, |
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.
nitpick: this is a @classmethod
that doesn't use the cls
variable
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.
Not a nitpick - a bug.
Edit: resolved in 5102519
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.
I didn't fully grasp how this works at the core (lack of Makefile knowledge), but the result is good and I only had minor nitpicks
Description
Makefile
informationparse
towhatrecord.parse
in order to make it more accessible. External imports relying on.bin.parse.parse
should remain functional.This method actually reveals a ton of information about the build when used with EPICS makefiles. It's a pretty interesting exercise, and I think we may be able to leverage this for more than I initially thought:
Variables
Motivation and Context
How Has This Been Tested?
Where Has This Been Documented?