Skip to content

Commit

Permalink
Remove sphinx related tags from varianters description
Browse files Browse the repository at this point in the history
With this small change, all the special tags will be removed from
yaml_to_mux and pict varianters README files which is used for long
description of plugins. We have to do this because systems like pypi
doesn't support sphinx, only basic ResTructuredText.

Reference: avocado-framework#5713
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja committed Oct 12, 2023
1 parent 7f72cf9 commit 86a6f3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion optional_plugins/varianter_pict/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# Author: Cleber Rosa <[email protected]>

import os
import re

from setuptools import setup

Expand All @@ -33,7 +34,7 @@
def get_long_description():
with open(os.path.join(BASE_PATH, "README.rst"), "rt", encoding="utf-8") as readme:
readme_contents = readme.read()
return readme_contents
return re.sub(r":[a-zA-Z]+:", "", readme_contents)


setup(
Expand Down
3 changes: 2 additions & 1 deletion optional_plugins/varianter_yaml_to_mux/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# Author: Cleber Rosa <[email protected]>

import os
import re

from setuptools import setup

Expand All @@ -33,7 +34,7 @@
def get_long_description():
with open(os.path.join(BASE_PATH, "README.rst"), "rt", encoding="utf-8") as readme:
readme_contents = readme.read()
return readme_contents
return re.sub(r":[a-zA-Z]+:", "", readme_contents)


setup(
Expand Down

0 comments on commit 86a6f3e

Please sign in to comment.