Skip to content

Commit ccb2ada

Browse files
committed
Use Compat to provide pkgversion
1 parent 4546f90 commit ccb2ada

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ uuid = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
33
version = "1.6.0"
44

55
[deps]
6+
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
67
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
78
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
89
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
@@ -12,6 +13,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1213

1314
[compat]
1415
Aqua = "0.8"
16+
Compat = ">= 4.11.0"
1517
JSON = "0.18, 0.19, 0.20, 0.21"
1618
JuliaFormatter = "1"
1719
Logging = "<0.0.1, 1"

src/BenchmarkTools.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ using Statistics
88
using UUIDs: uuid4
99
using Printf
1010
using Profile
11-
12-
const BENCHMARKTOOLS_VERSION = if VERSION >= v"1.9"
13-
pkgversion(BenchmarkTools)
14-
else
15-
v"1.6.0"
16-
end
11+
using Compat
1712

1813
##############
1914
# Parameters #

src/serialization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const VERSIONS = Dict(
2-
"Julia" => string(VERSION), "BenchmarkTools" => string(BENCHMARKTOOLS_VERSION)
2+
"Julia" => string(VERSION), "BenchmarkTools" => pkgversion(BenchmarkTools)
33
)
44

55
# TODO: Add any new types as they're added

0 commit comments

Comments
 (0)