"""Setuptools package definition."""

import codecs

from setuptools import find_packages, setup

from timed import __version__

with codecs.open('README.md', 'r', encoding='UTF-8') as f:
    README_TEXT = f.read()

setup(
    name='timed',
    version=__version__,
    author='Adfinis SyGroup AG',
    author_email='https://adfinis-sygroup.ch/',
    description='Timetracking software',
    long_description=README_TEXT,
    install_requires=(
        'python-dateutil>=2.6,<2.7',
        'django>=1.11,<1.12',
        'django-auth-ldap==1.2.11',
        'django-filter==1.0.2',
        'django-multiselectfield==0.1.6',
        'djangorestframework>=3.6,<3.7',
        'djangorestframework-jsonapi==2.2.0',
        'djangorestframework-jwt==1.10.0',
        'psycopg2>=2.7,<2.8',
        'pytz==2017.2',
        'pyexcel-webio==0.1.2',
        'pyexcel-io==0.4.2',
        'django-excel==0.0.9',
        'pyexcel-ods3==0.4.0',
        'pyexcel-xlsx==0.4.1',
        'django-environ==0.4.3',
        'rest_condition==1.0.3',
    ),
    keywords='timetracking',
    url='https://adfinis-sygroup.ch/',
    packages=find_packages(),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'License :: OSI Approved :: '
        'GNU Affero General Public License v3',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3.5',
    ]
)

@@ -44,16 +44,62 @@
 t codecs
+%0Aimport os%0Afrom collections import defaultdict
 %0A%0Afrom s
@@ -255,16 +255,801 @@
 read()%0A%0A
+%0Adef find_data(packages, extensions):%0A    %22%22%22Find data files along with source.%0A%0A    :param   packages: Look in these packages%0A    :param extensions: Look for these extensions%0A    %22%22%22%0A    data = defaultdict(list)%0A    for package in packages:%0A        package_path = package.replace('.', '/')%0A        for dirpath, _, filenames in os.walk(package_path):%0A            for filename in filenames:%0A                for extension in extensions:%0A                    if filename.endswith('.%25s' %25 extension):%0A                        file_path = os.path.join(%0A                            dirpath,%0A                            filename%0A                        )%0A                        file_path = file_path%5Blen(package) + 1:%5D%0A                        data%5Bpackage%5D.append(file_path)%0A    return data%0A%0A%0A
 setup(%0A 
@@ -1921,24 +1921,24 @@
 group.ch/',%0A
-
     packages
@@ -1955,16 +1955,84 @@
 ages(),%0A
+    package_data=find_data(%0A        find_packages(), %5B'txt'%5D%0A    ),%0A
     clas

Include templates in python package