from pathlib import Path
from setuptools import Extension, setup  # type: ignore


if __name__ == "__main__":

    with (Path(__file__).parent / "README.md").open(encoding="UTF-8") as file:
        long_description = file.read()

    setup(
        author="<NAME>",
        author_email="<EMAIL>",
        description="Over 600 fast Python bindings to the CPython C API.",
        ext_modules=[Extension(name="pycapi", sources=["pycapi.c"])],
        keywords="API C CPython Python",
        license="MIT",
        long_description=long_description,
        long_description_content_type="text/markdown",
        name="pycapi",
        url="https://github.com/brandtbucher/pycapi",
        version="0.81.2",
    )

from pathlib import Path
from setuptools import Extension, setup  # type: ignore


if __name__ == "__main__":

    with (Path(__file__).parent / "README.md").open(encoding="UTF-8") as file:
        long_description = file.read()

    setup(
        author="<NAME>",
        author_email="<EMAIL>",
        description="Over 600 fast Python bindings to the CPython C API.",
        ext_modules=[Extension(name="pycapi", sources=["pycapi.c"])],
        keywords="API C CPython Python",
        license="MIT",
        long_description=long_description,
        long_description_content_type="text/markdown",
        name="pycapi",
        url="https://github.com/brandtbucher/pycapi",
        version="0.81.2",
    )

# type: ignore