<commit_before>from __future__ import print_function

import setuptools
import sys

version = '0.1.dev0'

# Convert README.md to reStructuredText.
if {'bdist_wheel', 'sdist'}.intersection(sys.argv):
    try:
        import pypandoc
    except ImportError:
        print('ERROR: You must install `pypandoc` to convert `README.md` to '
              'reStructuredText to use as long description.',
              file=sys.stderr)
        exit(1)
    print('Converting `README.md` to reStructuredText to use as long '
          'description.')
    long_description = pypandoc.convert('README.md', 'rst')

setuptools.setup(
    name='django-model-settings',
    version=version,
    author='Interaction Consortium',
    author_email='<EMAIL>',
    url='https://github.com/ixc/django-model-settings',
    description='Editable settings via polymorphic models with a dict-like '
                'interface and template tags.',
    long_description=locals().get('long_description', ''),
    license='MIT',
    packages=setuptools.find_packages(),
    install_requires=[
        'django-classy-tags',
        'django-polymorphic',<commit_msg>Don't require `pypandoc` to install, but use it if available.<commit_after>from __future__ import print_function

import setuptools
import sys

version = '0.1.dev0'

# Convert README.md to reStructuredText.
if {'bdist_wheel', 'sdist'}.intersection(sys.argv):
    try:
        import pypandoc
    except ImportError:
        print('WARNING: You should install `pypandoc` to convert `README.md` '
              'to reStructuredText to use as long description.',
              file=sys.stderr)
    else:
        print('Converting `README.md` to reStructuredText to use as long '
              'description.')
        long_description = pypandoc.convert('README.md', 'rst')

setuptools.setup(
    name='django-model-settings',
    version=version,
    author='Interaction Consortium',
    author_email='<EMAIL>',
    url='https://github.com/ixc/django-model-settings',
    description='Editable settings via polymorphic models with a dict-like '
                'interface and template tags.',
    long_description=locals().get('long_description', ''),
    license='MIT',
    packages=setuptools.find_packages(),
    install_requires=[
        'django-classy-tags',
        'django-polymorphic',
{'fraction_non_alphanumeric': 0.11790017211703958, 'fraction_numerical': 0.0030120481927710845, 'mean_word_length': 3.219600725952813, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2025537', 'n_tokens_mistral': 704, 'n_tokens_neox': 685, 'n_words': 160}