<commit_before>#! /usr/bin/env python
# encoding: utf-8

from distutils.core import setup


setup(
    name='django-sphinxdoc',
    version='0.3.2',
    author='<NAME>',
    author_email='<EMAIL> at sofa-rockers.org',
    description='Easily integrate Sphinx documentation into your website.',
    # long_description=open('README.txt').read(),
    url='http://stefan.sofa-rockers.org/django-sphinxdoc/',
    download_url='http://bitbucket.org/scherfke/django-sphinxdoc/downloads/',
    license='BSD',
    packages=[
        'sphinxdoc', 
        # 'sphinxdoc.templatetags',
    ],
    package_data={
        'sphinxdoc': ['templates/sphinxdoc/*'],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',<commit_msg>Workaround for some distutils-flaws<commit_after>#! /usr/bin/env python
# encoding: utf-8

from distutils.core import setup


class UltraMagicString(object):
    # Catch-22:
    # - if I return Unicode, python setup.py --long-description as well
    #   as python setup.py upload fail with a UnicodeEncodeError
    # - if I return UTF-8 string, python setup.py sdist register
    #   fails with an UnicodeDecodeError

    def __init__(self, value):
        self.value = value

    def __str__(self):
        return self.value

    def __unicode__(self):
        return self.value.decode('UTF-8')

    def __add__(self, other):
        return UltraMagicString(self.value + str(other))

    def split(self, *args, **kw):
        return self.value.split(*args, **kw)


setup(
    name='django-sphinxdoc',
    version='0.3.2',
    author='<NAME>',
    author_email='<EMAIL> sofa-rockers.org',
    description='Easily integrate Sphinx documentation into your website.',
    long_description=UltraMagicString(open('README.txt').read()),
    url='http://stefan.sofa-rockers.org/django-sphinxdoc/',
    download_url='http://bitbucket.org/scherfke/django-sphinxdoc/downloads/',
    license='BSD',
    packages=[
        'sphinxdoc', 
        # 'sphinxdoc.templatetags',
    ],
    package_data={
        'sphinxdoc': ['templates/sphinxdoc/*'],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
{'fraction_non_alphanumeric': 0.14337403889642697, 'fraction_numerical': 0.006331976481230212, 'mean_word_length': 3.081180811808118, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3965662', 'n_tokens_mistral': 741, 'n_tokens_neox': 705, 'n_words': 142}