- Jul 03, 2020
-
-
Antoine Lambert authored
When Software Heritage persistent identifiers were introduced, they were not yet abbreviated as SWHIDs. Now that abbreviation is growing adoption, rename some functions and types in swh.model.identifiers for consistency: - PersistentId -> SWHID - persistent_identifier -> swhid - parse_persistent_identifier -> parse_swhid Backward compatibility with previous naming is maintained but deprecation warnings are introduced to encourage the use of the new names. Numerous variables in swh.model codebase have also been renamed accordingly. Also rework and improve documentation.
-
- Jun 24, 2020
-
-
David Douard authored
this aims at preventing constant usage of isinstance() based dispatch code when writing generic code handling model entities. For example, the "object_type" argument of JournalWriter.write_addition() has become superflous now we only pass model entities, etc. This idea comes olasd's reading of mypy doc: https://mypy.readthedocs.io/en/latest/literal_types.html#tagged-unions This comes with a refactoring of from_dict.DiskBackedContent to make it *not* inherit from model.Content: object_type being Final, it cannot be overloaded.
-
- Jun 03, 2020
-
-
David Douard authored
This is a step forward having model objects, declared as frozen, immutable. This requires attrs_strict >= 0.0.7.
-
- Apr 01, 2020
-
-
David Douard authored
This ensures all instanciated model entities have valid types for attributes. Related to T2308.
-
- Feb 27, 2020
-
-
vlorentz authored
Will be used by loaders.
-
- Oct 01, 2019
-
-
Stefano Zacchiroli authored
It is now possible to install swh-model without dulwich (and Click, FWIW). Users who want to use "swh identify" should "pip install swh-model[cli]".
-
Stefano Zacchiroli authored
-
- Apr 16, 2019
-
-
vlorentz authored
-
- Apr 08, 2019
-
- Jun 22, 2018
-
-
Antoine R. Dumont authored
-
- Nov 23, 2015
-
-
Nicolas Dandrimont authored
-