Skip to content

Commit 48dba5e

Browse files
Mickaël SchoentgenBoboTiG
authored andcommitted
NXDRIVE-2452: Add release dates in versions.yml
1 parent 21f43bf commit 48dba5e

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/changes/4.5.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Release date: `2020-xx-xx`
7272
- [NXDRIVE-2398](https://jira.nuxeo.com/browse/NXDRIVE-2398): Upgrade PyInstaller to 4.1
7373
- [NXDRIVE-2399](https://jira.nuxeo.com/browse/NXDRIVE-2399): Temporary stop releasing a GNU/Linux version
7474
- [NXDRIVE-2401](https://jira.nuxeo.com/browse/NXDRIVE-2401): Upgrade the Docker build workflow to the new action version
75+
- [NXDRIVE-2452](https://jira.nuxeo.com/browse/NXDRIVE-2452): Add release dates in `versions.yml`
7576

7677
## Tests
7778

tools/versions.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
import hashlib
1212
import os
1313
import os.path
14+
from datetime import datetime, timezone
1415

1516
import yaml
1617

17-
__version__ = "1.0.0"
18+
__version__ = "1.1.0"
1819
__all__ = ("create", "delete", "merge", "promote")
1920

2021

@@ -98,13 +99,13 @@ def create(version, category):
9899
"10.3": "10.3-SNAPSHOT"
99100
"10.10": "10.10-SNAPSHOT"
100101
"""
102+
today = datetime.now(timezone.utc).strftime("%Y-%m-%d")
101103
yml = {
102104
version: {
105+
"checksum": {"algo": "sha256"},
106+
"date": today,
103107
"min": "7.10",
104108
"type": category,
105-
"checksum": {
106-
"algo": "sha256",
107-
},
108109
}
109110
}
110111
if checksum_appimage:

0 commit comments

Comments
 (0)