<commit_before>from setuptools import setup, find_packages
from subprocess import check_output


name = 'foobar'
version_file = 'backrest/version.txt'


# update version from git
try:
    base = check_output('git describe --tags'.split()).strip()
    full = check_output('git describe --tags --long --dirty'.split()).strip()
except:
    pass
else:
    rest = full.replace(base, '', 1)
    if rest.startswith('-0-') and not rest.endswith('-dirty'):
        version = base
    else:
        version = full.replace('-', '.', 1)
    open(version_file, 'wb').write(version)


setup(name=name,
    version=open(version_file, 'rb').read(),
    url='https://github.com/pyfidelity/rest-seed',
    author='pyfidelity UG',
    author_email='<EMAIL>',
    description='...',
    classifiers=[
        "Programming Language :: Python",
        "Framework :: Pylons",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
    ],
    packages=find_packages(),
    package_data={
        'backrest': [
            'version.txt',
            'migrations/*.py',
            'migrations/versions/*.py',
            'templates/*.html',
            'tests/*.py',
        ],
    },
    data_files=[
        ('', ['alembic.ini'])
    ],
    zip_safe=False,
    install_requires=[
        'alembic',
        'bcrypt',
        'colander',
        'cornice >= 0.15',
        'html2text',
        'itsdangerous',
        'Paste',
        'PasteDeploy',
        'psycopg2',
        'pyramid',
        'pyramid_chameleon',
        'pyramid_mailer',
        'pyramid_tm',<commit_msg>driveby fix: we really do need colander > 1.0<commit_after>from setuptools import setup, find_packages
from subprocess import check_output


name = 'foobar'
version_file = 'backrest/version.txt'


# update version from git
try:
    base = check_output('git describe --tags'.split()).strip()
    full = check_output('git describe --tags --long --dirty'.split()).strip()
except:
    pass
else:
    rest = full.replace(base, '', 1)
    if rest.startswith('-0-') and not rest.endswith('-dirty'):
        version = base
    else:
        version = full.replace('-', '.', 1)
    open(version_file, 'wb').write(version)


setup(name=name,
    version=open(version_file, 'rb').read(),
    url='https://github.com/pyfidelity/rest-seed',
    author='pyfidelity UG',
    author_email='<EMAIL>',
    description='...',
    classifiers=[
        "Programming Language :: Python",
        "Framework :: Pylons",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
    ],
    packages=find_packages(),
    package_data={
        'backrest': [
            'version.txt',
            'migrations/*.py',
            'migrations/versions/*.py',
            'templates/*.html',
            'tests/*.py',
        ],
    },
    data_files=[
        ('', ['alembic.ini'])
    ],
    zip_safe=False,
    install_requires=[
        'alembic',
        'bcrypt',
        'colander >= 1.0b1',
        'cornice >= 0.15',
        'html2text',
        'itsdangerous',
        'Paste',
        'PasteDeploy',
        'psycopg2',
        'pyramid',
        'pyramid_chameleon',
        'pyramid_mailer',
        'pyramid_tm',
{'fraction_non_alphanumeric': 0.16682056017236072, 'fraction_numerical': 0.006463527239150508, 'mean_word_length': 2.2532532532532534, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '715673', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1037, 'n_words': 197}