From: Daniel Roy Greenfeld Date: Thu, 9 Jun 2016 06:01:53 +0000 (-0700) Subject: Merge pull request #23 from mbehrle/fix-codec X-Git-Tag: 1.3.1~9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=285f185e15940f36255cf0ad4d3213c70e521723;p=cached-property.git Merge pull request #23 from mbehrle/fix-codec Fixing UnicodeDecodeError in setup.py (issue22). --- 285f185e15940f36255cf0ad4d3213c70e521723 diff --cc setup.py index c86b5c9,c26ef9b..bd9410e --- a/setup.py +++ b/setup.py @@@ -9,10 -10,15 +10,15 @@@ try except ImportError: from distutils.core import setup -__version__ = '1.2.0' +__version__ = '1.3.0' - readme = open('README.rst').read() - history = open('HISTORY.rst').read().replace('.. :changelog:', '') + + def read(fname): + return codecs.open( + os.path.join(os.path.dirname(__file__), fname), 'r', 'utf-8').read() + + readme = read('README.rst') + history = read('HISTORY.rst').replace('.. :changelog:', '') if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wheel upload')