-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
fix: read feedstock name from rattler-build feedstock #2003
fix: read feedstock name from rattler-build feedstock #2003
Conversation
Co-authored-by: Bas Zalmstra <zalmstra.bas@gmail.com>
based on conda_build_tool value from forge_config. | ||
Raises OsError if no meta.yaml or recipe.yaml is found in feedstock_directory. | ||
""" | ||
if forge_config and forge_config.get("conda_build_tool") == RATTLER_BUILD: |
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.
Will this work with a fresh feedstock? Because I am not sure if we will have the right forge_config
.
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.
@nichmor did you see this 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.
No api changes.
@beckermr Can you elaborate what you mean by this? Are you refering to the move of the private functions? Or did we miss something? |
Only functions that start with an underscore are private in python. Anything else is a public api and cannot be moved or renamed. |
I thought thats exactly what we did? Did we accidentally move non-underscorred functions? |
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.
Upper bound should be ",<2.0.0a0".
changed |
Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>
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.
Can we keep the functions you moved to utils.py
in configure_feedstock.py
? It doesn't make sense to me to move them to a different file.
In not sure I understand. In trying to understand this better. From my perspective _load_forge_config is the only function that is now used in configure_feedstock and it is used in a few different other functionality with this PR. Why doesnt it make sense to have this common functionality in a seperate file? What makes this tightly coupled to configure_feedstock? |
I missed that. However |
Hey @isuruf ! |
|
Sure, I agree! But maybe we can just think of a better name instead? conda_forge_config for instance? To work around circular import issue. |
Where is the circular import coming from? You can import inside a function instead of at a top-level to avoid circular imports. |
hey @isuruf ! I've reverted the files in their old locations |
@isuruf removed the indirection |
Co-authored-by: Bas Zalmstra <zalmstra.bas@gmail.com>
LGTM from me but we should wait for Isuru. |
Checklist
news
entrypython conda_smithy/schema.py
)Fix invoking
conda-smithy register-github
andconda-smithy register-ci
when rattler-build recipe.yaml is used in feedstock.