jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
332 stars 83 forks source link

conda-forge #507

Closed jacobwilliams closed 2 years ago

jacobwilliams commented 2 years ago

See #506

jacobwilliams commented 2 years ago

@awvwgk This is great! I have some questions:

awvwgk commented 2 years ago

can you explain exactly how you did this? How something ends up on conda has always been a mystery to me.

The usual workflow is:

  1. Somebody creates a recipe (see https://github.com/conda-forge/staged-recipes/pull/17555)
  2. From here the conda-forge bot fleet will convert the recipe into a feedstock (basically a repository to "harvest" free CI resources to build the recipe into actual conda binary packages)
  3. Feedstock maintainers update the feedstocks or accept automatic updates provided by the bots (called migrations)
    • if you want to be added as maintainer to json-fortran, just let me know

it would be nice to have windows also

Yeah, that would be nice to have. No promises, though (last time I tried there was an error).

is it currently only for gnu? can we also have intel versions?

Only GCC at the moment. Intel and conda-forge still haven't decided whether it is okay to use their compilers at the scale of several thousand packages, unfortunately (some legal stuff about redistribution).

is this the shared library build? Do you have an example of how a user's application might link with this after conda installing it?

The shared lib is available. I should use it in my mctc-lib, but didn't get around to rebuild the packages yet.

How is this to be maintained in the future for updates? is it automatic if I push a new release tag? I'm guessing not and somebody (you?) would have to do something? What is that process?

Conda-forge has an impressive automation for this purpose. You tag a release, a bot picks it up, updates the recipe and sends a PR, all I have to do is merge it (or tell another bot to merge it if it passes CI). If you like I can add you as a maintainer, most feedstocks are almost no work (I'm currently maintaining ~40 feedstocks at conda-forge).

awvwgk commented 2 years ago

@jacobwilliams Let me know if you have any further questions regarding the conda-forge ecosystem.

jacobwilliams commented 2 years ago

Thanks! Very nice. Yep, could you go ahead and add me as a maintainer? Just in case I need to do something for whatever reason maybe? (I'm perfectly happy for you to do all the work though.)

Otherwise, I'm ready to merge this if it's ready to go.

awvwgk commented 2 years ago

Yep, could you go ahead and add me as a maintainer?

See https://github.com/conda-forge/json-fortran-feedstock/commit/8a7ddd314f54eb448389c4a10568c70f1f657ba9#commitcomment-64802870