diff setup.py @ 5026:8853f422fb62

Preparing 1.5.1 steps 4/16 4. python setup.py check failed doc/announcement.txt contains non-ascii: 'ascii' codec can't encode character u'\xe9' in position 6698: ordinal not in range(128) It was hard to find u'\xe9', because setup.py encoded text to 'utf8' before final check. After removing encoding step: doc/announcement.txt contains non-ascii: 'ascii' codec can't decode byte 0xc3 in position 6698: ordinal not in range(128) Which is fixed. Also fixed reST warning caused by |u symbol: warning: check: Inline substitution_reference start-string without end-string. (line 156)
author anatoly techtonik <techtonik@gmail.com>
date Mon, 11 Jan 2016 19:44:02 +0300
parents 70dde3937c9b
children 0b557e27a5e4
line wrap: on
line diff
--- a/setup.py	Mon Jan 11 19:04:12 2016 +0300
+++ b/setup.py	Mon Jan 11 19:44:02 2016 +0300
@@ -106,8 +106,9 @@
     # because the distutils installer will try to use the mbcs codec
     # which isn't available on non-windows platforms. See also
     # http://bugs.python.org/issue10945
-    long_description=open('doc/announcement.txt').read().decode('utf8')
+    long_description=open('doc/announcement.txt').read()
     try:
+        # attempt to interpret string as 'ascii'
         long_description = long_description.encode('ascii')
     except UnicodeEncodeError, cause:
         print >> sys.stderr, "doc/announcement.txt contains non-ascii: %s" \

Roundup Issue Tracker: http://roundup-tracker.org/