File html2text-entrypoints.patch of Package python-html2text

From ed9b7477d24caf5e5afe2a55c399eed2b9863dbd Mon Sep 17 00:00:00 2001
From: Sascha Peilicke <saschpe@gmx.de>
Date: Mon, 28 Oct 2013 14:14:51 +0100
Subject: [PATCH] Add ".py" suffix to html2text entrypoint

Many distributions (including Gentoo and openSUSE) already ship
/usr/bin/html2text as part of the "html2text" package. Therefore the
current entry point collides with this system binary. Adding a .py
prefix would mean it's installed as /usr/bin/html2text.py which is just
working fine.

Fixes #42
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index dd3d9bc..eddeb92 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@
      ],
     entry_points="""
         [console_scripts]
-        html2text=html2text:main
+        html2text.py=html2text:main
     """,
    license='GNU GPL 3',
    packages=find_packages(),
-- 
1.8.4

openSUSE Build Service is sponsored by