text: import os
  import setuptools
  import sys
  
  from setuptools.command.install import install
  
  try:
      from pipenv.project import Project
      from pipenv.utils import convert_deps_to_pip
  except:
      exit_msg = (
          "pipenv is required to package Streamlit. Please install pipenv and try again"
      )
      sys.exit(exit_msg)
  
  VERSION = "0.74.1"  # PEP-440
  
  NAME = "streamlit"
  
  DESCRIPTION = "The fastest way to build data apps in Python"
  
  LONG_DESCRIPTION = (
      "Streamlit's open-source app framework is the easiest way "
      "for data scientists and machine learning engineers to "
      "create beautiful, performant apps in only a few hours! "
      "All in pure Python. All for free."
  )
  
  pipfile = Project(chdir=False).parsed_pipfile
  
  packages = pipfile["packages"].copy()
  requirements = convert_deps_to_pip(packages, r=False)
  
  
  class VerifyVersionCommand(install):
      """Custom command to verify that the git tag matches our version"""
  
      description = "verify that the git tag matches our version"
  
      def run(self):
          tag = os.getenv("CIRCLE_TAG")
  
          if tag != VERSION:
              info = "Git tag: {0} does not match the version of this app: {1}".format(
                  tag, VERSION
              )
              sys.exit(info)
  
  
  setuptools.setup(
      name=NAME,
      version=VERSION,
      description=DESCRIPTION,
      long_description=LONG_DESCRIPTION,
      url="https://streamlit.io",
      author="Streamlit Inc",
      author_email="hello@streamlit.io",
      python_requires=">=3.6",
      license="Apache 2",
      packages=setuptools.find_packages(exclude=["tests", "tests.*"]),
      # Requirements
      install_requires=requirements,
      zip_safe=False,  # install source files not egg
      include_package_data=True,  # copy html and friends
      entry_points={"console_scripts": ["streamlit = streamlit.cli:main"]},
      # For Windows so that streamlit * commands work ie.
      # - streamlit version
      # - streamlit hello
      scripts=["bin/streamlit.cmd"],
      cmdclass={
          "verify": VerifyVersionCommand,
      },
  )
  