Commit Graph

14 Commits

Author SHA1 Message Date
Marc Wrobel
56cc29b49d Make releasedata.Product usable in 'with' expression (#294)
This way the writing of the JSON file is handled automatically if the update does not fail.
It pave the way to further global improvements, such as a better error handling.
2024-02-04 14:48:05 +01:00
Marc Wrobel
b339c81ead Split endoflife.date and releasedata models in separate files (#276)
This makes the code easier to read.
2024-01-07 20:22:46 +01:00
Marc Wrobel
f6a8349c46 Centralize GitHub Workflow groups declaration (#272)
It may not be the best place for that (gha.py would have been better), but it's the shorter / faster way to do it for now.

Moreover it now uses logging for writing the group. The logger format has been updated for this to work. This was done to fix issues on GitHub Action logs, where groups were declared after the logs.
2023-12-31 17:00:11 +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
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
6cac26c41f [couchbase-server] Refactor script (#220)
Make the script more readable, mostly by:

- using the endoflife.Product class,
- a little bit of renaming and documentation.
2023-12-10 17:06:28 +01:00
Marc Wrobel
7cf62c2355 Refactor HTTP common code (#207)
- move to common/http.py,
- make fetch_url return a Response.
2023-12-02 22:52:12 +01:00
Marc Wrobel
0d17306872 Simplify date parsing (#195)
Create common functions parse_date, parse_month_year_date and parse_datetime.

Those functions support trying multiple formats, and come with default formats lists that support most of the date format encountered so far.

Notable change: year-month dates are now set to the end of month (impacted couchbase-server and ibm-aix).
2023-11-26 21:01:35 +01:00
Marc Wrobel
9ef4494775 [couchbase] Make HTTP requests in parallel (#191)
It cuts the script execution time roughly by two during my tests.
2023-11-26 15:23:20 +01:00
Marc Wrobel
1e8a84ec77 [apple] Add back web.archive.org links (#190)
The issue was with couchbase, for which the webarchive.org link is now dead.
2023-11-26 14:18:33 +01:00
Marc Wrobel
600e77e212 Sort versions by date then version for all products (#179) 2023-11-15 22:30:31 +01:00
Marc Wrobel
34f238320a [couchbase] Inject 6.6.0 release date
Disabling https://web.archive.org/web/20230519160357/https://docs.couchbase.com/server/ triggered an unwanted update on 6.6 release date: https://github.com/endoflife-date/endoflife.date/pull/4055/files.
2023-11-08 22:38:47 +01:00
Marc Wrobel
6f375c47ba Disable web.archive.org links
They cause too much timeout lately, and the main purpose of those script is to get new releases anyway.
2023-11-08 00:01:50 +01:00
Marc Wrobel
d1b8e9601c [couchbase-server] Get dates from docs.couchbase.com
Couchbase server was using the dockerhub auto method, which is not reliable.
This new method is not perfect, but at least the dates are acceptable.
2023-06-27 23:37:19 +02:00