old_contents: #!/usr/bin/env python
  
  import os
  from setuptools import setup, find_packages
  from setuptools.command.test import test as TestCommand
  import sys
  
  
  def read(fname):
      return open(os.path.join(os.path.dirname(__file__), fname)).read()
  
  
  README = read('README.rst')
  
  
  class PyTest(TestCommand):
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = ['tests', '-s']
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
          errno = pytest.main(self.test_args)
          sys.exit(errno)
  
  
  setup(
      name='django-enumfields',
      version='0.3.0',
      author='HZDG',
      author_email='webmaster@hzdg.com',
      description='Real Python Enums for Django.',
      license='MIT',
      url='https://github.com/hzdg/django-enumfields',
      long_description=README,
      packages=find_packages(),
      zip_safe=False,
      classifiers=[
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Internet :: WWW/HTTP',
      ],
      install_requires=[
          'enum34',
          'six',
      ],
      tests_require=[
          'pytest-django',
          'Django',
      ],
      cmdclass={'test': PyTest},
  )
  
new_contents: #!/usr/bin/env python
  
  import os
  from setuptools import setup, find_packages
  from setuptools.command.test import test as TestCommand
  import sys
  
  
  def read(fname):
      return open(os.path.join(os.path.dirname(__file__), fname)).read()
  
  
  README = read('README.rst')
  
  
  class PyTest(TestCommand):
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = ['tests', '-s']
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
          errno = pytest.main(self.test_args)
          sys.exit(errno)
  
  
  setup(
      name='django-enumfields',
      version='0.3.1',
      author='HZDG',
      author_email='webmaster@hzdg.com',
      description='Real Python Enums for Django.',
      license='MIT',
      url='https://github.com/hzdg/django-enumfields',
      long_description=README,
      packages=find_packages(),
      zip_safe=False,
      classifiers=[
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Internet :: WWW/HTTP',
      ],
      install_requires=[
          'enum34',
          'six',
      ],
      tests_require=[
          'pytest-django',
          'Django',
      ],
      cmdclass={'test': PyTest},
  )
  
subject: Bump to 0.3.1