[tryton-debian-vcs] cached-property branch upstream updated. upstream/1.2.0-1-g2ac7fae

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu May 21 16:19:45 UTC 2015


The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/cached-property.git;a=commitdiff;h=upstream/1.2.0-1-g2ac7fae

commit 2ac7fae915dca872656f93e198b6aec45eef3f3b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Thu May 21 17:14:52 2015 +0200

    Adding upstream version 1.2.0+ds.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/setup.py b/setup.py
index a3855b6..c26ef9b 100755
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@
 
 import os
 import sys
+import codecs
 
 try:
     from setuptools import setup
@@ -11,8 +12,13 @@ except ImportError:
 
 __version__ = '1.2.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')
-- 
cached-property



More information about the tryton-debian-vcs mailing list