text: import os
  import io
  import re
  import setuptools
  
  
  def get_long_description():
      base_dir = os.path.abspath(os.path.dirname(__file__))
      with io.open(os.path.join(base_dir, "README.md"), encoding="utf-8") as f:
          return f.read()
  
  
  def get_requirements():
      with open('requirements.txt') as f:
          return f.read().splitlines()
  
  
  def get_version():
      current_dir = os.path.abspath(os.path.dirname(__file__))
      version_file = os.path.join(current_dir,
                                  "confplot",
                                  "__init__.py")
      with io.open(version_file, encoding="utf-8") as f:
          return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]',
                           f.read(),
                           re.M).group(1)
  
  
  setuptools.setup(
      name="confplot",
      version=get_version(),
      author="Fatih Cagatay Akyon",
      description="Plot a pretty confusion matrix (like Matlab) in python using seaborn and matplotlib",
      long_description=get_long_description(),
      long_description_content_type="text/markdown",
      url="https://github.com/fcakyon/confplot",
      packages=setuptools.find_packages(),
      classifiers=[
          "Programming Language :: Python :: 3",
          "License :: OSI Approved :: MIT License",
          "Operating System :: OS Independent",
      ],
      install_requires=get_requirements(),
      python_requires='>=3.6',
  )
  