from setuptools import setup, find_packages

with open('README.rst', 'r') as f:
    long_description = f.read()

setup(
    name = "solrcloudpy",
    version = "1.1.406",
    author = 'Didier Deshommes',
    author_email = 'dfdeshom@gmail.com',
    packages=find_packages(exclude=['ez_setup']),
    url='https://github.com/dfdeshom/solrcloudpy',
    license='LICENSE.txt',
    keywords='solr solrcloud',
    description='python library for interacting with SolrCloud ',
    long_description=long_description,
    include_package_data=True,
    platforms='any',
    entry_points = {
        'console_scripts': [
        'solrconsole = scripts.solrconsole:main [ip]']
        },
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Indexing/Search'
        ],

    install_requires = ['requests == 2.2.1','IPython == 1.2.0'],
    extras_require = {"ip": ['IPython == 1.2.0'] }, 
        )

@@ -36,16 +36,26 @@
 packages
+%0Aimport re
 %0A%0Awith o
@@ -116,16 +116,182 @@
 read()%0A%0A
+def get_version():%0A    return re.search(r%22%22%22__version__%5Cs+=%5Cs+(?P%3Cquote%3E%5B'%22%5D)(?P%3Cversion%3E.+?)(?P=quote)%22%22%22, open('solrcloudpy/__init__.py').read()).group('version')%0A%0A
 setup(%0A 
@@ -333,17 +333,21 @@
 n = 
-%221.1.406%22
+get_version()
 ,%0A  
@@ -1281,17 +1281,16 @@
 2.0'%5D %7D,
- 
 %0A       

use regex to get version w/o importing