Skip to content

Commit 04ea9b8

Browse files
authored
Merge pull request #14 from fractal-analytics-platform/update-fractal-web
Update fractal-web version
2 parents bab83db + 0dc6a28 commit 04ea9b8

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

fractal-web-reference.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.13.0
1+
v1.13.1

tasks_data_retrieval/install_instructions.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
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

55
def _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:
1918
def _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:
3330
def _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:
4744
def _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

Comments
 (0)