X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=setup.py;h=2b670b81357b0e3f406c9536eb26b5fd256b7afd;hb=9275e626a28b9318a5d69e6b53d6e8ace35c864f;hp=2a84e80c1dff8934c7ac423ae668c940d16fc0b2;hpb=269a8e0708ee3e51986a3a77705ce3c7b86d20e8;p=cached-property.git diff --git a/setup.py b/setup.py index 2a84e80..2b670b8 100755 --- a/setup.py +++ b/setup.py @@ -3,16 +3,22 @@ import os import sys +import codecs try: from setuptools import setup except ImportError: from distutils.core import setup -__version__ = '1.2.0' +__version__ = '1.3.1' -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')