Add classmethod Person.from_address, to parse from 'name <email>' strings.
Merge request reports
Activity
Build is green See https://jenkins.softwareheritage.org/job/DMOD/job/tox/200/ for more details.
I think you should simply reuse the
parse_author
function that you removed in swh-loader-core!70 (closed).It handles a lot of author strings format and is properly tested.
Its purpose was to handle all the weird things that you can find in
package.json
files in the wild.Build is green See https://jenkins.softwareheritage.org/job/DMOD/job/tox/207/ for more details.
! In !88 (closed), @anlambert wrote: I think you should simply reuse the
parse_author
function that you removed in swh-loader-core!70 (closed).It handles a lot of author strings format and is properly tested.
Its purpose was to handle all the weird things that you can find in
package.json
files in the wild.The goal is to phase out name and email from the model/storage and push it to frontends, and this is the simplest way to preserve compatibility with non-NPM sources in case there are parentheses in the name.
Build is green See https://jenkins.softwareheritage.org/job/DMOD/job/tox/208/ for more details.