Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: remove Tricks.jl #156

Merged
merged 3 commits into from
Nov 1, 2024
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 Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ LinearAlgebra = "1"
Measurements = "2"
ScientificTypes = "3"
TestItems = "0.1, 1"
Tricks = "0.1"
Tricks = "0.1.9"
Unitful = "1"
julia = "1.10"

Expand Down
6 changes: 5 additions & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Tricks: static_fieldnames
@static if VERSION <= v"1.11.0-"
@eval using Tricks: static_fieldnames
else
@eval const static_fieldnames = fieldnames
end

const DEFAULT_DIM_BASE_TYPE = FixedRational{DEFAULT_NUMERATOR_TYPE,DEFAULT_DENOM}
const DEFAULT_VALUE_TYPE = Float64
Expand Down
4 changes: 2 additions & 2 deletions test/test_aqua.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using DynamicQuantities
using Aqua

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

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