""" Setup file for fmn.lib """

import sys
import os
import logging

from setuptools import setup

# Ridiculous as it may seem, we need to import multiprocessing and logging here
# in order to get tests to pass smoothly on python 2.7.
try:
    import multiprocessing
    import logging
except:
    pass


def get_description():
    with open('README.rst', 'r') as f:
        return '\n'.join(f.readlines()[2:])

requires = [
    'SQLAlchemy>=0.8',
    'beautifulsoup4',
    'fmn.rules',
    'docutils',
    'markupsafe',
]

if sys.version_info[0] == 2 and sys.version_info[1] <= 6:
    requires.extend([
        "ordereddict",
    ])

tests_require = [
    'nose',
]

setup(
    name='fmn.lib',
    version='0.4.1',
    description='Internal API components and model for Fedora Notifications',
    long_description=get_description(),
    author='Ralph Bean',
    author_email='rbean@redhat.com',
    url="https://github.com/fedora-infra/fmn.lib",
    download_url="https://pypi.python.org/pypi/fmn.lib/",
    license='LGPLv2+',
    install_requires=requires,
    tests_require=tests_require,
    test_suite='nose.collector',
    packages=['fmn', 'fmn.lib'],
    namespace_packages=['fmn'],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Environment :: Web Environment',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Intended Audience :: Developers',
        'Programming Language :: Python',
    ],
)

@@ -380,10 +380,8 @@
 rn '
-%5Cn
 '.jo

Remove extra newlines.