You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.8 KiB

6 years ago
6 years ago
7 years ago
  1. # -*- coding: utf-8 -*-
  2. import re
  3. from setuptools import setup
  4. with open("README.md", "r") as fh:
  5. long_description = fh.read()
  6. with open("requirements.txt", "r") as fh:
  7. reqs = fh.read().split("\n")
  8. with open("dev-requirements.txt", "r") as fh:
  9. dev_reqs = fh.read().split("\n")
  10. with open("docs-requirements.txt", "r") as fh:
  11. docs_reqs = fh.read().split("\n")
  12. VERSIONFILE = "keycloak/_version.py"
  13. verstrline = open(VERSIONFILE, "rt").read()
  14. VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
  15. mo = re.search(VSRE, verstrline, re.M)
  16. if mo:
  17. verstr = mo.group(1)
  18. else:
  19. raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
  20. setup(
  21. name="python-keycloak",
  22. version=verstr,
  23. url="https://github.com/marcospereirampj/python-keycloak",
  24. license="The MIT License",
  25. author="Marcos Pereira, Richard Nemeth",
  26. author_email="marcospereira.mpj@gmail.com; ryshoooo@gmail.com",
  27. keywords="keycloak openid oidc",
  28. description="python-keycloak is a Python package providing access to the Keycloak API.",
  29. long_description=long_description,
  30. long_description_content_type="text/markdown",
  31. packages=["keycloak"],
  32. install_requires=reqs,
  33. tests_require=dev_reqs,
  34. extras_require={"docs": docs_reqs},
  35. python_requires=">=3.7",
  36. project_urls={
  37. "Documentation": "https://python-keycloak.readthedocs.io/en/latest/",
  38. "Issue tracker": "https://github.com/marcospereirampj/python-keycloak/issues",
  39. },
  40. classifiers=[
  41. "Programming Language :: Python :: 3",
  42. "License :: OSI Approved :: MIT License",
  43. "Development Status :: 3 - Alpha",
  44. "Operating System :: MacOS",
  45. "Operating System :: Unix",
  46. "Operating System :: Microsoft :: Windows",
  47. "Topic :: Utilities",
  48. ],
  49. )