from codecs import open
import glob
import os

from setuptools import setup, find_packages

here = os.path.dirname(os.path.abspath(__file__))

try:
    import pypandoc
    long_description = pypandoc.convert(os.path.join(here, "README.md"), "rst")
except(IOError, ImportError):
    with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
        long_description = f.read()

setup(
    name="sneakersync",
    version="1.1.0",
    
    description="Synchronize files through the sneakernet",
    long_description=long_description,
    
    url="https://github.com/lamyj/sneakersync",
    
    author="Julien Lamy",
    author_email="julien@seasofcheese.net",
    
    license="MIT",
    
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        
        "Environment :: Console",
        
        "Intended Audience :: End Users/Desktop",
        "Intended Audience :: Information Technology",
        "Intended Audience :: System Administrators",
        
        "Topic :: Communications :: File Sharing",
        "Topic :: System :: Archiving :: Mirroring",
        
        "License :: OSI Approved :: MIT License",
        
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3",
    ],
    
    keywords="synchronization, removable drive, sneakernet, rsync",

    packages=find_packages(),
    include_package_data=True,
    data_files = [("", ["README.md"])],
    install_requires=["pyyaml", "six"],
    
    entry_points={ "console_scripts": [ "sneakersync=sneakersync.main:main"] },
)

@@ -139,148 +139,8 @@
 _))%0A
-%0Atry:%0A    import pypandoc%0A    long_description = pypandoc.convert(os.path.join(here, %22README.md%22), %22rst%22)%0Aexcept(IOError, ImportError):%0A    
 with
@@ -171,19 +171,16 @@
  %22README
-.md
 %22), enco
@@ -199,20 +199,16 @@
 ) as f:%0A
-    
     long
@@ -284,9 +284,9 @@
 1.1.
-0
+1
 %22,%0A 
@@ -1250,48 +1250,8 @@
 ue,%0A
-    data_files = %5B(%22%22, %5B%22README.md%22%5D)%5D,%0A
     

Remove Markdown-to-RST conversion in setup.py