old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import re
  import sys
  from setuptools import setup, find_packages
  
  
  def get_version(package):
      '''
      Return package version as listed in `__version__` in `init.py`.
      '''
      init_py = open(os.path.join(package, '__init__.py')).read()
      return re.search(
          '^__version__ = [\'"]([^\'"]+)[\'"]', init_py, re.MULTILINE
      ).group(1)
  
  
  version = get_version('debreach')
  
  
  if sys.argv[-1] == 'publish':
      os.system('python setup.py sdist upload')
      args = {'version': version}
      print('You probably want to also tag the version now:')
      print(' git tag -a release/{version} -m \'version {version}\''.format(
          **args))
      print(' git push --tags')
      sys.exit()
  
  
  setup(
      name='django-debreach',
      version=version,
      url='http://github.com/lpomfrey/django-debreach',
      license='BSD',
      description='Adds middleware and context processors to give some '
                  'protection against the BREACH attack in Django.',
      author='Luke Pomfrey',
      author_email='lpomfrey@gmail.com',
      packages=find_packages(exclude=('test_project', 'docs')),
      install_requires=[],
      tests_require=[
          'django',
      ],
      test_suite='runtests.runtests',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: Implementation :: CPython',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Internet :: WWW/HTTP'
      ]
  )
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import re
  import sys
  from setuptools import setup, find_packages
  
  
  def get_version(package):
      '''
      Return package version as listed in `__version__` in `init.py`.
      '''
      init_py = open(os.path.join(package, '__init__.py')).read()
      return re.search(
          '^__version__ = [\'"]([^\'"]+)[\'"]', init_py, re.MULTILINE
      ).group(1)
  
  
  version = get_version('debreach')
  
  
  if sys.argv[-1] == 'publish':
      os.system('python setup.py sdist upload')
      os.system('python setup.py bdist_wheel upload')
      args = {'version': version}
      print('You probably want to also tag the version now:')
      print(' git tag -a release/{version} -m \'version {version}\''.format(
          **args))
      print(' git push --tags')
      sys.exit()
  
  
  setup(
      name='django-debreach',
      version=version,
      url='http://github.com/lpomfrey/django-debreach',
      license='BSD',
      description='Adds middleware and context processors to give some '
                  'protection against the BREACH attack in Django.',
      author='Luke Pomfrey',
      author_email='lpomfrey@gmail.com',
      packages=find_packages(exclude=('test_project', 'docs')),
      install_requires=[],
      tests_require=[
          'django',
      ],
      test_suite='runtests.runtests',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: Implementation :: CPython',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Internet :: WWW/HTTP'
      ]
  )
  
subject: Enable wheel dist