From a42929f3a349bc9e7ec39ffb93316600be3e15a1 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Sun, 20 Feb 2022 14:28:16 +0100 Subject: [PATCH] Ensure Windows ReST is not munged in wheels Signed-off-by: Philippe Ombredanne --- CHANGELOG.rst | 8 +++++++- setup.py | 12 ++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8d45095..d4b761a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,4 +1,10 @@ -1.4.3 (2021-03-27) +1.4.4 (2022-02-20) +-------------------------------------------------- + +- Minor rebuild to ensure Windows wheel documentation is correct ReST. + + +1.4.3 (2022-02-20) -------------------------------------------------- - Use cibuildwheel to tests and build wheels on many OSes (with GitHub actions) diff --git a/setup.py b/setup.py index 66b9fc9..b337919 100644 --- a/setup.py +++ b/setup.py @@ -17,13 +17,9 @@ def get_long_description(): - """ - Strip the content index from the long description. - """ - import codecs - with codecs.open('README.rst', encoding='UTF-8') as f: - readme = [line for line in f if not line.startswith('.. contents::')] - return ''.join(readme) + import io + with io.open('README.rst', encoding='UTF-8') as f: + return f.read() if python_version.major not in [2, 3]: @@ -88,7 +84,7 @@ def get_long_description(): setup( name='pyahocorasick', - version='1.4.4.dev1', + version='1.4.4', ext_modules=[module], description=(