<commit_before># -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages


IS_PY3 = sys.version_info > (3,)

install_requires = (
    'cnx-archive',
    'cnx-epub',
    'openstax-accounts',
    'psycopg2',
    'pyramid',
    'pyramid_multiauth',
    )
tests_require = [
    'webtest',
    ]
extras_require = {
    'test': tests_require,
    }
description = """\
Application for accepting publication requests to the Connexions Archive."""

if not IS_PY3:
    tests_require.append('mock')

setup(
    name='cnx-publishing',
    version='0.1',
    author='Connexions team',
    author_email='<EMAIL>',
    url="https://github.com/connexions/cnx-publishing",
    license='LGPL, See also LICENSE.txt',
    description=description,
    install_requires=install_requires,
    tests_require=tests_require,
    extras_require=extras_require,
    test_suite='cnxpublishing.tests',
    packages=find_packages(),
    include_package_data=True,
    package_data={
        'cnxpublishing': ['sql/*.sql', 'sql/*/*.sql'],
        },
    entry_points="""\
    [paste.app_factory]
    main = cnxpublishing.main:main
    [console_scripts]
    cnx-publishing-initdb = cnxpublishing.scripts.initdb:main
    """,
    )
<commit_msg>Install pyramid 1.5 or newer which has the new SignedCookieSessionFactory<commit_after># -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages


IS_PY3 = sys.version_info > (3,)

install_requires = (
    'cnx-archive',
    'cnx-epub',
    'openstax-accounts',
    'psycopg2',
    'pyramid>=1.5',
    'pyramid_multiauth',
    )
tests_require = [
    'webtest',
    ]
extras_require = {
    'test': tests_require,
    }
description = """\
Application for accepting publication requests to the Connexions Archive."""

if not IS_PY3:
    tests_require.append('mock')

setup(
    name='cnx-publishing',
    version='0.1',
    author='<NAME>',
    author_email='<EMAIL>',
    url="https://github.com/connexions/cnx-publishing",
    license='LGPL, See also LICENSE.txt',
    description=description,
    install_requires=install_requires,
    tests_require=tests_require,
    extras_require=extras_require,
    test_suite='cnxpublishing.tests',
    packages=find_packages(),
    include_package_data=True,
    package_data={
        'cnxpublishing': ['sql/*.sql', 'sql/*/*.sql'],
        },
    entry_points="""\
    [paste.app_factory]
    main = cnxpublishing.main:main
    [console_scripts]
    cnx-publishing-initdb = cnxpublishing.scripts.initdb:main
    """,
    )

{'fraction_non_alphanumeric': 0.14138204924543288, 'fraction_numerical': 0.007148530579825258, 'mean_word_length': 3.4901960784313726, 'pattern_counts': {'":': 0, '<': 6, '<?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': '2153730', 'n_tokens_mistral': 873, 'n_tokens_neox': 858, 'n_words': 144}