Skip to content

Commit e1cc623

Browse files
committed
Fixed description in conda package
1 parent d3d8e02 commit e1cc623

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make_conda_recipe.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
requirements_block = "\n".join(f" - {req}" for req in all_requirements)
2929

3030
txt_readme = publish_file(source=StringIO(long_description), writer=rst2txt.Writer())
31+
description_block = "\n".join([line.replace('"', '\\"') for line in txt_readme.split("\n")])
3132

3233
with open(recipe_dir / "meta.yaml", "w") as fp:
3334
fp.write(f"""{{% set name = "{modname}" %}}
@@ -71,7 +72,7 @@
7172
license_family: LGPL
7273
# license_file: requirements.txt
7374
summary: "{short_desc}"
74-
description: "txt_readme"
75+
description: "{description_block}"
7576
doc_url: {project_urls["Documentation"]}
7677
dev_url: {project_urls["Source Code"]}
7778

0 commit comments

Comments
 (0)