# This file is a part of UpROOT.jl, licensed under the MIT License (MIT).

__precompile__(true)

module UpROOT

using Statistics

using ArraysOfArrays
using PyCall
using StatsBase
using Tables
using TypedTables

awkward = PyNULL()
uproot = PyNULL()
numpy = PyNULL()

include("testdata.jl")
include("pywrappers.jl")
include("rootio.jl")
include("opaque.jl")
include("pyjlconv.jl")
include("tdirectory.jl")
include("ttree.jl")

function __init__()
    copy!(awkward, pyimport_conda("awkward0", "awkward0", "conda-forge"))
    copy!(uproot, pyimport_conda("uproot3", "uproot3", "conda-forge"))
    copy!(numpy, pyimport("numpy"))

    for k in _testfile_keys
        testfiles[k] = _testfilename(k)
    end
end

end # module
