Commit Graph

16 Commits

Author SHA1 Message Date
Marc Wrobel
e5507a9dcc [latest.py] Process version data before release data
Release data takes priority over version data: release data is always exact, whereas version data is computed.
2024-08-03 08:40:20 +02:00
Marc Wrobel
a81bd82c29 Fix latest.py
The script was failing on releases with a boolean date.
2024-02-23 20:29:17 +01:00
Marc Wrobel
f45df2903a Suppress alerts for outdated unmatched releases (#307) 2024-02-15 22:55:32 +01:00
Marc Wrobel
ef5f26aa75 Stop wrapping line when updating product data (#303) 2024-02-13 08:12:37 +01:00
Marc Wrobel
b6f14c8d61 Support release-level data (#297)
Support retrieving and updating generic release-level data, such as support and eol dates. The JSON format has been changed accordingly to add a new top-level `releases` key.

The `aws-lambda.py` script has been updated to make use of this new feature.
2024-02-11 16:57:59 +01:00
Marc Wrobel
cae88ad740 Support product bulk-upgrade in latest.py (#281) 2024-01-20 17:46:05 +01:00
Marc Wrobel
cece2fb429 Compare by date when version compare is not possible in latest.py (#279)
Updates were ignored when versions could not be compared (e.g. if at least one of the version did not conform to PEP 440). This improves the process by comparing by version dates in that case.
2024-01-20 03:31:23 +01:00
Marc Wrobel
74678a75c3 Update release-data JSON file format (#274)
This makes the format open for extension, such as adding release cycle level data (such as EOL dates).

Version data is still accessible by the version's name. While this repeats the version name, it's also much more convenient for users of those data.

A few other things have also been updated in the process:

- verbosity of the diff has been increased in update.py to make workflow summaries more readable,
- dates without timezone are now set to UTC by default (this was already supposed, so no impact expected here).
2024-01-02 11:42:10 +01:00
Marc Wrobel
7a97c87b3b Refactor latest.py and update.py (#270)
- create new gha.py module,
- improve GitHub workflow commands (GITHUB_OUTPUT, GITHUB_STEP_SUMMARY) interactions,
- improve logging,
- split update.py into smaller functions.
2023-12-31 00:45:30 +01:00
Marc Wrobel
dcea5df950 Avoid the use of aliases when dumping product files in latest.py (#269)
ruamel is using aliases when the same instance of a date is used at multiple places (such as in endoflife-date/endoflife.date#4368). This overcome this issue by cloning the date object before updating releases.

See also https://stackoverflow.com/a/64717341/374236.
2023-12-30 16:45:05 +01:00
Marc Wrobel
47e29992ae Enable flake8-use-pathlib linting rules (#267)
See https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth.
2023-12-30 14:29:24 +01:00
Marc Wrobel
7458563fec Enable flake8-simplify linting rules (#267)
See https://docs.astral.sh/ruff/rules/#flake8-simplify-sim.
2023-12-30 14:29:24 +01:00
Marc Wrobel
798c298c59 Enable flake8-datetimez linting rules (#267)
See https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz.
2023-12-30 14:29:24 +01:00
Marc Wrobel
f49e3dff15 Enable flake8-annotations linting rules (#267)
See https://docs.astral.sh/ruff/rules/#flake8-annotations-ann.
2023-12-30 14:29:24 +01:00
Marc Wrobel
6002cbdb26 Enable isort linting rules (#267)
See https://docs.astral.sh/ruff/rules/#isort-i.
2023-12-30 14:29:24 +01:00
Marc Wrobel
021ca23019 Migrate latest.py from endoflife.date to release-data (#257)
It makes more sense as it closely related to the JSON version file format, which is more subject to change than the product file format.
2023-12-16 22:06:22 +01:00