Skip to content

Commit

Permalink
Remove Pkg dependency (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Aug 12, 2024
1 parent a1849dd commit 61a4247
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
Expand Down
5 changes: 1 addition & 4 deletions src/Alpine.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
__precompile__()

module Alpine

using JuMP

import Combinatorics
import LinearAlgebra: dot, Diagonal
import Statistics
import Combinatorics
import Pkg

const ALPINE_DEBUG = false
const Alp = Alpine
Expand Down
8 changes: 3 additions & 5 deletions src/log.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ function logging_summary(m::Optimizer)
println(" MIP solver = ", m.mip_solver_id)

printstyled("ALPINE CONFIGURATION\n", color = :cyan, bold = true)
println(
" Alpine version = ",
Pkg.TOML.parse(read(string(pkgdir(Alpine), "/Project.toml"), String))["version"],
)

project = read(joinpath(dirname(@__DIR__), "Project.toml"), String)
m_version = match(r"version \= \"(.+?)\"", project)
println(" Alpine version = ", m_version[1])
if Alp.is_min_sense(m)
println(
" Maximum iterations (lower-bounding MIPs) = ",
Expand Down

0 comments on commit 61a4247

Please sign in to comment.