old_contents: import setuptools
  from distutils.util import convert_path
  
  
  with open("README.md", "r") as description_file:
      long_description = description_file.read()
  
  with open("requirements.txt", "r") as requirements_file:
      requirements = requirements_file.read().split("\n")
  
  main_ns = {}
  ver_path = convert_path("nndownload/nndownload.py")
  with open(ver_path, encoding="utf8") as ver_file:
      exec(ver_file.read(), main_ns)
  
  setuptools.setup(
      name="nndownload",
      version=main_ns["__version__"],
      author="AlexAplin",
      description="nndownload allows you to process videos and other links from Niconico.",
      long_description=long_description,
      long_description_content_type="text/markdown",
      url="https://github.com/AlexAplin/nndownload",
      packages=["nndownload"],
      install_requires=requirements,
      python_requires=">=3.5.3",
      scripts=["nndownload/nndownload.py"],
      classifiers=[
          "Programming Language :: Python",
          "Programming Language :: Python :: 3",
          "License :: OSI Approved :: MIT License",
          "Natural Language :: English"
      ]
  )
  
new_contents: import re
  import setuptools
  from distutils.util import convert_path
  
  
  with open("README.md", "r") as description_file:
      long_description = description_file.read()
  
  with open("requirements.txt", "r") as requirements_file:
      requirements = requirements_file.read().split("\n")
  
  ver_path = convert_path("nndownload/nndownload.py")
  with open(ver_path, encoding="utf8") as ver_file:
      version = re.search(r'__version__ = "(.+)"', ver_file.read()).group(1)
  
  setuptools.setup(
      name="nndownload",
      version=version,
      author="AlexAplin",
      description="nndownload allows you to process videos and other links from Niconico.",
      long_description=long_description,
      long_description_content_type="text/markdown",
      url="https://github.com/AlexAplin/nndownload",
      packages=["nndownload"],
      install_requires=requirements,
      python_requires=">=3.5.3",
      scripts=["nndownload/nndownload.py"],
      classifiers=[
          "Programming Language :: Python",
          "Programming Language :: Python :: 3",
          "License :: OSI Approved :: MIT License",
          "Natural Language :: English"
      ]
  )
  
subject: Fix version fetching in setup.py (#89)