#!/usr/bin/python3

from distutils.core import setup
import glob
import os

def data_files():
    data_files = []
    for root, dirs, files in os.walk('share'):
        if files:
            files = [ "%s/%s" % (root, file) for file in files ]
            data_files.append((root.replace('share', 'share/auto-upgrade-tester'),files))
    return data_files

setup(name='auto-upgrade-testing',
      packages=['AutoUpgradeTester'],
      package_dir={'': '.'},
      scripts=glob.glob("bin/*"),
      data_files=data_files()
      )
