swh-lister/swh/lister
Antoine Lambert 22bcd9deb2 maven: Create one origin per package instead of one per package version
Previously the maven lister was creating an origin for each source
archive (jar, zip) it discovered during the listing process.

This is not the way Software Heritage decided to archive sources
coming from package managers. Instead one origin should be created
per package and all its versions should be found as releases in the
snapshot produced by the package loader.

So modify the maven lister in order to create one origin per package
grouping all its versions.

This change also modifies the way incremental listing is handled,
ListedOrigin instances will be yielded only if we discovered new
versions of a package since the last listing.

Tests have been updated to reflect these changes.

Related to T3874
2022-04-29 10:57:04 +02:00
..
bitbucket python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
cgit python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
cran python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
crates crates: Create one origin per package instead of per version 2022-04-28 16:10:33 +02:00
debian python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
gitea python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
github Make user_agent a parameter of GitHubSession 2022-04-26 11:08:53 +02:00
gitlab python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
gnu python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
launchpad python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
maven maven: Create one origin per package instead of one per package version 2022-04-29 10:57:04 +02:00
npm python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
opam python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
packagist python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
phabricator python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
pypi python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
sourceforge sourceforge: Fix listing of bzr projects 2022-04-21 18:19:07 +02:00
tests python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
tuleap python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +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 python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02: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 Remove no longer needed tenacity workarounds 2021-12-08 13:28:11 +01:00