import os
import re
import sys
from os.path import dirname, join as pjoin
from sys import version_info
from setuptools import setup, find_packages

with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
    VERSION = re.compile(
        r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)

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

long_description = (
    'Information and documentation at https://github.com/gruns/furl.')

setup(name='furl',
      version=VERSION,
      author='Arthur Grunseid',
      author_email='grunseid@gmail.com',
      url='https://github.com/gruns/furl',
      license='Unlicense',
      description='URL manipulation made simple.',
      long_description=long_description,
      packages=find_packages(),
      include_package_data=True,
      platforms=['any'],
      classifiers=['Topic :: Internet',
                   'Natural Language :: English',
                   'Development Status :: 5 - Production/Stable',
                   'Intended Audience :: Developers',
                   'License :: Freely Distributable',
                   'Programming Language :: Python :: 2.6',
                   'Programming Language :: Python :: 2.7',
                   ],
      install_requires=['orderedmultidict >= 0.7.1'],
      test_suite='tests',
      tests_require=[] if version_info[0:2] >= [2, 7] else ['unittest2'],
      )

@@ -24,16 +24,45 @@
 ort sys%0A
+from sys import version_info%0A
 from os.
@@ -100,37 +100,8 @@
 oin%0A
-from sys import version_info%0A
 from
@@ -332,27 +332,27 @@
 blish':%0A    
-'''
+%22%22%22
 %0A    Publish
@@ -369,11 +369,11 @@
     
-'''
+%22%22%22
 %0A   
@@ -1346,17 +1346,17 @@
  %3E= 0.7.
-1
+2
 '%5D,%0A    

Upgrade orderedmultidict dependency to v0.7.2.