<commit_before>from setuptools import setup, find_packages
import versioneer
setup(name='clinvoc',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      author='<NAME>',
      author_email='<EMAIL>',
      url='https://github.com/jcrudy/clinvoc',
      package_data={'clinvoc': ['resources/**']},
      packages=find_packages(),
      requires=[]
     )<commit_msg>Cover subdirectories of resources recursively in setup.py<commit_after>from setuptools import setup, find_packages
import versioneer
import os

def package_files(directory):
    paths = []
    for (path, _, filenames) in os.walk(directory):
        for filename in filenames:
            paths.append(os.path.join('..', path, filename))
    return paths

setup(name='clinvoc',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      author='<NAME>',
      author_email='<EMAIL>',
      url='https://github.com/jcrudy/clinvoc',
      package_data={'clinvoc': package_files(os.path.join('clinvoc', 'resources'))},
      packages=find_packages(),
      requires=[]
     )
{'fraction_non_alphanumeric': 0.14467697907188354, 'fraction_numerical': 0.0, 'mean_word_length': 3.824561403508772, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4162896', 'n_tokens_mistral': 343, 'n_tokens_neox': 340, 'n_words': 60}