"""
Usage instructions:

- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""

try:
    import pypandoc
    long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
    print('Failed to convert README to rst.')
    try:
        long_description = open('README.md').read()
    except:
        long_description = ''

from setuptools import setup

setup(
    name='keyboard',
    version='0.6.5',
    author='BoppreH',
    author_email='boppreh@gmail.com',
    packages=['keyboard'],
    url='https://github.com/boppreh/keyboard',
    license='MIT',
    description='Hook and simulate keyboard events on Windows and Linux',
    keywords = 'keyboard hook simulate hotkey',
    long_description=long_description,

    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: Unix',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities',
    ],
)

@@ -275,54 +275,8 @@
 or:%0A
-    print('Failed to convert README to rst.')%0A
     
@@ -276,24 +276,24 @@
 r:%0A    try:%0A
+
         long
@@ -344,16 +344,160 @@
 except:%0A
+        try:%0A            long_description = open('README.rst').read()%0A        except:%0A            print('Failed to convert README to rst.')%0A    
         
@@ -518,16 +518,16 @@
 on = ''%0A
-
 %0Afrom se
@@ -598,9 +598,9 @@
 0.6.
-5
+7
 ',%0A 

Bump version and make better attemp at generating README