Skip to content

Commit d4b951b

Browse files
committed
Bump project version and include PACKAGE_VERSION attribute
1 parent d5a400b commit d4b951b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicExpressions"
22
uuid = "a40a106e-89c9-4ca8-8020-a735e8728b6b"
33
authors = ["MilesCranmer <miles.cranmer@gmail.com>"]
4-
version = "0.2.3"
4+
version = "0.3.0"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/DynamicExpressions.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,11 @@ using Reexport
3131
@reexport import .InterfaceSymbolicUtilsModule: node_to_symbolic, symbolic_to_node
3232
@reexport import .SimplifyEquationModule: combine_operators, simplify_tree
3333

34+
import TOML: parsefile
35+
36+
const PACKAGE_VERSION = let
37+
project = parsefile(joinpath(pkgdir(@__MODULE__), "Project.toml"))
38+
VersionNumber(project["version"])
39+
end
40+
3441
end

0 commit comments

Comments
 (0)