try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

with open('requirements.txt') as f:
    required = f.read().splitlines()

with open('README.md') as readme_file:
    readme = readme_file.read()

long_desc = """
Pyami is a commandline/GUI-based tool for analysing scientific papers
in XML, TXT or PDF. It splitrs them into semantic sections which are searchable, transformable and can
be further processed by standard Python and other tools. Sections include text, images, tables, etc. 
"""

requirements = [
# 'beautifulsoup4~=4.10.0',
 'braceexpand==0.1.7',
 'lxml~=4.7.1',
# 'matplotlib~=3.5.1',
# 'nltk~=3.6.7',
 'pdfminer3==2018.12.3.0',
# 'Pillow~=9.1.1',
# 'psutil~=5.9.0',
# 'PyPDF2==1.26.0',
# 'python-rake',
# 'setuptools~=60.3.1',
# 'SPARQLWrapper==1.8.5',
# 'tkinterhtml==0.7',
# 'tkinterweb==3.5.0',
#
# 'future~=0.18.2',
 'pdfplumber~=0.7.1',
# 'requests~=2.27.1',
# 'pip~=22.1.2',
# 'configparser~=5.0.2',
# 'zlib~=1.2.11',
# 'wheel~=0.35.1',
# 'openssl~=1.1.1h',
# 'cryptography~=37.0.2',
# 'py~=1.9.0',
# 'keyring~=21.4.0',
# 'cython~=0.29.21',
# 'bs4~=0.0.1',
 'pyamiimage~=0.0.12',
# 'numpy~=1.22.0',
# 'sklearn~=0.0',
# 'scikit-learn~=0.23.2',
# 'backports~=1.0',

]

setup(
    name='py4ami',
    url='https://github.com/petermr/pyami',
    version='0.0.31',
    description='Semantic Reader of the Scientific Literature.',
    long_description_content_type='text/markdown',
    long_description=readme,
    author="Peter Murray-Rust",
    author_email='petermurrayrust@googlemail.com',
    license='Apache2',
    # install_requires='requirements',
    include_package_data=True,
    zip_safe=False,
    keywords='text and data mining',
    packages=[
        'py4ami'
    ],
    package_dir={'py4ami': 'py4ami'},
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Natural Language :: English',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.8',
    ],
    entry_points={
        'console_scripts': [
            'py4ami=py4ami.pyamix:main',
        ],
    },
    python_requires='>=3.7',
)
