old_contents: from __future__ import with_statement
  import os.path
  import setuptools
  import sys
  
  import tcconfig
  
  
  MISC_DIR = "misc"
  REQUIREMENT_DIR = "requirements"
  
  needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
  pytest_runner = ['pytest-runner'] if needs_pytest else []
  
  
  with open("README.rst") as fp:
      long_description = fp.read()
  
  with open(os.path.join(MISC_DIR, "summary.txt")) as f:
      summary = f.read()
  
  with open(os.path.join(REQUIREMENT_DIR, "requirements.txt")) as f:
      install_requires = [line.strip() for line in f if line.strip()]
  
  with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
      tests_require = [line.strip() for line in f if line.strip()]
  
  major, minor = sys.version_info[:2]
  if major == 2 and minor <= 5:
      install_requires.extend([
          "argparse",
      ])
  
  setuptools.setup(
      name="tcconfig",
      version=tcconfig.VERSION,
      author="Tsuyoshi Hombashi",
      author_email="gogogo.vm@gmail.com",
      url="https://github.com/thombashi/tcconfig",
      description=summary,
      keywords=["traffic control", "bandwidth", "latency", "packet loss"],
      long_description=long_description,
      license="MIT License",
      include_package_data=True,
      packages=setuptools.find_packages(exclude=['test*']),
      install_requires=install_requires,
      setup_requires=pytest_runner,
      tests_require=tests_require,
      classifiers=[
          "Development Status :: 4 - Beta",
          "Environment :: Console",
          "Intended Audience :: System Administrators",
          "License :: OSI Approved :: MIT License",
          "Operating System :: POSIX",
          "Operating System :: POSIX :: Linux",
          "Programming Language :: Python :: 2",
          "Programming Language :: Python :: 2.5",
          "Programming Language :: Python :: 2.6",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3",
          "Programming Language :: Python :: 3.3",
          "Programming Language :: Python :: 3.4",
          "Programming Language :: Python :: 3.5",
          "Topic :: System :: Networking",
      ],
      entry_points={
          "console_scripts": [
              "tcset=tcconfig.tcset:main",
              "tcdel=tcconfig.tcdel:main",
              "tcshow=tcconfig.tcshow:main",
          ],
      }
  )
  
new_contents: from __future__ import with_statement
  import os.path
  import setuptools
  import sys
  
  import tcconfig
  
  
  MISC_DIR = "misc"
  REQUIREMENT_DIR = "requirements"
  
  needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
  pytest_runner = ['pytest-runner'] if needs_pytest else []
  
  
  with open("README.rst") as fp:
      long_description = fp.read()
  
  with open(os.path.join(MISC_DIR, "summary.txt")) as f:
      summary = f.read()
  
  with open(os.path.join(REQUIREMENT_DIR, "requirements.txt")) as f:
      install_requires = [line.strip() for line in f if line.strip()]
  
  with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
      tests_require = [line.strip() for line in f if line.strip()]
  
  major, minor = sys.version_info[:2]
  if major == 2 and minor <= 5:
      install_requires.extend([
          "argparse",
      ])
  
  setuptools.setup(
      name="tcconfig",
      version=tcconfig.VERSION,
      author="Tsuyoshi Hombashi",
      author_email="gogogo.vm@gmail.com",
      url="https://github.com/thombashi/tcconfig",
      description=summary,
      keywords=["traffic control", "bandwidth", "latency", "packet loss"],
      long_description=long_description,
      license="MIT License",
      include_package_data=True,
      packages=setuptools.find_packages(exclude=['test*']),
      install_requires=install_requires,
      setup_requires=pytest_runner,
      tests_require=tests_require,
      classifiers=[
          "Development Status :: 4 - Beta",
          "Environment :: Console",
          "Intended Audience :: System Administrators",
          "License :: OSI Approved :: MIT License",
          "Operating System :: POSIX",
          "Operating System :: POSIX :: Linux",
          "Programming Language :: Python :: 2",
          "Programming Language :: Python :: 2.6",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3",
          "Programming Language :: Python :: 3.3",
          "Programming Language :: Python :: 3.4",
          "Programming Language :: Python :: 3.5",
          "Topic :: System :: Networking",
      ],
      entry_points={
          "console_scripts": [
              "tcset=tcconfig.tcset:main",
              "tcdel=tcconfig.tcdel:main",
              "tcshow=tcconfig.tcshow:main",
          ],
      }
  )
  
subject: Drop support for Python 2.5