-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path6_app_team_email.py
63 lines (47 loc) · 1.86 KB
/
6_app_team_email.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import argparse
from typing import Final
from utils import validate_date, validate_version
_TEMPLATE: Final[
str
] = """
Dear App Team,
please find below some more details about testing of the staging deployments and release notes improvements.
Starting environment is available from `{start_app_team}` to `{end_app_team}`. Please use the following these deployments (not for production work):
- osparc https://osparc-staging.io/
- s4l lite https://staging.s4l-lite.io/
- s4l https://sim4life-staging.cloud/
This is the draft of the release notes:
- s4l https://github.com/ITISFoundation/osparc-issues/blob/master/release-notes/s4l/{vtag}.md
- tip https://github.com/ITISFoundation/osparc-issues/blob/master/release-notes/tip/{vtag}.md
We have added some highlights for you.
We would like your input on the following:
- Rewrite of the draft release notes, in a more user-friendly fashion (please make a PR back with your edits)
- Test the deployments, including the highlights if they make sense to you
- Let us know if something is not working/showing as expected
- Please let us know if you don't have accounts yet on some of those deployments
Regards,
"""
def main() -> None:
parser = argparse.ArgumentParser(description="Assemble deadelines calendar")
for date in [
"start_app_team",
"end_app_team",
]:
parser.add_argument(
date,
type=validate_date,
help="The date is in the format dd.mm",
)
parser.add_argument(
"version", type=validate_version, help="The version number in the format X.X.X"
)
args = parser.parse_args()
print(f"\nArguments: {args}")
email_content = _TEMPLATE.format(
start_app_team=args.start_app_team,
end_app_team=args.end_app_team,
vtag=f"v{args.version}",
)
print(email_content)
if __name__ == "__main__":
main()