Skip to content

Commit 88984e8

Browse files
authored
Merge pull request #156 from SymbolicML/remove-tricks
deps: remove Tricks.jl
2 parents 5ad02cc + 62b4ed0 commit 88984e8

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ LinearAlgebra = "1"
2626
Measurements = "2"
2727
ScientificTypes = "3"
2828
TestItems = "0.1, 1"
29-
Tricks = "0.1"
29+
Tricks = "0.1.9"
3030
Unitful = "1"
3131
julia = "1.10"
3232

src/types.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using Tricks: static_fieldnames
1+
@static if VERSION <= v"1.11.0-"
2+
@eval using Tricks: static_fieldnames
3+
else
4+
@eval const static_fieldnames = fieldnames
5+
end
26

37
const DEFAULT_DIM_BASE_TYPE = FixedRational{DEFAULT_NUMERATOR_TYPE,DEFAULT_DENOM}
48
const DEFAULT_VALUE_TYPE = Float64

test/test_aqua.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using DynamicQuantities
22
using Aqua
33

4-
Aqua.test_all(DynamicQuantities; ambiguities=false)
4+
Aqua.test_all(DynamicQuantities; ambiguities=false, stale_deps=VERSION < v"1.11.0-")
55

66
# Only test range of versions so we don't go insane with ambiguities
7-
@static if VERSION >= v"1.10" && VERSION < v"1.11"
7+
@static if VERSION >= v"1.10.0-" && VERSION < v"1.11.0-"
88
Aqua.test_ambiguities(DynamicQuantities)
99
end

0 commit comments

Comments
 (0)