Skip to content
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

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Aug 30, 2022

Refs #318

This aligns better with any provided macros by the project and allows for passing a nightly macro.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

obal/data/modules/srpm.py Outdated Show resolved Hide resolved
@ehelms ehelms force-pushed the allow-passing-nightly-githash branch from a47ec7b to dcf64d1 Compare October 22, 2024 17:31
@@ -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):
Copy link
Member

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.

@ehelms ehelms force-pushed the allow-passing-nightly-githash branch from dcf64d1 to 0362573 Compare October 23, 2024 13:09
@ehelms ehelms force-pushed the allow-passing-nightly-githash branch from 8fad2ae to 6d6dd4a Compare October 23, 2024 13:28
@ehelms
Copy link
Member Author

ehelms commented Oct 23, 2024

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.

@evgeni
Copy link
Member

evgeni commented Oct 23, 2024

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.

@ehelms ehelms force-pushed the allow-passing-nightly-githash branch from 6d6dd4a to 59a446d Compare October 23, 2024 15:32
@evgeni evgeni merged commit f8f2645 into theforeman:master Oct 23, 2024
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants