Skip to content
Snippets Groups Projects
  1. Mar 21, 2025
  2. Feb 17, 2025
  3. Dec 11, 2024
  4. Jul 18, 2024
  5. May 22, 2024
  6. Apr 16, 2024
    • Antoine Lambert's avatar
      Use beautifulsoup4 CSS selectors to simplify code and type checking · 41407e0e
      Antoine Lambert authored
      As the types-beautifulsoup4 package gets installed in the swh virtualenv
      as it is a swh-scanner test dependency, some mypy errors were reported
      related to beautifulsoup4 typing.
      
      As the returned type for the find method of bs4 is the following union:
      Tag | NavigableString | None, isinstance calls must be used to ensure
      proper typing which is not great.
      
      So prefer to use the select_one method instead where a simple None check
      must be done to ensure typing is correct as it is returning Optional[Tag].
      In a similar manner, replace use of find_all method by select method.
      
      It also has the advantage to simplify the code.
      41407e0e
  7. Mar 13, 2024
  8. Oct 09, 2023
    • Franck Bret's avatar
      Add Julia Lister for listing Julia Packages · f8cfa05f
      Franck Bret authored
      This module introduce Julia Lister.
      It retrieves Julia packages origins from the Julia General Registry, a Git
      repository made of per package directory with Toml definition files.
      f8cfa05f
  9. Aug 21, 2023
    • Antoine Lambert's avatar
      cran: Improve listing of R packages · 91e4e33d
      Antoine Lambert authored
      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.
      v5.9.7
      91e4e33d
  10. Apr 06, 2022
  11. Feb 07, 2022
  12. Jun 09, 2021
  13. Feb 02, 2021
    • Antoine Lambert's avatar
      Remove no longer used legacy Lister API and update CLI options · 89335445
      Antoine Lambert authored
      Legacy Lister classes from the swh.lister.core mdule are no longer
      used in swh-lister codebase so it is time to remove them.
      
      Also remove lister CLI options related to legacy Lister API.
      
      As a consequence, the following requirements are no longer needed:
      arrow, SQLAlchemy, sqlalchemy-stubs and testing.postgresql.
      
      Closes T2442
      89335445
  14. Jan 20, 2021
    • Tenma's avatar
      Reimplement Bitbucket lister using new Lister API · 565e7423
      Tenma authored
      The new lister has incremental and full listing capability.
      It can request the Bitbucket API in anonymous and HTTP basic authentication
      modes. Rate-limiting is not aggressive and is handled.
      565e7423
  15. Nov 23, 2020
  16. Nov 20, 2020
  17. Jul 09, 2020
  18. Oct 28, 2019
  19. Sep 03, 2019
    • David Douard's avatar
      implement listers as plugins · e3c0ea9d
      David Douard authored
      Listers are declared as plugins via the `swh.workers` entry_point.
      
      As such, the registry function is expected to return a dict with the
      `task_modules` field (as for generic worker plugins), plus:
      
      - `lister`: the lister class,
      - `models`: list of SQLAlchemy models used by this lister,
      - `init` (optionnal): hook (callable) used to initialize the lister's state
        (typically, create/initialize the database for this lister).
        If not set, the default implementation creates database tables (after
        optionally having deleted exisintg ones) according to models declared in
        the `models` register field.
      
      There is no need for explicitely add lister task modules in the main
      `conftest` module, but any new/extra lister to be tested must be registered
      (the tested lister module must be properly installed in the test environment).
      
      Also refactor a bit the cli tools:
      - add support for the standard --config-file option at the 'lister' group
        level,
      - move the --db-url to the 'lister' group,
      - drop the --lister option for the `swh lister db-init` cli tool:
        initializing (especially with --drop-tables) the database for a single
        lister is unreliable, since all tables are created using a sibgle MetaData
        (in the same namespace).
      e3c0ea9d
  20. Jan 16, 2019
  21. Oct 30, 2018
  22. Oct 30, 2017
Loading