cran: Improve listing of R packages

Previously, the lister was relying on the use of the CRANtools R module
but it has the drawback to only list the latest version of each registered
package in the CRAN registry.

In order to get all possible versions for each CRAN package, prefer to exploit
the content of the weekly dump of the CRAN database in RDS format.

To read the content of the RDS file from Python, the rpy2 package is used as
it has the advantage to be packaged in debian.

Related to swh/meta#1709.
This commit is contained in:
Antoine Lambert 2023-08-17 16:52:39 +02:00
parent 3a0e8b9995
commit 91e4e33dd5
7 changed files with 244 additions and 267 deletions

View file

@ -1,3 +1,4 @@
pandas
pytest
pytest-mock
requests_mock