text: #!/usr/bin/env python
  
  """The setup script."""
  
  from setuptools import setup, find_packages
  import pathlib
  
  here = pathlib.Path(__file__).parent.resolve()
  
  with open(here / "README.rst") as readme_file:
      readme = readme_file.read()
  
  with open(here / "HISTORY.rst") as history_file:
      history = history_file.read()
  
  requirements = [{%- if cookiecutter.command_line_interface|lower == 'click' %}'Click>=7.0',{%- endif %} ]
  
  {%- set license_classifiers = {
      'MIT license': 'License :: OSI Approved :: MIT License',
      'BSD license': 'License :: OSI Approved :: BSD License',
      'ISC license': 'License :: OSI Approved :: ISC License (ISCL)',
      'Apache Software License 2.0': 'License :: OSI Approved :: Apache Software License',
      'GNU General Public License v3': 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)'
  } %}
  
  setup(
      author="{{ cookiecutter.full_name.replace('\"', '\\\"') }}",
      author_email="{{ cookiecutter.email }}",
      python_requires=">=3.6, <4",
      classifiers=[
          "Development Status :: 2 - Pre-Alpha",
          "Intended Audience :: Developers",
  {%- if cookiecutter.open_source_license in license_classifiers %}
          "{{ license_classifiers[cookiecutter.open_source_license] }}",
  {%- endif %}
          "Natural Language :: English",
          "Programming Language :: Python :: 3.6",
          "Programming Language :: Python :: 3.7",
          "Programming Language :: Python :: 3.8",
      ],
      description="{{ cookiecutter.project_short_description }}",
      {%- if 'no' not in cookiecutter.command_line_interface|lower %}
      entry_points={
          "console_scripts": [
              '{{ cookiecutter.project_slug }}={{ cookiecutter.project_slug }}.cli:main',
          ],
      },
      {%- endif %}
      install_requires=requirements,
  {%- if cookiecutter.open_source_license in license_classifiers %}
      license="{{ cookiecutter.open_source_license }}",
  {%- endif %}
      long_description=readme + "\n\n" + history,
      keywords="{{ cookiecutter.project_slug }}",
      name="{{ cookiecutter.project_slug }}",
      package_dir={"": "src"},
      packages=find_packages(where="src"),
      test_suite="tests",
      tests_require=["pytest"],
      url="https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}",
      version="{{ cookiecutter.version }}",
  )
  