File tree Expand file tree Collapse file tree 2 files changed +46
-5
lines changed
Expand file tree Collapse file tree 2 files changed +46
-5
lines changed Original file line number Diff line number Diff line change 1- julia 1.0
2- Combinatorics 0.7
3- GLM 1.0.1
4- Optim 0.17.2
5- SchumakerSpline 1.0.4
1+ julia 0.7
2+ Combinatorics
3+ DataFrames
4+ DataStructures
5+ Distributions
6+ GLM
7+ Optim
8+ SchumakerSpline
Original file line number Diff line number Diff line change 1+ # !/usr/bin/env julia
2+ # #####################################################################
3+ # Overwrite REQUIRE using dependency information from Project.toml.
4+ #
5+ # Call from the root of the package repository.
6+ #
7+ # Has some basic sanity checks, but **use at your own risk**, `REQUIRE`
8+ # will be overwritten.
9+ #
10+ # The purpose of this script is to appease attobot, until
11+ # https://github.com/attobot/attobot/issues/50 is fixed.
12+ # #####################################################################
13+
14+ @assert VERSION ≥ v" 0.7"
15+
16+ import Pkg
17+ const PT = Pkg. Types
18+
19+ Pkg. activate(pwd()) # current directory as the project
20+ ctx = PT. Context()
21+ pkg = ctx. env. pkg
22+ if pkg ≡ nothing
23+ @error " Not in a package, I won't generate REQUIRE."
24+ exit(1 )
25+ else
26+ @info " found package" pkg = pkg
27+ end
28+
29+ deps = PT. get_deps(ctx)
30+ non_std_deps = sort(collect(setdiff(keys(deps), values(ctx. stdlibs))))
31+
32+ open(" REQUIRE" , " w" ) do io
33+ println(io, " julia 0.7" )
34+ for d in non_std_deps
35+ println(io, d)
36+ @info " listing $d "
37+ end
38+ end
You can’t perform that action at this time.
0 commit comments