Page MenuHomeSoftware Heritage

python: Simplify translation logic of author metadata
ClosedPublic

Authored by vlorentz on Aug 22 2022, 2:25 PM.

Diff Detail

Event Timeline

Build is green

Patch application report for D8274 (id=29888)

Could not rebase; Attempt merge onto 7d7f29fb6a...

Updating 7d7f29f..466108c
Fast-forward
 swh/indexer/codemeta.py                     | 23 +++++++++----------
 swh/indexer/metadata_dictionary/base.py     | 11 +++++-----
 swh/indexer/metadata_dictionary/cff.py      | 17 ++++++++-------
 swh/indexer/metadata_dictionary/composer.py |  9 ++++----
 swh/indexer/metadata_dictionary/dart.py     | 13 ++++++-----
 swh/indexer/metadata_dictionary/github.py   | 34 +++++++++++++----------------
 swh/indexer/metadata_dictionary/maven.py    |  7 +++---
 swh/indexer/metadata_dictionary/npm.py      | 11 +++++-----
 swh/indexer/metadata_dictionary/nuget.py    |  6 ++---
 swh/indexer/metadata_dictionary/python.py   | 18 ++++++++-------
 swh/indexer/metadata_dictionary/ruby.py     |  7 +++---
 swh/indexer/namespaces.py                   | 28 ++++++++++++++++++++++++
 12 files changed, 106 insertions(+), 78 deletions(-)
 create mode 100644 swh/indexer/namespaces.py
Changes applied before test
commit 466108c1667c88be7ff272e565ffe076e16064d8
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Aug 19 12:13:33 2022 +0200

    python: Simplify translation logic of author metadata

commit 92b53419f6f9d699451609cb23a946978ecb6b07
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Aug 19 11:37:06 2022 +0200

    metadata_dictionary: Simplify code using rdflib-style namespace classes

See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/435/ for more details.

This revision is now accepted and ready to land.Aug 22 2022, 3:46 PM