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


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


with open('README.rst') as readme_file:
    readme = readme_file.read()

with open('HISTORY.rst') as history_file:
    history = history_file.read().replace('.. :changelog:', '')

requirements = [
    # TODO: put package requirements here
]

test_requirements = [
    # TODO: put package test requirements here
]

setup(
    name='pycrawl',
    version='0.1.0',
    description="Minimal web crawler build on asyncio",
    long_description=readme + '\n\n' + history,
    author="Joshua Carp",
    author_email='jm.carp@gmail.com',
    url='https://github.com/jmcarp/pycrawl',
    packages=[
        'pycrawl',
    ],
    package_dir={'pycrawl':
                 'pycrawl'},
    include_package_data=True,
    install_requires=requirements,
    license="BSD",
    zip_safe=False,
    keywords='pycrawl',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    test_suite='tests',
    tests_require=test_requirements
)

@@ -19,115 +19,34 @@
 hon%0A
-# -*- coding: utf-8 -*-%0A%0A%0Atry:%0A    from setuptools import setup%0Aexcept ImportError:%0A    from distutils.core
+%0Aimport re%0Afrom setuptools
  imp
@@ -262,119 +262,597 @@
     
-# TODO: put package requirements here%0A%5D%0A%0Atest_requirements = %5B
+'aiohttp%3E=0.15.3',%0A    'furl%3E=0.4.7',%0A    'pyquery%3E=1.2.9',%0A%5D%0A%0Atest_requirements = %5B%0A    'pytest',%0A%5D%0A%0A%0Adef find_version(fname):%0A    %22%22%22Attempts to find the version number in the file names fname.%0A    Raises RuntimeError if not found.%0A    %22%22%22%0A    version = ''
 %0A    
-# TODO: put package test requirements here%0A%5D
+with open(fname, 'r') as fp:%0A        reg = re.compile(r'__version__ = %5B%5C'%22%5D(%5B%5E%5C'%22%5D*)%5B%5C'%22%5D')%0A        for line in fp:%0A            m = reg.match(line)%0A            if m:%0A                version = m.group(1)%0A                break%0A    if not version:%0A        raise RuntimeError('Cannot find version information')%0A    return version%0A
 %0A%0Ase
@@ -892,15 +892,43 @@
 ion=
-'0.1.0'
+find_version('pycrawl/__init__.py')
 ,%0A  
@@ -966,17 +966,17 @@
 ler buil
-d
+t
  on asyn
@@ -1152,25 +1152,16 @@
 ckages=%5B
-%0A        
 'pycrawl
@@ -1161,22 +1161,16 @@
 pycrawl'
-,%0A    
 %5D,%0A    p
@@ -1191,33 +1191,16 @@
 ycrawl':
-%0A                
  'pycraw
@@ -1542,237 +1542,43 @@
     
-%22Programming Language :: Python :: 2%22,%0A        'Programming Language :: Python :: 2.6',%0A        'Programming Language :: Python :: 2.7',%0A        'Programming Language :: Python :: 3',%0A        'Programming Language :: Python :: 3.
+'Programming Language :: Python :: 
 3',%0A
@@ -1692,11 +1692,12 @@
 irements
+,
 %0A)%0A

Update installation.