-
Notifications
You must be signed in to change notification settings - Fork 2
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
Publish Rust crates #374
Comments
I suggest to use The owner of the crate on https://crates.io/ is the one linked that has their Github account linked. I believe multiple owners are possible, so the practical approach would be that one of you or even both of you own it, and then we ask @scarrazza if we could link the NNPDF organization account to crates.io. I'd also like to give the ownership of PineAPPL to the NNPDF organization. In any case, the practical significance is that we need to store a key in the CI in to order publish the crate. Publishing is actually quite easy, see the corresponding action for PineAPPL (all the other stuff is more complicated indeed): This automatically publishes all crates if a commit has been tagged with a tag name |
You can disambiguate the two, I'm already doing that in other cases, e.g. in PineAPPL:
I can pass ownership, no problem. To NNPDF would be ideal, but I'm not sure that is possible with crates.io. EDIT: it is, it could even be owned by the @NNPDF/theory team
All the complexity comes for the CLI, the C API, supporting py3.6 (which EKO does not)
CratesIn principle, you do not even need to WheelsIf you do not have any special need, you should be able to just use https://github.com/PyO3/maturin-action and you're done. There is even a You might have to change working directory, because the workspace is not top-level - but I could also make it top-level, just moving All in all everything should be pretty simple and smooth, but... do we have to apply every time the patches? Or are you going all-in to Rust and dropping them? |
eventually, we will go all-in - but for the moment we go incrementally (e.g. currently only LO QCD is supported), so it will still take a bit (although we should push for it #369 ) in any case also a manual solution would be fine at the moment, just to get started (i.e. sort out the problems) and to reserve the respective names ... |
Actually, the patches are just for running with Whenever you need the workflow, just let me know, and I will try to make them and make reusable, to put them in https://github.com/NNPDF/workflows. |
When ever you have time please go ahead ... |
Continuation of the discussion in #372
We should start publish our rust crates to crates.io. For that I can see some questions:
eko
, but this would not work inside python/maturin aseko
is as a name already taken of course - can we disambiguate the two? or we just keep ekors? The nameeko
is reservedeko
is currently owned by @alecandido).@alecandido your help would be greatly appreciated 🙏 .
The text was updated successfully, but these errors were encountered: