Skip to content

Commit

Permalink
Update JSOBestie template
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot committed Dec 15, 2024
1 parent c071c7f commit de04a57
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .breakage/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[deps]
GitHub = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26"
PkgDeps = "839e9fc8-855b-5b3c-a3b7-2833d3dd1f59"
18 changes: 18 additions & 0 deletions .breakage/get_jso_users.jl
Original file line number Diff line number Diff line change
@@ -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)
9 changes: 9 additions & 0 deletions .copier-answers.jso.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit de04a57

Please sign in to comment.