from setuptools import setup, find_packages
from pathlib import Path
from shutil import copyfile

DATA_DIR = Path("./postprocess/data")
DATA_DIR.mkdir(exist_ok=True)

# This lets us access the files from the python package
for jsonp in Path.cwd().glob("../src/*.json"):
    copyfile(str(jsonp), str(DATA_DIR / jsonp.name))


setup(
    name="postprocess",
    version="0.0.1",
    url="https://github.com/freddyJarva/lttp-autotimer",
    packages=find_packages(exclude=("test")),
    include_package_data=True,
    package_data={"": ["data/*.json"]},
)

from setuptools import setup, find_packages
from pathlib import Path
from shutil import copyfile

DATA_DIR = Path("./postprocess/data")
DATA_DIR.mkdir(exist_ok=True)

# This lets us access the files from the python package
for jsonp in Path.cwd().glob("../src/*.json"):
    copyfile(str(jsonp), str(DATA_DIR / jsonp.name))


setup(
    name="postprocess",
    version="0.0.1",
    url="https://github.com/freddyJarva/lttp-autotimer",
    packages=find_packages(exclude=("test")),
    include_package_data=True,
    package_data={"": ["data/*.json"]},
)

# This lets us access the files from the python package