import io
import re
import setuptools
import sys

with open("pydocmk2/__init__.py", encoding="utf8") as fp:
    version = re.search(r"__version__\s*=\s*'(.*)'", fp.read()).group(1)

with open("README.md", encoding="utf8") as fp:
    long_description = fp.read()

setuptools.setup(
    name="pydocmk2",
    version=version,
    author="Adam Twardoch",
    author_email="adam+github@twardoch.com",
    description="Create Python API documentation in Markdown format",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/twardoch/pydocmk2",
    license="MIT + PSF2",
    packages=setuptools.find_packages(".", ["test", "test.*", "docs", "docs.*"]),
    package_dir={"": "."},
    include_package_data=False,
    extras_require={},
    tests_require=[],
    python_requires=">=3.10",
    data_files=[],
    entry_points={
        "console_scripts": [
            "pydocmk2=pydocmk2.__main__:main",
        ]
    },
    cmdclass={},
    keywords=["markdown", "pydoc", "generator", "docs", "documentation"],
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Intended Audience :: End Users/Desktop",
        "Topic :: Software Development :: Code Generators",
        "Topic :: Utilities",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.10",
    ],
)
