-
Notifications
You must be signed in to change notification settings - Fork 428
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
Deprecating conda_build.conda_interface
#5222
Conversation
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
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.
Other than a small ask to expand a comment. This all looks great.
# Skip context logic for doc generation since we don't install all dependencies in the CI doc build environment, | ||
# see .readthedocs.yml file |
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 would argue this is a bug and needs to be resolved by installing all dependencies in the Ci doc build environment. Maybe add caching there? Switch to setup-miniconda?
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.
Sure but that will require that we stop using the RTD pipeline and switch to a custom workflow which is out of scope for this PR
reset_context() | ||
|
||
except ImportError: | ||
pass |
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 code will be run on every import of conda_build
and seems like an overreach to fix a documentation rendering issue.
I would suggest to either
- make this conditional on the default Read The Doc environment variables or the equivalent for GitHub Actions (
CI
) (messy), or - move this into a custom Sphinx extension (how-to, basically a module with a
setup(app)
function) (clean).
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 is supposed to run for ALL imports of conda_build
, it's only for docs rendering that we don't need this
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.
Gotcha, I'd appreciate if we'd not have to handle the special case for the docs here though. Ultimately it's not a huge deal though.
refs: - conda/conda-build#5222 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L15 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L95 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L104 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L114 - https://github.com/conda/conda/blob/24.1.2/conda/utils.py#L235 Signed-off-by: Marcel Bargull <[email protected]>
refs: - conda/conda-build#5222 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L15 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L95 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L104 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L114 - https://github.com/conda/conda/blob/24.1.2/conda/utils.py#L235 Signed-off-by: Marcel Bargull <[email protected]>
refs: - conda/conda-build#5222 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L15 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L95 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L104 - https://github.com/conda/conda-build/blob/24.1.2/conda_build/conda_interface.py#L114 - https://github.com/conda/conda/blob/24.1.2/conda/utils.py#L235 Signed-off-by: Marcel Bargull <[email protected]>
conda_build.conda_interface is goind to be marked for deprecation. refs: - conda/conda-build#5222 Signed-off-by: Marcel Bargull <[email protected]>
conda_build.conda_interface is going to be marked for deprecation. refs: - conda/conda-build#5222 Signed-off-by: Marcel Bargull <[email protected]>
conda_build.conda_interface.get_index (which is conda.exports.get_index) is using the conda.models.Dist -> conda.models.records.PackageRecord mapping. Dist class is legacy code that's being phased out, so avoid it. refs: - conda/conda-build#5152 - conda/conda-build#5222 Signed-off-by: Marcel Bargull <[email protected]>
conda_build.conda_interface is being deprecated. conda_build.conda_interface.get_index (which is conda.exports.get_index) is using the conda.models.Dist -> conda.models.records.PackageRecord mapping. Dist class is legacy code that's being phased out, so avoid it. refs: - conda/conda-build#5152 - conda/conda-build#5222 Signed-off-by: Marcel Bargull <[email protected]>
conda_build.conda_interface is being deprecated. conda_build.conda_interface.get_index (which is conda.exports.get_index) is using the conda.models.Dist -> conda.models.records.PackageRecord mapping. Dist class is legacy code that's being phased out, so avoid it. refs: - conda/conda-build#5152 - conda/conda-build#5222 Signed-off-by: Marcel Bargull <[email protected]>
conda_build.conda_interface is being deprecated. refs: - conda/conda-build#5222 Signed-off-by: Marcel Bargull <[email protected]>
conda_build.conda_interface is being deprecated. conda_build.conda_interface.get_index (which is conda.exports.get_index) is using the conda.models.dist.Dist -> conda.models.records.PackageRecord mapping. Dist class is legacy code that's being phased out, so avoid it. refs: - conda/conda-build#5152 - conda/conda-build#5222 Signed-off-by: Marcel Bargull <[email protected]>
conda_build.conda_interface.py
conda_build.conda_interface
reset_context() | ||
|
||
except ImportError: | ||
pass |
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.
Gotcha, I'd appreciate if we'd not have to handle the special case for the docs here though. Ultimately it's not a huge deal though.
CodSpeed Performance ReportMerging #5222 will not alter performanceComparing Summary
|
Description
Miscellaneous deprecations that were pending in
conda_build.conda_interface
are being done here, which encourages conda-build and other downstream projects to import from conda directly.Note:
cc_conda_build
deprecation will be handled in a separate PR as it will involve some refactoring work.Checklist - did you ...
news
directory (using the template) for the next release's release notes?Add / update necessary tests?Add / update outdated documentation?