- Nov 12, 2020
-
-
Antoine R. Dumont authored
Related to T2729
-
Antoine R. Dumont authored
So parse_swhid raises a ValidationError when that is detected. Related to T2769
-
Antoine R. Dumont authored
Related to T2769
-
Antoine R. Dumont authored
Related to T2769
-
- Oct 14, 2020
-
-
Nicolas Dandrimont authored
This collapses the shared logic between these two identifier computations into a few more explicit steps: - generate data for the manifest (in either identifier computation); - format the manifest (in the new format_manifest function); - hash the manifest (in the new hash_manifest function). This will enable reusing this logic for more object types, as well as stronger typing for the manifest computation.
-
- Sep 18, 2020
-
-
Thibault Allançon authored
Use the new SWHID naming convention instead of SWH PID.
-
- Sep 17, 2020
-
-
Antoine Lambert authored
Related to T2610
-
- Jul 08, 2020
-
-
Antoine Lambert authored
-
- Jul 07, 2020
- Jul 06, 2020
-
-
David Douard authored
Add a new extra_headers attribute on Revision and use it for computing the revision's id instead of extract it from the metadata field. Only accept (bytes, bytes) as extra_header. Add a post init hook to Revision to initialize this new attribute from given metadata, if any, for bw compat. Also amend the revision_d hyptothesis strategy to generate extra_headers.
-
- 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 15, 2020
-
-
David Douard authored
thus in TimestampWithTimezone.from_dict(). This is needed to help consuming existing (invalid) messages from kafka. Warning: tests added in this revision do not cover the whole normalize_timestamp() function.
-
- Apr 17, 2020
-
-
Stefano Zacchiroli authored
-
- Apr 08, 2020
-
-
David Douard authored
- blackify all the python files, - enable black in pre-commit, - add a black tox environment.
-
- Mar 23, 2020
-
-
Antoine Pietri authored
-
- Feb 21, 2020
-
-
vlorentz authored
It should be cheap enough to do it, and it makes tests easier.
-
- Nov 29, 2019
-
-
Antoine Lambert authored
-
- Oct 06, 2019
-
-
Stefano Zacchiroli authored
-
- Oct 04, 2019
-
-
... from test_persistent_identifier. Closes T1986
-
- Sep 20, 2019
-
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
-
- Aug 23, 2019
-
-
Stefano Zacchiroli authored
-
- Jul 10, 2019
-
-
vlorentz authored
-
- Jun 27, 2019
-
-
Ishan Bhanuka authored
-
- Apr 08, 2019
-
-
vlorentz authored
-
- Apr 04, 2019
-
- Sep 21, 2018
-
-
Antoine R. Dumont authored
-
- Jul 20, 2018
-
-
Antoine R. Dumont authored
Related T1152
-
- Jun 29, 2018
-
-
Antoine Lambert authored
This commit changes the swh pids representation returned by the parse_persistent_identifier function from a dict to a named tuple. Also, the 'object_type' attribute of that named tuple now contains a full name instead of an abbreviated one. Closes T1112 Closes T1125
-
- Jun 21, 2018
-
-
Antoine R. Dumont authored
Close T1104 Close D346
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
As the client of this api might not be aware of what's the right id key for a given object. Related T1104
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
Related T1104
-
- May 18, 2018
-
-
Antoine Lambert authored
This commits adds support for parsing optional parts in persistent identifiers. Optional parts are defined the following way: <swh_id>[;key1=val1][;key2=val2] Related T1040
-
- Jan 31, 2018
-
-
Antoine R. Dumont authored
-