-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update with JSOBestieTemplate for NLPModels (#483)
* Apply JSOBestieTemplate update * Remove CommentPR.yml
- Loading branch information
Showing
5 changed files
with
194 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.