Skip to content

Commit

Permalink
Change docutils version
Browse files Browse the repository at this point in the history
docutils 0.15.1-post1 has installation issues with pip.
see pypa/pip#9203 (comment)
  • Loading branch information
sbidoul committed Dec 8, 2020
1 parent 0290f39 commit cbc30fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# We need to pin docutils version, see
# https://github.com/OCA/maintainer-tools/issues/423
# Consider carefully before changing this.
'docutils>=0.15.1,<0.15.1.1',
'docutils==0.16.*',
'ERPpeek',
'github3.py>=1',
'inflection',
Expand Down
7 changes: 7 additions & 0 deletions tools/gen_addon_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ def gen_one_addon_index(readme_filename):
writer_name='html4css1',
settings_overrides=RST2HTML_SETTINGS,
)
with open(index_filename, "rb") as f:
index = f.read()
# remove the docutils version from generated html, to avoid
# useless changes in the readme
index = re.sub(rb'(<meta.*generator.*Docutils)\s*[\d.]+', rb"\1", index, re.MULTILINE)
with open(index_filename, "wb") as f:
f.write(index)
return index_filename


Expand Down

0 comments on commit cbc30fc

Please sign in to comment.