Skip to content

Commit

Permalink
Ensure Windows ReST is not munged in wheels
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Feb 20, 2022
1 parent e3062a9 commit a42929f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
12 changes: 4 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -88,7 +84,7 @@ def get_long_description():

setup(
name='pyahocorasick',
version='1.4.4.dev1',
version='1.4.4',
ext_modules=[module],

description=(
Expand Down

0 comments on commit a42929f

Please sign in to comment.