setup.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import os
  2. import codecs
  3. from setuptools import setup, find_packages
  4. from drf_temptoken import __author__, __version__
  5. here = os.path.abspath(os.path.dirname(__file__))
  6. with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
  7. long_description = "\n" + fh.read()
  8. VERSION = __version__
  9. AUTHOR = __author__
  10. DESCRIPTION = 'DRF temporary token authentication'
  11. # Setting up
  12. setup(
  13. name="drf-temptoken",
  14. version=VERSION,
  15. author=AUTHOR,
  16. description=DESCRIPTION,
  17. url='https://notabug.org/kapustlo/drf-temptoken',
  18. long_description_content_type="text/markdown",
  19. long_description=long_description,
  20. packages=find_packages(),
  21. keywords=(
  22. 'python',
  23. 'python3',
  24. 'django',
  25. 'drf',
  26. 'djangorestframework',
  27. 'django rest framework',
  28. 'token',
  29. 'temptoken',
  30. 'temporary'
  31. ),
  32. classifiers=(
  33. "Framework :: Django",
  34. "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
  35. "Topic :: Internet :: WWW/HTTP",
  36. "Development Status :: 4 - Beta",
  37. "Intended Audience :: Developers",
  38. "Programming Language :: Python :: 3.8",
  39. "Operating System :: OS Independent",
  40. ),
  41. python_requires=">=3.8",
  42. install_requires=(
  43. 'django',
  44. 'djangorestframework'
  45. )
  46. )