Mark conda-skeleton as pending deprecation - #6023
Conversation
71c0af4 to
87a4c97
Compare
87a4c97 to
dd19e91
Compare
dd19e91 to
8645d18
Compare
danyeaw
left a comment
There was a problem hiding this comment.
Hey @jsmolic, thanks for working on this, this looks really good! I noticed that if users do call skeleton from the CLI they will get multiple layers of deprecations:
- CLI module
- api.skeletonize
- Each API backend
What if we:
- Remove @deprecated from each skeletonize function
- Add
deprecated.module(...)at the top of each skeleton backend file - Keep one CLI-level decorator on
main_skeleton.execute
I think that is the pattern that #4251 used.
Also, should we add a warning on the skeleton tutorial and command docs that it is pending deprecation and shouldn't be used for new conda recipes?
| ) | ||
|
|
||
|
|
||
| @deprecated("27.3", "27.9", addendum="Use `grayskull` instead.") |
There was a problem hiding this comment.
Since grayskull only provides PyPI and CRAN support, maybe we should soften the wording for the other backends?
isuruf
left a comment
There was a problem hiding this comment.
Conda skeleton is the most complete CRAN recipe generator there is. I'm against deprecating this feature.
|
@isuruf Would you be interested in maintaining it (e.g. outside of conda-build)? Do you know who would? Would porting it to grayskull be an enabler or create stop energy? |
|
@isuruf any pointers as to what is missing from |
|
@wolfv, look at https://github.com/conda-forge/r-gmp-feedstock/blob/main/recipe/meta.yaml for example and compare that with the recipe you get from rattler-build. Deps are wrong. License files is missing. |
Porting it to grayskull would be ideal. Might be a good GSoC project. |
|
If somebody ports the R skeleton part, also this cleanup / skeleton-post-process code could be incorporated https://github.com/bgruening/conda_r_skeleton_helper |
That doesn't mean is fully functional though. R maintainers often comment on needing https://github.com/bgruening/conda_r_skeleton_helper on top (references: #general > R staged recipes reviews @ 💬, https://github.com/conda-forge/staged-recipes/blob/cedb79676c03427ee863d404581eed31d9710685/.github/ISSUE_TEMPLATE/package-request.yml?plain=1#L19, https://github.com/conda-forge/conda-forge.github.io/blob/67fc9430a8c64445244769e0ee8efbd9d46c3ac4/docs/maintainer/adding_pkgs.mdx?plain=1#L49-L51). Even if this feature is deprecated, an older conda-build version can be installed (e.g. |
|
@pb01ka, I think you were also looking into this at some point, weren't you? |
AFAICT, I wasn't specifically looking into this topic (i.e., Mark conda-skeleton as pending deprecation). I did my research on the broader topic of comparing different tools for R recipe generation. The issue is open at prefix-dev/rattler-build#2563 Refer the first point,
Also the response received at prefix-dev/rattler-build#2563 (comment), prefix-dev/rattler-build#2563 (comment) and prefix-dev/rattler-build#2563 (comment). Quoting one specific response,
|
Sure, but we can't do that for rattler-build or grayskull. |
As I said in the other issue, this is a non-issue (at least for 99.9% of cases). Please stop spreading FUD. |
Yes. I have linked your responses as well in my comment above. The issue description in Please let me know if I missed anything. |
conda skeletonhas not been updated in recent years and does not work reliably anymore due to bugs in the codebase (e.g. #1, #2, #3, #4) Additionally, more modern and faster alternatives such asgrayskullandrattler-build generate-recipeare available.This PR marks
conda skeletonas pending deprecation.conda buildwill still provide skeleton command until 27.9 release, when it is scheduled to be removed. Users are encouraged to usegrayskullinstead ofconda skeleton.Changes in the PR:
conda-skeletonand all related modules as pending deprecationinspect.signaturewhich works better with the decorators.Description
Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?