#!/usr/bin/env python

import os
import sys

import contour

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

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

packages = [
    'contour',
]

requires = []

setup(
    name='contour',
    version=contour.__version__,
    description='Python configuration.',
    long_description=open('README.md').read() + '\n\n' +
                     open('HISTORY.md').read(),
    author='Beau Lyddon',
    author_email='beau.lyddon@webfilings.com',
    url='http://github.com/beaulyddon-wf/contour',
    packages=packages,
    package_data={'': ['LICENSE', 'NOTICE'], 'contour': ['*.pem']},
    package_dir={'contour': 'contour'},
    include_package_data=True,
    install_requires=requires,
    setup_requires=['sphinx'],
    license=open('LICENSE').read(),
    zip_safe=False,
    classifiers=(
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
    ),
)

@@ -42,24 +42,8 @@
 ys%0A%0A
-import contour%0A%0A
 try:
@@ -315,27 +315,15 @@
 ion=
-contour.__version__
+%220.1.0%22
 ,%0A  
@@ -387,16 +387,25 @@
 on=open(
+%0A        
 'README.
@@ -430,29 +430,8 @@
 n' +
-%0A                    
  ope

Fix path reference