from distutils.core import setup
from distutils import util
from pathlib import Path
import sys

if __name__ == "__main__":
    
    # package paths
    jwtPath = util.convert_path("jsonWebToken")

    # get version file
    versionPath = Path().cwd() / "jsonWebToken/version.py"

    main_ns = {}

    with open(str(versionPath)) as ver_file:
        exec(ver_file.read(), main_ns)

    # get long description
    longDescription = (Path().cwd() / "README.md").read_text()

    # running setup
    setup(
        name="jsonWebToken",
        version=main_ns['__version__'],
        description="Collection of functions to create JWT (signed)",
        long_description=longDescription,
        long_description_content_type="text/markdown",
        author="<NAME>",
        author_email="<EMAIL>",
        url="https://github.com/No9005/jwt",
        license="MIT",
        package_dir={
            "jsonWebToken":jwtPath
        },
        packages=["jsonWebToken", "jsonWebToken.helpers", "jsonWebToken.algorithmn"],
        install_requires=['Authlib']
    )
from distutils.core import setup
from distutils import util
from pathlib import Path
import sys

if __name__ == "__main__":
    
    # package paths
    jwtPath = util.convert_path("jsonWebToken")

    # get version file
    versionPath = Path().cwd() / "jsonWebToken/version.py"

    main_ns = {}

    with open(str(versionPath)) as ver_file:
        exec(ver_file.read(), main_ns)

    # get long description
    longDescription = (Path().cwd() / "README.md").read_text()

    # running setup
    setup(
        name="jsonWebToken",
        version=main_ns['__version__'],
        description="Collection of functions to create JWT (signed)",
        long_description=longDescription,
        long_description_content_type="text/markdown",
        author="<NAME>",
        author_email="<EMAIL>",
        url="https://github.com/No9005/jwt",
        license="MIT",
        package_dir={
            "jsonWebToken":jwtPath
        },
        packages=["jsonWebToken", "jsonWebToken.helpers", "jsonWebToken.algorithmn"],
        install_requires=['Authlib']
    )
# package paths # get version file # get long description # running setup