Commits

Daniel Holth committed f36d002

test for unicode in long_description

Comments (0)

Files changed (2)

         del pkg_info['Description']
     else:
         payload = pkg_info.get_payload()
+        import pdb; pdb.set_trace()
+        if isinstance(payload, bytes):
+            # Avoid a Python 2 Unicode error.
+            # We still suffer ? glyphs on Python 3.
+            payload = payload.decode('utf-8')
         if payload:
             description = payload
 

wheel/test/complex-dist/setup.py

 setup(name='complex-dist',
       version='0.1',
       description=u8('Another testing distribution \N{SNOWMAN}'),
+      long_description=u8('Another testing distribution \N{SNOWMAN}'),
       author="Illustrious Author",
       author_email="illustrious@example.org",
       url="http://example.org/exemplary",