from setuptools import setup, find_packages

import foliant


def readme():
    try:
        with open("README.rst", encoding="utf8") as f:
            return f.read()
    except IOError:
        pass

setup(
    name="foliant",
    version=foliant.__version__,
    url="https://github.com/foliant-docs/foliant",
    download_url="https://pypi.org/project/foliant",
    license="MIT",
    author="Konstantin Molchanov",
    author_email="moigagoo@live.com",
    description="Markdown-based, Pandoc-powered documentation generator.",
    long_description=readme(),
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Documentation",
        "Topic :: Utilities",
    ],
    packages=find_packages(),
    platforms="any",
    install_requires=[
        "PyDrive>=1.2.1",
        "docopt",
        "seqdiag",
        "colorama",
        "PyYAML"
    ],
    extras_require={
        "s2m": ["swagger2markdown>=0.1.9"],
        "a2m": ["apidoc2markdown"],
        "all": ["swagger2markdown>=0.1.9", "apidoc2markdown"]
    },
    entry_points={
        "console_scripts": [
            "foliant=foliant.cli:main"
        ]
    }
)

@@ -1101,178 +1101,8 @@
  %5D,%0A
-    extras_require=%7B%0A        %22s2m%22: %5B%22swagger2markdown%3E=0.1.9%22%5D,%0A        %22a2m%22: %5B%22apidoc2markdown%22%5D,%0A        %22all%22: %5B%22swagger2markdown%3E=0.1.9%22, %22apidoc2markdown%22%5D%0A    %7D,%0A
     

Remove unused dependencies.