old_contents: import sys
  
  from setuptools import setup
  from setuptools.command.test import test
  
  
  class Tox(test):
      def initialize_options(self):
          test.initialize_options(self)
          self.tox_args = None
  
      def finalize_options(self):
          test.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import tox
          sys.exit(tox.cmdline())
  
  if __name__ == '__main__':
      setup(
          name='hdrhistogram',
          version='0.0.1',
          description='High Dynamic Range histogram in native python',
          url='https://github.com/ahothan/hdrhistogram',
          author='Alec Hothan',
          author_email='ahothan@gmail.com',
          license='Apache 2.0',
  
          py_modules=['hdrh'],
          keywords='hdrhistogram hdr histogram high dynamic range',
          tests_require=['tox'],
          cmdclass={'test': Tox}
      )
  
new_contents: import sys
  
  from setuptools import setup
  from setuptools.command.test import test
  
  
  class Tox(test):
      def initialize_options(self):
          test.initialize_options(self)
          self.tox_args = None
  
      def finalize_options(self):
          test.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import tox
          sys.exit(tox.cmdline())
  
  __version__='0.0.2'
  
  if __name__ == '__main__':
      setup(
          name='hdrhistogram',
          version=__version__,
          description='High Dynamic Range histogram in native python',
          url='https://github.com/ahothan/hdrhistogram',
          download_url='https://github.com/ahothan/hdrhistogram/tarball/' + __version__,
          author='Alec Hothan',
          author_email='ahothan@gmail.com',
          license='Apache 2.0',
  
          py_modules=['hdrh'],
          keywords='hdrhistogram hdr histogram high dynamic range',
          tests_require=['tox'],
          cmdclass={'test': Tox}
      )
  
subject: Set download_url for Pypi