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

feat: add hint for new noarch: python syntax #2115

Merged
merged 9 commits into from
Nov 5, 2024
Merged

feat: add hint for new noarch: python syntax #2115

merged 9 commits into from
Nov 5, 2024

Conversation

beckermr
Copy link
Member

@beckermr beckermr commented Nov 4, 2024

Checklist

  • Added a news entry
  • Regenerated schema JSON if schema altered (python conda_smithy/schema.py)

This PR adds hints for the new noarch: python syntax. They are not lints since this syntax is not required per the CFEP.

@beckermr beckermr marked this pull request as ready for review November 4, 2024 13:31
@beckermr beckermr requested a review from a team as a code owner November 4, 2024 13:31
@beckermr
Copy link
Member Author

beckermr commented Nov 4, 2024

@conda-forge/core this one is ready for review!

def hint_noarch_python_use_python_min(
host_reqs, run_reqs, test_reqs, outputs_section, noarch_value, hints
):
if noarch_value == "python" and not outputs_section:
Copy link
Member

Choose a reason for hiding this comment

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

We don't hint multi output recipes? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Not currently no. IDK why.

Copy link
Member

Choose a reason for hiding this comment

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

@isuruf added similar code in b7514aa

There's no PR attached to that blame so I'm not sure where it came from or whether there was some discussion. We should probably make it compatible with multi output recipes but I won't block if you consider it's out of scope.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it is out of scope for this PR given that it is already in the code base.

@beckermr beckermr merged commit bc45897 into main Nov 5, 2024
2 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.

2 participants