From de04a57a457eac47a4ff2e4b000c64f4feacec70 Mon Sep 17 00:00:00 2001 From: tmigot Date: Sun, 15 Dec 2024 12:03:08 -0500 Subject: [PATCH] Update JSOBestie template --- .breakage/Project.toml | 3 +++ .breakage/get_jso_users.jl | 18 ++++++++++++++++++ .copier-answers.jso.yml | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 .breakage/Project.toml create mode 100644 .breakage/get_jso_users.jl create mode 100644 .copier-answers.jso.yml diff --git a/.breakage/Project.toml b/.breakage/Project.toml new file mode 100644 index 0000000..a65fa1c --- /dev/null +++ b/.breakage/Project.toml @@ -0,0 +1,3 @@ +[deps] +GitHub = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26" +PkgDeps = "839e9fc8-855b-5b3c-a3b7-2833d3dd1f59" diff --git a/.breakage/get_jso_users.jl b/.breakage/get_jso_users.jl new file mode 100644 index 0000000..0d87f55 --- /dev/null +++ b/.breakage/get_jso_users.jl @@ -0,0 +1,18 @@ +import GitHub, PkgDeps # both export users() + +length(ARGS) >= 1 || error("specify at least one JSO package as argument") + +jso_repos, _ = GitHub.repos("JuliaSmoothOptimizers") +jso_names = [splitext(x.name)[1] for x ∈ jso_repos] + +name = splitext(ARGS[1])[1] +name ∈ jso_names || error("argument should be one of ", jso_names) + +dependents = String[] +try + global dependents = filter(x -> x ∈ jso_names, PkgDeps.users(name)) +catch e + # package not registered; don't insert into dependents +end + +println(dependents) diff --git a/.copier-answers.jso.yml b/.copier-answers.jso.yml new file mode 100644 index 0000000..b720e69 --- /dev/null +++ b/.copier-answers.jso.yml @@ -0,0 +1,9 @@ +PackageName: "NLPModelsModifiers" +PackageOwner: "JuliaSmoothOptimizers" +PackageUUID: "e01155f1-5c6f-4375-a9d8-616dd036575f" +_src_path: "https://github.com/JuliaSmoothOptimizers/JSOBestieTemplate.jl" +_commit: "7bcc7d0a2905be7ca9d1dd6519e8df59ae89605c" +AddBreakage: true +AddBenchmark: false +AddBenchmarkCI: true +AddCirrusCI: true