Page MenuHomeSoftware Heritage

Update SWHID regexp used by Zenodo
Closed, ResolvedPublic

Description

SWHIDs have new qualifiers to describe more precisely where an object has been found in the archive.

A pull request must be submitted to the idutils repository, used by Zenodo to detect identifiers, in order to add support for the new SWHID qualifiers.

Event Timeline

anlambert triaged this task as Normal priority.Jun 9 2020, 11:30 AM
anlambert created this task.

Is there a way to improve the regex in https://github.com/inveniosoftware/idutils/pull/60 to allow qualifiers to come in any order instead of the canonical one?

Thanks :-)

Le mar. 9 juin 2020 à 16:18, anlambert (Antoine Lambert) <
forge@softwareheritage.org> a écrit :

anlambert added a comment. View Task
https://forge.softwareheritage.org/T2441

I just simplified the regexp to allow qualifiers permutation:
https://github.com/inveniosoftware/idutils/blob/cc09640ffb457bab3cfe8d0eeb4822dd521fd36d/idutils/__init__.py#L245-L249

*TASK DETAIL*
https://forge.softwareheritage.org/T2441

*EMAIL PREFERENCES*
https://forge.softwareheritage.org/settings/panel/emailpreferences/

*To: *anlambert
*Cc: *rdicosmo, anlambert, zack

anlambert closed this task as Resolved.Jun 19 2020, 9:53 AM
anlambert claimed this task.

PR merged. New SWHID qualifiers will be supported in release 1.1.7 of idutils.