old_contents: from setuptools import setup, find_packages
  from setuptools.command.test import test as TestCommand
  import os
  import re
  
  
  with open(os.path.join(os.path.abspath(os.path.dirname(
          __file__)), 'aiohttp_apiset', '__init__.py'), 'r',
          encoding='latin1') as fp:
      try:
          version = re.findall(r"^__version__ = '([^']+)'$", fp.read(), re.M)[0]
      except IndexError:
          raise RuntimeError('Unable to determine version.')
  
  
  def read(f):
      return open(os.path.join(os.path.dirname(__file__), f)).read().strip()
  
  install_requires = ['aiohttp>=0.21', 'pyyaml']
  
  
  class PyTest(TestCommand):
      user_options = []
  
      def run(self):
          import subprocess
          import sys
          errno = subprocess.call([sys.executable, '-m', 'pytest', 'tests'])
          raise SystemExit(errno)
  
  
  tests_require = install_requires + [
      'pytest',
      'pytest-asyncio',
      'pytest-cov',
      'pytest-pep8']
  
  
  setup(name='aiohttp_apiset',
        version=version,
        description='Build routes using swagger specification',
        classifiers=[
            'License :: OSI Approved :: Apache Software License',
            'Intended Audience :: Developers',
            'Programming Language :: Python',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: 3.5',
            'Topic :: Internet :: WWW/HTTP'],
        author='Alexander Malev',
        author_email='malev@somedev.ru',
        url='https://github.com/aamalev/aiohttp_apiset/',
        license='Apache 2',
        packages=find_packages(),
        install_requires=install_requires,
        tests_require=tests_require,
        include_package_data=True,
        cmdclass=dict(test=PyTest),
  )
  
new_contents: from setuptools import setup, find_packages
  from setuptools.command.test import test as TestCommand
  import os
  import re
  
  
  with open(os.path.join(os.path.abspath(os.path.dirname(
          __file__)), 'aiohttp_apiset', '__init__.py'), 'r',
          encoding='latin1') as fp:
      try:
          version = re.findall(r"^__version__ = '([^']+)'$", fp.read(), re.M)[0]
      except IndexError:
          raise RuntimeError('Unable to determine version.')
  
  
  def read(f):
      return open(os.path.join(os.path.dirname(__file__), f)).read().strip()
  
  install_requires = ['aiohttp>=0.21', 'pyyaml']
  
  
  class PyTest(TestCommand):
      user_options = []
  
      def run(self):
          import subprocess
          import sys
          errno = subprocess.call([sys.executable, '-m', 'pytest', 'tests'])
          raise SystemExit(errno)
  
  
  tests_require = install_requires + [
      'pytest',
      'pytest-aiohttp',
      'pytest-mock',
      'pytest-cov',
      'pytest-pep8']
  
  
  setup(name='aiohttp_apiset',
        version=version,
        description='Build routes using swagger specification',
        classifiers=[
            'License :: OSI Approved :: Apache Software License',
            'Intended Audience :: Developers',
            'Programming Language :: Python',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: 3.5',
            'Topic :: Internet :: WWW/HTTP'],
        author='Alexander Malev',
        author_email='malev@somedev.ru',
        url='https://github.com/aamalev/aiohttp_apiset/',
        license='Apache 2',
        packages=find_packages(),
        install_requires=install_requires,
        tests_require=tests_require,
        include_package_data=True,
        cmdclass=dict(test=PyTest),
  )
  
subject: fix tests require