Creating a new package with the same environment as an existing package

Hello,

I want to create a new package that has exactly the same environment as an existing package. I would appreciate some help with how to do this. I have read Working with Julia projects | Julia programming notes and jkrumbiegel.com – Pkg.jl and Julia Environments for Beginners. Thank you to both the authors. These helped a lot, but I have some follow up questions.

(1) The second link listed above explains how to reproduce an environment. However, it is not clear how to use it reproduce a package with a different name. A new package with different name already has a Project.toml with the new project name and UUID etc. Does one have to manually copy the deps from an existing project to this one before running instantiate?

(2) The first link shows how to get the compat lines in Project.toml. But it seems this has to be done manually for each dependency. Is that correct? Can one generate the compat section from the Manifest.toml automatically?

Thank you.

2 Likes