try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

PACKAGE = 'django_exceptional_middleware'
VERSION = '0.2'

data_files = [
    (
        'exceptional_middleware/templates/http_responses', [ 'exceptional_middleware/templates/http_responses/default.html' ],
    ),
]

setup(
    name=PACKAGE, version=VERSION,
    description="Django middleware to allow generating arbitrary HTTP status codes via exceptions.",
    packages=[ 'exceptional_middleware' ],
    data_files=data_files,
    license='MIT',
    author='James Aylett',
    url = 'http://tartarus.org/james/computers/django/',
)

try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

PACKAGE = 'django_exceptional_middleware'
VERSION = '0.4'

package_data = {
        'exceptional_middleware': [ 'templates/http_responses/*.html' ],
}

setup(
    name=PACKAGE, version=VERSION,
    description="Django middleware to allow generating arbitrary HTTP status codes via exceptions.",
    packages=[ 'exceptional_middleware' ],
    package_data=package_data,
    license='MIT',
    author='James Aylett',
    url = 'http://tartarus.org/james/computers/django/',
)

Fix templates install. Bump to version 0.4 in the process (which is really my laziness).
Fix templates install. Bump to version 0.4 in the process (which is really my laziness).

  try:
      from setuptools.core import setup
  except ImportError:
      from distutils.core import setup
  
  PACKAGE = 'django_exceptional_middleware'
- VERSION = '0.2'
+ VERSION = '0.4'
  
+ package_data = {
+         'exceptional_middleware': [ 'templates/http_responses/*.html' ],
+ }
- data_files = [
-     (
-         'exceptional_middleware/templates/http_responses', [ 'exceptional_middleware/templates/http_responses/default.html' ],
-     ),
- ]
  
  setup(
      name=PACKAGE, version=VERSION,
      description="Django middleware to allow generating arbitrary HTTP status codes via exceptions.",
      packages=[ 'exceptional_middleware' ],
-     data_files=data_files,
+     package_data=package_data,
      license='MIT',
      author='James Aylett',
      url = 'http://tartarus.org/james/computers/django/',
  )
  
Fix templates install. Bump to version 0.4 in the process (which is really my laziness).
## Code Before:
try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

PACKAGE = 'django_exceptional_middleware'
VERSION = '0.2'

data_files = [
    (
        'exceptional_middleware/templates/http_responses', [ 'exceptional_middleware/templates/http_responses/default.html' ],
    ),
]

setup(
    name=PACKAGE, version=VERSION,
    description="Django middleware to allow generating arbitrary HTTP status codes via exceptions.",
    packages=[ 'exceptional_middleware' ],
    data_files=data_files,
    license='MIT',
    author='James Aylett',
    url = 'http://tartarus.org/james/computers/django/',
)

## Instruction:
Fix templates install. Bump to version 0.4 in the process (which is really my laziness).
## Code After:
try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

PACKAGE = 'django_exceptional_middleware'
VERSION = '0.4'

package_data = {
        'exceptional_middleware': [ 'templates/http_responses/*.html' ],
}

setup(
    name=PACKAGE, version=VERSION,
    description="Django middleware to allow generating arbitrary HTTP status codes via exceptions.",
    packages=[ 'exceptional_middleware' ],
    package_data=package_data,
    license='MIT',
    author='James Aylett',
    url = 'http://tartarus.org/james/computers/django/',
)
