#!/usr/bin/env python

import sys
from setuptools import setup

if sys.argv[-1] == "publish":
    print(
        """
    1. bumpversion minor (or patch, major)
    2. python setup.py sdist bdist_wheel
    3. twine upload dist/*
    """
    )
    sys.exit()


def get_long_description():
    """
    Return the README.
    """
    return open("README.md", "r", encoding="utf8").read()


setup(
    name="webstack-django-jwt-auth",
    version="1.4.0",
    url="https://github.com/webstack/django-jwt-auth",
    license="MIT",
    description="JSON Web Token based authentication for Django",
    long_description=get_long_description(),
    long_description_content_type="text/markdown",
    # Original author is "Jose Padilla <hello@jpadilla.com>"
    author="Stéphane Raimbault",
    author_email="stephane.raimbault@webstack.fr",
    packages=["jwt_auth"],
    test_suite="runtests.run_tests",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Web Environment",
        "Framework :: Django",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Topic :: Internet :: WWW/HTTP",
    ],
    install_requires=["Django>=2.0", "PyJWT>=2.0.0"],
)
