-
Notifications
You must be signed in to change notification settings - Fork 13
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
Allow passing macros to SRPM build #320
Allow passing macros to SRPM build #320
Conversation
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.
Makes sense.
a47ec7b
to
dcf64d1
Compare
@@ -83,7 +83,7 @@ def fetch_remote_sources(source_location, source_system, sources_dir): | |||
zip_file.extract(zip_info, sources_dir) | |||
|
|||
|
|||
def build_srpm(module, package, base_dir, sources_dir, scl=None): | |||
def build_srpm(module, package, base_dir, sources_dir, scl=None, macros=None): |
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.
pylint hates this code:
R: 86, 0: Too many arguments (6/5) (too-many-arguments)
R: 86, 0: Too many positional arguments (6/5) (too-many-positional-arguments)
That said, I don't like that check and would probably just disable it globally.
dcf64d1
to
0362573
Compare
8fad2ae
to
6d6dd4a
Compare
I am running into pylint not being the same across the versions of Python and these two rules not existing on 3.6/3.7/3.8. I don't recall having ever seen a clean way to handle this situation. |
That's "fine". We had pylint failing on 3.6-3.8 python before this change already. As long as 3.9+ is happy, I'd just merge this. |
Signed-off-by: Eric D. Helms <[email protected]>
6d6dd4a
to
59a446d
Compare
Refs #318
This aligns better with any provided macros by the project and allows for passing a nightly macro.