support/scripts/pkg-stats: use aiohttp for latest version retrieval
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 8 Aug 2020 18:08:23 +0000 (20:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 11 Aug 2020 20:31:23 +0000 (22:31 +0200)
commit68093f477828863977381989023f7401e2fdeed3
tree8cef75413ed53b033b0a24f4a44e9bda8c3cd8b2
parent32c8fa8522cff21d0845bb1c2199fc1e958a527e
support/scripts/pkg-stats: use aiohttp for latest version retrieval

This commit reworks the code that retrieves the latest upstream
version of each package from release-monitoring.org using the aiohttp
module. This makes the implementation much more elegant, and avoids
the problematic multiprocessing Pool which is causing issues in some
situations.

Since we're now using some async functionality, the script is Python
3.x only, so the shebang is changed to make this clear.

Suggested-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/pkg-stats