text: import re
  from pathlib import Path
  
  from setuptools import find_packages, setup
  
  
  def get_version(package: str) -> str:
      version = (Path("src") / package / "__version__.py").read_text()
      match = re.search("__version__ = ['\"]([^'\"]+)['\"]", version)
      assert match is not None
      return match.group(1)
  
  
  def get_long_description() -> str:
      with open("README.md", encoding="utf8") as readme:
          with open("CHANGELOG.md", encoding="utf8") as changelog:
              return readme.read() + "\n\n" + changelog.read()
  
  
  setup(
      name="djangorestframework-api-key",
      version=get_version("rest_framework_api_key"),
      description="API key permissions for the Django REST Framework",
      long_description=get_long_description(),
      long_description_content_type="text/markdown",
      url="http://github.com/florimondmanca/djangorestframework-api-key",
      project_urls={
          "Documentation": "https://florimondmanca.github.io/djangorestframework-api-key/"
      },
      author="Florimond Manca",
      author_email="florimond.manca@gmail.com",
      packages=find_packages("src"),
      package_dir={"": "src"},
      include_package_data=True,
      zip_safe=False,
      install_requires=[],
      python_requires=">=3.6",
      license="MIT",
      classifiers=[
          "Development Status :: 4 - Beta",
          "Operating System :: OS Independent",
          "Intended Audience :: Developers",
          "Programming Language :: Python :: 3 :: Only",
          "Programming Language :: Python :: 3.6",
          "Programming Language :: Python :: 3.7",
          "Programming Language :: Python :: 3.8",
          "Programming Language :: Python :: 3.9",
          "Programming Language :: Python :: 3.10",
          "Environment :: Web Environment",
          "Topic :: Software Development :: Libraries :: Python Modules",
          "Framework :: Django",
          "Framework :: Django :: 2.2",
          "Framework :: Django :: 3.2",
      ],
  )
  