old_contents: # coding=utf-8
  from setuptools import setup
  
  from setuptools.command.test import test as TestCommand
  
  class PyTest(TestCommand):
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          #import here, cause outside the eggs aren't loaded
          import pytest
          import sys 
          errno = pytest.main(["-l", "--junitxml=test-result.xml", "tests/unit-tests", "tests/integration-tests"])
          sys.exit(errno)
  
  setup(
      name="teamcity-messages",
      version="1.9",
      author='JetBrains',
      author_email='teamcity-feedback@jetbrains.com',
      description='Send test results ' +
                  'to TeamCity continuous integration server from unittest, nose and py.test',
      long_description="""This packages provides unittest, nose and py.test
  plugins for sending test result messages
  to TeamCity continuous integration server
  http://www.jetbrains.com/teamcity/
  
  **unittest**: see examples/simple.py for example how to
  write your own test file which reports messages
  under TeamCity and prints usual diagnostics without it.
  
  **nose**, **py.test** : test status reporting enabled automatically under TeamCity build (when teamcity-messages package is installed)
  
  **django**: For Django 1.6+: Use the Teamcity runner instead of the default DiscoverRunner by changing the following setting in your settings.py:
  TEST_RUNNER = "teamcity.django.TeamcityDjangoRunner"
  If you are using another test runner, you should override the `run_suite` method or use the `DiscoverRunner.test_runner` property introduced in Django 1.7.
  
  """,
      license='Apache 2.0',
      keywords='unittest teamcity test nose py.test pytest jetbrains',
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: Apache Software License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
          'Topic :: Software Development :: Testing'
      ],
      url="https://github.com/JetBrains/teamcity-python",
      platforms=["any"],
  
      packages=["teamcity"],
  
      tests_require=['pytest', 'virtualenv'],
      cmdclass={'test': PyTest},
  
      entry_points={
          'nose.plugins': [
              'nose-teamcity = teamcity.nose_report:TeamcityReport'
          ],
  
          'pytest11': [
              'name_of_plugin = teamcity.pytest_plugin',
          ],
      },
  )
  
new_contents: # coding=utf-8
  from setuptools import setup
  
  from setuptools.command.test import test as TestCommand
  
  class PyTest(TestCommand):
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          #import here, cause outside the eggs aren't loaded
          import pytest
          import sys 
          errno = pytest.main(["-l", "--junitxml=test-result.xml", "tests/unit-tests", "tests/integration-tests"])
          sys.exit(errno)
  
  setup(
      name="teamcity-messages",
      version="1.9",
      author='JetBrains',
      author_email='teamcity-feedback@jetbrains.com',
      description='Send test results ' +
                  'to TeamCity continuous integration server from unittest, nose and py.test',
      long_description="""This packages provides unittest, nose and py.test
  plugins for sending test result messages
  to TeamCity continuous integration server
  http://www.jetbrains.com/teamcity/
  
  **unittest**: see examples/simple.py for example how to
  write your own test file which reports messages
  under TeamCity and prints usual diagnostics without it.
  
  **nose**, **py.test** : test status reporting enabled automatically under TeamCity build (when teamcity-messages package is installed)
  
  **django**: For Django 1.6+: Use the Teamcity runner instead of the default DiscoverRunner by changing the following setting in your settings.py:
  TEST_RUNNER = "teamcity.django.TeamcityDjangoRunner"
  If you are using another test runner, you should override the `run_suite` method or use the `DiscoverRunner.test_runner` property introduced in Django 1.7.
  
  ChangeLog: https://github.com/JetBrains/teamcity-python/blob/master/CHANGELOG.txt
  """,
      license='Apache 2.0',
      keywords='unittest teamcity test nose py.test pytest jetbrains',
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: Apache Software License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
          'Topic :: Software Development :: Testing'
      ],
      url="https://github.com/JetBrains/teamcity-python",
      platforms=["any"],
  
      packages=["teamcity"],
  
      tests_require=['pytest', 'virtualenv'],
      cmdclass={'test': PyTest},
  
      entry_points={
          'nose.plugins': [
              'nose-teamcity = teamcity.nose_report:TeamcityReport'
          ],
  
          'pytest11': [
              'name_of_plugin = teamcity.pytest_plugin',
          ],
      },
  )
  
subject: add ChangeLog link to setup.py description