<commit_before>#
# Copyright (c) 2015, Open-RnD Sp. z o.o.  All rights reserved.
#
from __future__ import print_function
from setuptools import setup, find_packages
import os
import os.path

NAME='ros3dkrui'
VERSION = '0.1'

install_requires = ['tornado', 'dbus']
tests_require = []

ROOT = os.path.dirname(__file__)

def read(fpath):
    """Load file contents"""
    with open(os.path.join(ROOT, fpath)) as inf:
        return inf.read()

def find_data(fpath, prefix=''):
    def walk_helper(outentries, dirname, files):
        for fentry in files:
            full = os.path.join(dirname, fentry)
            # skip directories
            if os.path.isdir(full):
                continue
            outentries.append((os.path.join(prefix, dirname), [full]))

    outentries = []
    os.path.walk(fpath, walk_helper, outentries)
    print ("data files:", outentries)
    return outentries


setup(
    name=NAME,
    version=VERSION,
    packages=find_packages(exclude=['tests', 'tests.*']),
    description="Ros3D KR Web UI",
    long_description=read("README.rst"),
    install_requires=install_requires,
    tests_require=tests_require,
    author='OpenRnD',
    author_email='<EMAIL>',
    license='closed',
    entry_points = {
        'console_scripts': [
            'ros3d-kr-ui = ros3dkrui.cmd:main'
        ]
    },
    data_files=find_data('web-data', os.path.join('share', NAME))
)<commit_msg>setup: do not add data files prefix<commit_after>#
# Copyright (c) 2015, Open-RnD Sp. z o.o.  All rights reserved.
#
from __future__ import print_function
from setuptools import setup, find_packages
import os
import os.path

NAME='ros3dkrui'
VERSION = '0.1'

install_requires = ['tornado', 'dbus']
tests_require = []

ROOT = os.path.dirname(__file__)

def read(fpath):
    """Load file contents"""
    with open(os.path.join(ROOT, fpath)) as inf:
        return inf.read()

def find_data(fpath, prefix=''):
    def walk_helper(outentries, dirname, files):
        for fentry in files:
            full = os.path.join(dirname, fentry)
            # skip directories
            if os.path.isdir(full):
                continue
            outentries.append((os.path.join(prefix, dirname), [full]))

    outentries = []
    os.path.walk(fpath, walk_helper, outentries)
    print ("data files:", outentries)
    return outentries


setup(
    name=NAME,
    version=VERSION,
    packages=find_packages(exclude=['tests', 'tests.*']),
    description="Ros3D KR Web UI",
    long_description=read("README.rst"),
    install_requires=install_requires,
    tests_require=tests_require,
    author='OpenRnD',
    author_email='<EMAIL>',
    license='closed',
    entry_points = {
        'console_scripts': [
            'ros3d-kr-ui = ros3dkrui.cmd:main'
        ]
    },
    data_files=find_data('web-data')
)
{'fraction_non_alphanumeric': 0.13340448239060831, 'fraction_numerical': 0.007114905727499111, 'mean_word_length': 3.0931586608442503, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1900533', 'n_tokens_mistral': 947, 'n_tokens_neox': 916, 'n_words': 202}