old_contents: from setuptools import find_packages, setup
  
  
  def get_version() -> str:
      rel_path = "src/huggingface_hub/__init__.py"
      with open(rel_path, "r") as fp:
          for line in fp.read().splitlines():
              if line.startswith("__version__"):
                  delim = '"' if '"' in line else "'"
                  return line.split(delim)[1]
      raise RuntimeError("Unable to find version string.")
  
  
  install_requires = [
      "filelock",
      "requests",
      "tqdm",
      "pyyaml",
      "typing-extensions",
      "importlib_metadata;python_version<'3.8'",
      "packaging>=20.9",
  ]
  
  extras = {}
  
  extras["torch"] = [
      "torch",
  ]
  
  extras["tensorflow"] = [
      "tensorflow",
  ]
  
  extras["testing"] = [
      "pytest",
      "datasets",
  ]
  
  extras["quality"] = [
      "black>=20.8b1",
      "isort>=5.5.4",
      "flake8>=3.8.3",
  ]
  
  extras["all"] = extras["testing"] + extras["quality"]
  
  extras["dev"] = extras["all"]
  
  
  setup(
      name="huggingface_hub",
      version=get_version(),
      author="Hugging Face, Inc.",
      author_email="julien@huggingface.co",
      description="Client library to download and publish models on the huggingface.co hub",
      long_description=open("README.md", "r", encoding="utf-8").read(),
      long_description_content_type="text/markdown",
      keywords="model-hub machine-learning models natural-language-processing deep-learning pytorch pretrained-models",
      license="Apache",
      url="https://github.com/huggingface/huggingface_hub",
      package_dir={"": "src"},
      packages=find_packages("src"),
      extras_require=extras,
      entry_points={
          "console_scripts": [
              "huggingface-cli=huggingface_hub.commands.huggingface_cli:main"
          ]
      },
      python_requires=">=3.6.0",
      install_requires=install_requires,
      classifiers=[
          "Intended Audience :: Developers",
          "Intended Audience :: Education",
          "Intended Audience :: Science/Research",
          "License :: OSI Approved :: Apache Software License",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 3",
          "Topic :: Scientific/Engineering :: Artificial Intelligence",
      ],
  )
  
new_contents: from setuptools import find_packages, setup
  
  
  def get_version() -> str:
      rel_path = "src/huggingface_hub/__init__.py"
      with open(rel_path, "r") as fp:
          for line in fp.read().splitlines():
              if line.startswith("__version__"):
                  delim = '"' if '"' in line else "'"
                  return line.split(delim)[1]
      raise RuntimeError("Unable to find version string.")
  
  
  install_requires = [
      "filelock",
      "requests",
      "tqdm",
      "pyyaml",
      "typing-extensions>=3.7.4.3",  # to be able to import TypeAlias
      "importlib_metadata;python_version<'3.8'",
      "packaging>=20.9",
  ]
  
  extras = {}
  
  extras["torch"] = [
      "torch",
  ]
  
  extras["tensorflow"] = [
      "tensorflow",
  ]
  
  extras["testing"] = [
      "pytest",
      "datasets",
  ]
  
  extras["quality"] = [
      "black>=20.8b1",
      "isort>=5.5.4",
      "flake8>=3.8.3",
  ]
  
  extras["all"] = extras["testing"] + extras["quality"]
  
  extras["dev"] = extras["all"]
  
  
  setup(
      name="huggingface_hub",
      version=get_version(),
      author="Hugging Face, Inc.",
      author_email="julien@huggingface.co",
      description="Client library to download and publish models on the huggingface.co hub",
      long_description=open("README.md", "r", encoding="utf-8").read(),
      long_description_content_type="text/markdown",
      keywords="model-hub machine-learning models natural-language-processing deep-learning pytorch pretrained-models",
      license="Apache",
      url="https://github.com/huggingface/huggingface_hub",
      package_dir={"": "src"},
      packages=find_packages("src"),
      extras_require=extras,
      entry_points={
          "console_scripts": [
              "huggingface-cli=huggingface_hub.commands.huggingface_cli:main"
          ]
      },
      python_requires=">=3.6.0",
      install_requires=install_requires,
      classifiers=[
          "Intended Audience :: Developers",
          "Intended Audience :: Education",
          "Intended Audience :: Science/Research",
          "License :: OSI Approved :: Apache Software License",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 3",
          "Topic :: Scientific/Engineering :: Artificial Intelligence",
      ],
  )
  
subject: fix typing-extensions minimum version (#453)