1- INSTALL_INSTRUCTIONS_TITLE_1 = "## How to add this task to a Fractal instance\n "
2- INSTALL_INSTRUCTIONS_TITLE_2 = "## How to install this task in a Python environment\n "
1+ INSTALL_INSTRUCTIONS_TITLE_1 = "** How to add this task to a Fractal instance:** \n "
2+ INSTALL_INSTRUCTIONS_TITLE_2 = "** How to install this task in a Python environment:** \n "
33
44
55def _get_default_template_pypi () -> str :
66 lines = [
77 INSTALL_INSTRUCTIONS_TITLE_1 ,
8- "Trigger a _PyPI_ task collection with package `__PROJECT_NAME__` and package version `__VERSION__`. " ,
8+ "Trigger a PyPI task collection with package `__PROJECT_NAME__` and package version `__VERSION__`" ,
99 "" ,
1010 INSTALL_INSTRUCTIONS_TITLE_2 ,
11- "```" ,
12- 'pip install "__PROJECT_NAME__==__VERSION__"' ,
11+ "Run `pip install \" __PROJECT_NAME__==__VERSION__\" `" ,
1312 "```" ,
1413 ]
1514 template = "\n " .join (lines ) + "\n "
@@ -19,12 +18,10 @@ def _get_default_template_pypi() -> str:
1918def _get_default_template_pypi_with_extra (extra : str ) -> str :
2019 lines = [
2120 INSTALL_INSTRUCTIONS_TITLE_1 ,
22- f"Trigger a _PyPI_ task collection for package `__PROJECT_NAME__`, package version `__VERSION__` and package extras { extra } . " ,
21+ f"Trigger a PyPI task collection for package `__PROJECT_NAME__`, package version `__VERSION__` and package extras ` { extra } ` " ,
2322 "" ,
2423 INSTALL_INSTRUCTIONS_TITLE_2 ,
25- "```" ,
26- f'pip install "__PROJECT_NAME__[{ extra } ]==__VERSION__"' ,
27- "```" ,
24+ f"Run `pip install \" __PROJECT_NAME__[{ extra } ]==__VERSION__\" `" ,
2825 ]
2926 template = "\n " .join (lines ) + "\n "
3027 return template
@@ -33,12 +30,12 @@ def _get_default_template_pypi_with_extra(extra: str) -> str:
3330def _get_default_template_wheel_url () -> str :
3431 lines = [
3532 INSTALL_INSTRUCTIONS_TITLE_1 ,
36- "1. Download the wheel file from [this link](__WHEEL_URL__), " ,
37- "2. Trigger a _local_ task collection by uploading the wheel file. " ,
33+ "1. Download the wheel file from [this link](__WHEEL_URL__)" ,
34+ "2. Trigger a local task collection by uploading the wheel file" ,
3835 "" ,
3936 INSTALL_INSTRUCTIONS_TITLE_2 ,
4037 "1. Download the wheel file from [this link](__WHEEL_URL__)" ,
41- "2. `pip install __WHEEL_NAME__`" ,
38+ "2. Run `pip install __WHEEL_NAME__`" ,
4239 ]
4340 template = "\n " .join (lines ) + "\n "
4441 return template
@@ -47,12 +44,12 @@ def _get_default_template_wheel_url() -> str:
4744def _get_default_template_wheel_url_with_extra (extra : str ) -> str :
4845 lines = [
4946 INSTALL_INSTRUCTIONS_TITLE_1 ,
50- "1. Download the wheel file from [this link](__WHEEL_URL__), " ,
51- f"2. Trigger a _local_ task collection by uploading the wheel file, with package extras { extra } . " ,
47+ "1. Download the wheel file from [this link](__WHEEL_URL__)" ,
48+ f"2. Trigger a local task collection by uploading the wheel file, with package extras ` { extra } ` " ,
5249 "" ,
5350 INSTALL_INSTRUCTIONS_TITLE_2 ,
5451 "1. Download the wheel file from [this link](__WHEEL_URL__)" ,
55- f"2. `pip install \" __WHEEL_NAME__[{ extra } ]\" `" ,
52+ f"2. Run `pip install \" __WHEEL_NAME__[{ extra } ]\" `" ,
5653 ]
5754 template = "\n " .join (lines ) + "\n "
5855 return template
0 commit comments