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.

58 lines
1.8 KiB

6 years ago
6 years ago
7 years ago
  1. # -*- coding: utf-8 -*-
  2. import re
  3. from setuptools import find_packages, 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 = "src/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=find_packages("src"),
  32. package_dir={"": "src"},
  33. install_requires=reqs,
  34. tests_require=dev_reqs,
  35. extras_require={"docs": docs_reqs},
  36. python_requires=">=3.7",
  37. project_urls={
  38. "Documentation": "https://python-keycloak.readthedocs.io/en/latest/",
  39. "Issue tracker": "https://github.com/marcospereirampj/python-keycloak/issues",
  40. },
  41. classifiers=[
  42. "Programming Language :: Python :: 3",
  43. "License :: OSI Approved :: MIT License",
  44. "Development Status :: 3 - Alpha",
  45. "Operating System :: MacOS",
  46. "Operating System :: Unix",
  47. "Operating System :: Microsoft :: Windows",
  48. "Topic :: Utilities",
  49. ],
  50. )