from setuptools import setup, find_packages
from Tribler.Core.version import version_id


with open('README.rst', 'r') as f:
    long_description = f.read()

with open('Tribler/LICENSE.txt', 'r') as f:
    licenses = f.read()

data_dirs = [
    'Tribler.Test.data',
    'Tribler.Test.Category.data.Tribler.Category',
    'Tribler.Test.data.41aea20908363a80d44234e8fef07fab506cd3b4',
    'Tribler.Test.data.contentdir',
    'Tribler.Test.Core.data',
    'Tribler.Test.Core.data.config_files',
    'Tribler.Test.Core.data.libtorrent',
    'Tribler.Test.Core.data.sqlite_scripts',
    'Tribler.Test.Core.data.torrent_creation_files',
    'Tribler.Test.Core.data.upgrade_databases',
]

setup(
    name='libtribler',
    description='Tribler core functionality package',
    long_description=long_description,
    license=licenses,
    version=str(version_id),
    url='https://github.com/Tribler/tribler',
    author='Tribler team from Delft University of Technology',
    package_data={'': ['*.*'],
                  'Tribler.Core.DecentralizedTracking.pymdht.core': ['bootstrap_stable', 'bootstrap_unstable'],
    },
    packages=find_packages() + data_dirs,
)
