swh-lister/swh/lister
Antoine Lambert 6c12350863 pattern: Use URL network location as instance name when not provided
Make the instance parameter of the base pattern lister optional and set
lister name to URL network location when not provided.

It simplifies lister creation when associated forge type have a lot of
instances in the wild (e.g. gitlab or cgit) while giving more details
about the listed forge instance.

Also process listers for forge with multiple instances (cgit, gitea,
gitlab, phabricator and tuleap) to ensure URL network location will be
used when instance parameter is not provided.

Related to T3403
2021-07-13 12:33:49 +02:00
..
bitbucket mypy: Fix errors with release >= v0.900 2021-06-09 14:02:23 +02:00
cgit pattern: Use URL network location as instance name when not provided 2021-07-13 12:33:49 +02:00
cran cran: Prevent multiple listing of an origin 2021-02-05 14:34:37 +01:00
debian debian: Update archive mirror URL templates to process 2021-02-08 14:01:59 +01:00
gitea pattern: Use URL network location as instance name when not provided 2021-07-13 12:33:49 +02:00
github GitHub: handle edge cases with empty responses 2021-03-19 16:53:52 +01:00
gitlab pattern: Use URL network location as instance name when not provided 2021-07-13 12:33:49 +02:00
gnu gnu: Remove dependency on pytz 2021-02-02 13:19:04 +01:00
launchpad launchpad: Remove call to dataclasses.asdict on lister state 2021-01-28 19:17:58 +01:00
npm Remove no longer used models field in dict returned by register 2021-02-02 16:33:52 +01:00
opam add opam lister 2021-07-06 15:19:00 +02:00
packagist packagist: Reimplement lister using new Lister API 2021-02-02 14:48:47 +01:00
phabricator pattern: Use URL network location as instance name when not provided 2021-07-13 12:33:49 +02:00
pypi Make PyPI lister incremental and complete in regards to last_update 2021-07-09 12:51:58 +02:00
sourceforge sourceforge: use http:// for Mercurial 2021-06-04 10:51:56 +02:00
tests pattern: Use URL network location as instance name when not provided 2021-07-13 12:33:49 +02:00
tuleap pattern: Use URL network location as instance name when not provided 2021-07-13 12:33:49 +02:00
__init__.py Hook up listers implemented with the new pattern to the CLI 2021-01-11 11:00:29 +01:00
cli.py Remove no longer used legacy Lister API and update CLI options 2021-02-02 15:54:55 +01:00
pattern.py pattern: Use URL network location as instance name when not provided 2021-07-13 12:33:49 +02:00
py.typed typing: minimal changes to make a no-op mypy run pass 2019-10-28 15:35:21 +01:00
utils.py sourceforge: retry for all retryable exceptions 2021-05-26 12:05:39 +02:00