cran: Use pyreadr instead of rpy2 to read a RDS file from Python

The CRAN lister improvements introduced in 91e4e33 originally used pyreadr
to read a RDS file from Python instead of rpy2.

As swh-lister was still packaged for debian at the time, the choice of using
rpy2 instead was made as a debian package is available for it while it is not
for pyreadr.

Now debian packaging was dropped for swh-lister we can reinstate the pyreadr
based implementation which has the advantages of being faster and not depending
on the R language runtime.

Related to swh/meta#1709.
This commit is contained in:
Antoine Lambert 2023-08-17 16:52:39 +02:00
parent 42d8e24d7e
commit 4aee4da784
4 changed files with 47 additions and 53 deletions

View file

@ -31,6 +31,9 @@ ignore_missing_imports = True
[mypy-pkg_resources.*]
ignore_missing_imports = True
[mypy-pyreadr.*]
ignore_missing_imports = True
[mypy-pytest.*]
ignore_missing_imports = True
@ -40,9 +43,6 @@ ignore_missing_imports = True
[mypy-requests_mock.*]
ignore_missing_imports = True
[mypy-rpy2.*]
ignore_missing_imports = True
[mypy-urllib3.util.*]
ignore_missing_imports = True