<commit_before>from distutils.core import setup
from os import environ
from pip.req import parse_requirements

install_req = parse_requirements('requirements/core.txt', session='skip')
req = [str(ir.req) for ir in install_req]


def read_md(filename):
    try:
        from pypandoc import convert_file
        return convert_file(filename, 'rst')
    except (ImportError, OSError):
        if environ.get('CI', False):
            return open(filename).read()
        else:
            raise


setup(
    name='django_mock_queries',
    packages=['django_mock_queries'],
    version='1.0.4',
    description='A django library for mocking queryset functions in memory for testing',
    long_description=read_md('README.md'),
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/stphivos/django-mock-queries',
    keywords='django orm mocking unit-testing tdd',
    classifiers=[],
    install_requires=req
)
<commit_msg>Fix setup.py to not require pypandoc<commit_after>from distutils.core import setup
from pip.req import parse_requirements

install_req = parse_requirements('requirements/core.txt', session='skip')
req = [str(ir.req) for ir in install_req]


def read_md(filename):
    try:
        from pypandoc import convert_file
        return convert_file(filename, 'rst')
    except (ImportError, OSError):
        return open(filename).read()


setup(
    name='django_mock_queries',
    packages=['django_mock_queries'],
    version='1.0.4',
    description='A django library for mocking queryset functions in memory for testing',
    long_description=read_md('README.md'),
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/stphivos/django-mock-queries',
    keywords='django orm mocking unit-testing tdd',
    classifiers=[],
    install_requires=req
)

{'fraction_non_alphanumeric': 0.1184573002754821, 'fraction_numerical': 0.003305785123966942, 'mean_word_length': 3.9482288828337873, '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': '3760162', 'n_tokens_mistral': 562, 'n_tokens_neox': 553, 'n_words': 130}