# Licensed under a 3-clause BSD style license - see LICENSE.rst

import os
import glob

ROOT = os.path.dirname(__file__)


def get_package_data():
    # Find all files in data/ sub-directories since this is a standard location
    # for data files. We then need to adjust the paths to be relative to here
    # (otherwise glob will be evaluated relative to setup.py)
    data_files = glob.glob(os.path.join(ROOT, "**", "data", "**", "*"), recursive=True)
    data_files = [os.path.relpath(x, ROOT) for x in data_files]

    # # Glob doesn't recognize hidden files
    # data_files.append('utils/tests/data/.hidden_file.txt')

    return {"hendrics": data_files}
