<commit_before># -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2020 CERN.
# Copyright (C) 2021 Northwestern University.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""Database management for Invenio."""

import os

from setuptools import find_packages, setup

readme = open('README.rst').read()
history = open('CHANGES.rst').read()

tests_require = [
    "pytest-invenio>=1.4.0",
    "cryptography>=2.1.4",
    "mock>=4.0.0"
]

extras_require = {
    'docs': [
        'Sphinx>=3.0.0',
    ],
    'mysql': [
        'pymysql>=0.10.1',
    ],
    'postgresql': [
        'psycopg2-binary>=2.8.6',
    ],
    'versioning': [
        'SQLAlchemy-Continuum>=1.3.11',
    ],
    'tests': tests_require,
}

extras_require['all'] = []
for reqs in extras_require.values():
    extras_require['all'].extend(reqs)

install_requires = [
    'invenio-base>=1.2.3',
    'Flask-Alembic>=2.0.1',
    'Flask-SQLAlchemy>=2.1,<2.6.0',
    'SQLAlchemy>=1.2.18,<1.5.0',
    'SQLAlchemy-Utils>=0.33.1,<0.38',
]

packages = find_packages()


# Get the version string. Cannot be done with import!
g = {}
with open(os.path.join('invenio_db', 'version.py'), 'rt') as fp:
    exec(fp.read(), g)
    version = g['__version__']
setup(
    name='invenio-db',
    version=version,
    description=__doc__,
    long_description=readme + '\n\n' + history,
    keywords='invenio database',<commit_msg>Revert "installation: version bumps for SQLAlchemy 1.4"<commit_after># -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2020 CERN.
# Copyright (C) 2021 Northwestern University.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""Database management for Invenio."""

import os

from setuptools import find_packages, setup

readme = open('README.rst').read()
history = open('CHANGES.rst').read()

tests_require = [
    "pytest-invenio>=1.4.0",
    "cryptography>=2.1.4",
    "mock>=4.0.0"
]

extras_require = {
    'docs': [
        'Sphinx>=3.0.0',
    ],
    'mysql': [
        'pymysql>=0.10.1',
    ],
    'postgresql': [
        'psycopg2-binary>=2.8.6',
    ],
    'versioning': [
        'SQLAlchemy-Continuum>=1.3.11',
    ],
    'tests': tests_require,
}

extras_require['all'] = []
for reqs in extras_require.values():
    extras_require['all'].extend(reqs)

install_requires = [
    'invenio-base>=1.2.3',
    'Flask-Alembic>=2.0.1',
    'Flask-SQLAlchemy>=2.1,<2.5.0',
    'SQLAlchemy>=1.2.18,<1.4.0',
    'SQLAlchemy-Utils>=0.33.1,<0.36',
]

packages = find_packages()


# Get the version string. Cannot be done with import!
g = {}
with open(os.path.join('invenio_db', 'version.py'), 'rt') as fp:
    exec(fp.read(), g)
    version = g['__version__']
setup(
    name='invenio-db',
    version=version,
    description=__doc__,
    long_description=readme + '\n\n' + history,
    keywords='invenio database',
{'fraction_non_alphanumeric': 0.17882971729125574, 'fraction_numerical': 0.04142011834319527, 'mean_word_length': 3.2381615598885793, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, 'https://': 0, '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': '1474127', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1158, 'n_words': 237}