<commit_before># encoding: utf-8

import codecs
import os
from setuptools import setup, find_packages
import subprocess

PACKAGE_NAME = 'publicstatic'
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))


def get_desc():
    """Get long description by converting README file to reStructuredText."""
    file_name = os.path.join(LOCAL_PATH, 'README.md')
    if not os.path.exists(file_name):
        return ''

    try:
        cmd = "pandoc --from=markdown --to=rst %s" % file_name
        stdout = subprocess.STDOUT
        output = subprocess.check_output(cmd, shell=True, stderr=stdout)
        return output.decode('utf-8')
    except subprocess.CalledProcessError:
        print('pandoc is required for package distribution but not installed')
        return codecs.open(file_name, mode='r', encoding='utf-8').read()


def get_version():
    with open(os.path.join(LOCAL_PATH, PACKAGE_NAME, 'version.py')) as f:
        variables = {}
        exec(f.read(), variables)
        version = variables.get('__version__')
        if not version:
            raise RuntimeError('version definition not found')
        return version


setup(
    name=PACKAGE_NAME,
    description='Yet another static website builder. A good one.',
    version=get_version(),
    license='MIT',
    author='<NAME>',
    author_email='<EMAIL>',
    url='http://github.com/dreikanter/public-static',
    long_description=get_desc(),
    platforms=['any'],
    packages=find_packages(),
    install_requires=[
        'beautifulsoup4',
        'jinja2',
        'markdown >= 2.4',
        'mdx_grid',
        'pygments',
        'pyyaml',
        'yuicompressor',
    ],
    entry_points={
        'console_scripts': [
            'pub = %s:main' % PACKAGE_NAME
        ]
    },
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Site Management',
        'Topic :: Text Processing :: General',
        'Topic :: Text Processing :: Markup',
        'Topic :: Text Processing :: Markup :: HTML',
    ],
    dependency_links=[
        'https://github.com/dreikanter/markdown-grid/tarball/master#egg=mdx_grid-0.2.2'
    ],
)<commit_msg>Dependency URL updated<commit_after># encoding: utf-8

import codecs
import os
from setuptools import setup, find_packages
import subprocess

PACKAGE_NAME = 'publicstatic'
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))


def get_desc():
    """Get long description by converting README file to reStructuredText."""
    file_name = os.path.join(LOCAL_PATH, 'README.md')
    if not os.path.exists(file_name):
        return ''

    try:
        cmd = "pandoc --from=markdown --to=rst %s" % file_name
        stdout = subprocess.STDOUT
        output = subprocess.check_output(cmd, shell=True, stderr=stdout)
        return output.decode('utf-8')
    except subprocess.CalledProcessError:
        print('pandoc is required for package distribution but not installed')
        return codecs.open(file_name, mode='r', encoding='utf-8').read()


def get_version():
    with open(os.path.join(LOCAL_PATH, PACKAGE_NAME, 'version.py')) as f:
        variables = {}
        exec(f.read(), variables)
        version = variables.get('__version__')
        if not version:
            raise RuntimeError('version definition not found')
        return version


setup(
    name=PACKAGE_NAME,
    description='Yet another static website builder. A good one.',
    version=get_version(),
    license='MIT',
    author='<NAME>',
    author_email='<EMAIL>',
    url='http://github.com/dreikanter/public-static',
    long_description=get_desc(),
    platforms=['any'],
    packages=find_packages(),
    install_requires=[
        'beautifulsoup4',
        'jinja2',
        'markdown >= 2.4',
        'mdx_grid',
        'pygments',
        'pyyaml',
        'yuicompressor',
    ],
    entry_points={
        'console_scripts': [
            'pub = %s:main' % PACKAGE_NAME
        ]
    },
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Site Management',
        'Topic :: Text Processing :: General',
        'Topic :: Text Processing :: Markup',
        'Topic :: Text Processing :: Markup :: HTML',
    ],
    dependency_links=[
        'git+https://github.com/dreikanter/markdown-grid.git#egg=mdx_grid'
    ],
)
{'fraction_non_alphanumeric': 0.13372758489126288, 'fraction_numerical': 0.005532239603204884, 'mean_word_length': 2.721078779276082, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1383893', 'n_tokens_mistral': 1600, 'n_tokens_neox': 1542, 'n_words': 364}