#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import (
    absolute_import, division, print_function, with_statement,
    unicode_literals)

import sys

from os import path as p
from builtins import *

import bump
import pkutils

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

sys.dont_write_bytecode = True
requirements = list(pkutils.parse_requirements('requirements.txt'))
dependencies = list(pkutils.parse_requirements('requirements.txt', dep=True))
dev_requirements = list(pkutils.parse_requirements('dev-requirements.txt'))
readme = pkutils.read('README.rst')
license = bump.__license__
version = bump.__version__
title = bump.__title__
gh = 'https://github.com/reubano'

if sys.version_info.major == 2:
    requirements.append('future==0.15.2')

setup(
    name=title,
    version=version,
    description=bump.__description__,
    long_description=readme,
    author=bump.__author__,
    author_email=bump.__email__,
    url='%s/%s' % (gh, title),
    download_url='%s/%s/downloads/%s*.tgz' % (gh, title, title),
    packages=find_packages(exclude=['docs', 'tests']),
    include_package_data=True,
    install_requires=requirements,
    dependency_links=dependencies,
    test_suite='nose.collector',
    tests_require=dev_requirements,
    license=license,
    zip_safe=False,
    keywords=[title],
    classifiers=[
        pkutils.LICENSES[license],
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX :: Linux',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules'
        'Topic :: Software Development :: Version Control',
    ],
    platforms=['MacOS X', 'Windows', 'Linux'],
    scripts=[p.join('bin', 'bump')]
)

@@ -223,16 +223,26 @@
 ort bump
+ as module
 %0Aimport 
@@ -675,20 +675,22 @@
 cense = 
-bump
+module
 .__licen
@@ -704,20 +704,22 @@
 rsion = 
-bump
+module
 .__versi
@@ -731,20 +731,22 @@
 title = 
-bump
+module
 .__title
@@ -748,16 +748,53 @@
 title__%0A
+description = module.__description__%0A
 gh = 'ht
@@ -955,23 +955,16 @@
 ription=
-bump.__
 descript
@@ -966,18 +966,16 @@
 cription
-__
 ,%0A    lo
@@ -1008,20 +1008,22 @@
  author=
-bump
+module
 .__autho
@@ -1044,20 +1044,22 @@
 r_email=
-bump
+module
 .__email
@@ -1444,16 +1444,41 @@
 =%5Btitle%5D
+ + description.split(' ')
 ,%0A    cl
@@ -1647,58 +1647,8 @@
 s',%0A
-        'License :: OSI Approved :: MIT License',%0A
     
@@ -1802,38 +1802,344 @@
    '
-Programming Language :: Python
+Natural Language :: English',%0A        'Programming Language :: Python :: 2',%0A        'Programming Language :: Python :: 2.7',%0A        'Programming Language :: Python :: 3',%0A        'Programming Language :: Python :: 3.4',%0A        'Programming Language :: Python :: 3.5',%0A        'Programming Language :: Python :: Implementation :: PyPy
 ',%0A 
@@ -2207,16 +2207,17 @@
 Modules'
+,
 %0A       

Update setup.py