conda / grayskull

Grayskull :skull: - Recipe generator for Conda
https://conda.github.io/grayskull/
Apache License 2.0
320 stars 69 forks source link

[FEATURE] Add support for new output format #486

Open marcelotrevisani opened 1 year ago

marcelotrevisani commented 1 year ago

https://github.com/prefix-dev/recipe-format

Add feature to generate recipe in this new format.

cc: @wolfv @ocefpaf

It would be nice to add more examples so it would be easier to add this. :)

wolfv commented 1 year ago

Awesome! Would love to see this. We don't have so many examples of the new format available yet. We have some examples of the previous variant in the emscripten-forge and boa-forge repositories:

beenje commented 10 months ago

Currently using grayskull + boa convert + some sed to feed the new recipe to rattler-build. Would love to have support in grayskull directly :-)

If nobody started working on this yet, I could give it a try in the coming weeks (no promise). Haven't looked yet, but should most work be in https://github.com/marcelotrevisani/souschef ?

wolfv commented 10 months ago

That would be amazing. No one is working on it afaik :)

schuylermartin45 commented 6 months ago

Now that the conda-recipe-manager is up and running with conversion integration tests with rattler-build, should we consider having grayskull incorporate conda-recipe-manager as the translation layer? At least as a first-pass implementation?

marcelotrevisani commented 6 months ago

Yes, sure I just don't have the capacity now for that, due to some personal and work obligations. However, I can review the PR If you would like to give a try please let me know :)

schuylermartin45 commented 6 months ago

I might be able to start on this next week. I have some low-hanging fruit that'll improve compatibility with rattler-build I want to address and then I should be free to take a look.

schuylermartin45 commented 6 months ago

Not to set myself up for failure, but this looks relatively straight-forward so far. This will be the first project that consumes conda-recipe-manager, so I'm sure there will be some unexpected hurdles.

My current plan is to add a new flag to grayskull. If it is set, perform the conversion in utils.generate_recipe() before we dump the recipe contents. I'll also automatically use recipe.yaml over meta.yaml where applicable.

schuylermartin45 commented 6 months ago

I put up a draft PR until I can get unblocked on a few things. See my PR description for more details.

schuylermartin45 commented 5 months ago

I put up a draft PR until I can get unblocked on a few things. See my PR description for more details.

This PR is now out of Draft. I found a workaround to the plugin issue I was encountering.