Adding a package with Pkg3 currently produces a warning
Warning: packages will require to have a [Julia]Project.toml file in the future
(Gramatical aside - shouldn't that be "will be required to have a ..." or just "will require a ..."?)
I can see that Pkg3.generate and its REPL equivalent produce such a file and that the Compat package has this file but it wasn't clear to me how it is to be generated (and updated?) for an existing package.
Yes, should be added.
We're going to make PRs for all registered packages at some point, generating UUIDs based on the current registered names 鈥撀爐hat's how we've been doing it in the Uncurated registry. After that, going forward, new packages will generate random UUIDs instead.
Can I count on the uuid currently associated with a package being the eventual uuid for the package?
P.S. Let me know if you would prefer that I just wait for this to roll out and let you spend your time doing real work instead of responding to my questions.
Yes, you can count on it: since the current METADATA is a shared global namespace, we're going to assign UUIDs to all packages in METADATA based on their registered names. I don't mind answering questions 鈥撀爉y current work is writing docs and answering questions, so knowing what people are wondering about is quite helpful 馃槂
What's the process for generating the Project.toml file for an existing package that is not registered in METADATA.jl?
Doc request for generating Project.toml file for an existing package seconded; are there any early adopter examples (packages outside the stdlib) using Pkg/Pkg3?
Compat.jl.
In case anyone else happens upon this issue/request, MPI.jl after https://github.com/JuliaParallel/MPI.jl/pull/210 is a good example for how the new Pkg interacts with CI
Generating a Project.toml and Manifest.toml for an existing package: (Tested on Julia 1.5)
https://discourse.julialang.org/t/convert-require-to-project-toml-and-manifest-toml/17775/14
REF:
https://discourse.julialang.org/t/convert-require-to-project-toml-and-manifest-toml/17775/3
https://github.com/JuliaLang/Pkg.jl/commit/34ec22f5405ffc7f8f25a4b4f7178e887f718051
https://github.com/JuliaLang/Pkg.jl/blob/34ec22f5405ffc7f8f25a4b4f7178e887f718051/src/Types.jl
https://github.com/JuliaLang/Pkg.jl/search?p=1&q=gen_project.jl&type=Issues
Most helpful comment
What's the process for generating the Project.toml file for an existing package that is not registered in METADATA.jl?