Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: julia-actions/setup-julia@latest
with:
version: 1.3
version: 1.6
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
- version: '1'
os: ubuntu-latest
arch: x64
- version: '1.0'
- version: '1'
os: windows-latest
arch: x64
- version: '1.6'
os: ubuntu-latest
arch: x64
- version: '1.0'
- version: '1.6'
os: ubuntu-latest
arch: x86
- version: '1'
os: windows-latest
arch: x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand Down
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "MathOptInterface"
uuid = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
version = "0.10.9"
version = "1.0.0"

[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Expand All @@ -16,14 +16,14 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[compat]
BenchmarkTools = "0.4, 0.5, 0.6, 0.7, 1.0"
BenchmarkTools = "1"
CodecBzip2 = "~0.6, 0.7"
CodecZlib = "~0.6, 0.7"
JSON = "~0.21"
JSONSchema = "1"
MutableArithmetics = "0.3"
MutableArithmetics = "1"
OrderedCollections = "1"
julia = "1"
julia = "1.6"

[extras]
JSONSchema = "7d188eb4-7ad8-530c-ae41-71a32a6d4692"
Expand Down
4 changes: 1 addition & 3 deletions src/Bridges/Bridges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ function Base.show(io::IO, B::AbstractBridgeOptimizer)
return
end

if VERSION > v"1.4.2"
include("precompile.jl")
end
include("precompile.jl")

end
8 changes: 2 additions & 6 deletions src/MathOptInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ include("modifications.jl")
include("variables.jl")
include("nlp.jl")

if VERSION > v"1.4.2"
include("precompile.jl")
end
include("precompile.jl")

# submodules
include("Utilities/Utilities.jl") # MOI.Utilities
Expand All @@ -249,9 +247,7 @@ include("instantiate.jl")
include("deprecate.jl")
include("DeprecatedTest/DeprecatedTest.jl")

if VERSION > v"1.4.2"
_precompile_()
end
_precompile_()

"""
IndexMap()
Expand Down
12 changes: 2 additions & 10 deletions src/Test/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,7 @@ function _test_attribute_value_type(
ci::MOI.ConstraintIndex,
)
T = MOI.attribute_value_type(attribute)
@static if VERSION < v"1.5"
@test MOI.get(model, attribute, ci) isa T
else
@test @inferred(T, MOI.get(model, attribute, ci)) isa T
end
@test @inferred(T, MOI.get(model, attribute, ci)) isa T
return
end

Expand All @@ -455,11 +451,7 @@ function _test_attribute_value_type(
x::MOI.VariableIndex,
)
T = MOI.attribute_value_type(attribute)
@static if VERSION < v"1.5"
@test MOI.get(model, attribute, x) isa T
else
@test @inferred(T, MOI.get(model, attribute, x)) isa T
end
@test @inferred(T, MOI.get(model, attribute, x)) isa T
return
end

Expand Down
6 changes: 2 additions & 4 deletions src/Utilities/Utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ include("print.jl")

include("lazy_iterators.jl")

if VERSION > v"1.4.2"
include("precompile.jl")
_precompile_()
end
include("precompile.jl")
_precompile_()

end # module