sort by:
Revision Author Date Message Commit Date
ff33f60 Updated backport on buster-swh from debian/1.0.0-1_swh1 (unstable-swh) 02 March 2021, 08:19:54 UTC
2460762 Merge tag 'debian/1.0.0-1_swh1' into debian/buster-swh 02 March 2021, 08:19:53 UTC
294c57c Updated debian changelog for version 1.0.0 02 March 2021, 08:18:42 UTC
fa6d992 Update upstream source from tag 'debian/upstream/1.0.0' Update to upstream version '1.0.0' with Debian dir b4105a4c2fba097e2c03fbbbcfecf5612e3885d6 02 March 2021, 08:18:41 UTC
9cb4fa4 New upstream version 1.0.0 02 March 2021, 08:18:40 UTC
8e01199 Add CoreSWHID.to_extended() This is a useful shorthand when generating SWHIDs in tests. 01 March 2021, 09:06:58 UTC
31a8a0f RawExtrinsicMetadata: Use CoreSWHID instead of SWHID for contexts SWHID is deprecated; and CoreSWHID does not support qualifiers at all, so RawExtrinsicMetadata no longer needs to check there are no qualifiers. 01 March 2021, 09:06:58 UTC
752fb81 RawExtrinsicMetadata: Use ExtendedSWHID as target and remove type ExtendedSWHID can identify either a software artifact or an origin, so we no longer need Union[SWHID, str]. Therefore, we no longer need the 'type' attribute, as it was only used to tell when the target is a SWHID and when it's an origin URL. 01 March 2021, 09:06:58 UTC
256bca2 Add a swhid() method to all hashable objects. It can be handy as a shortcut to build SWHID objects. 01 March 2021, 09:06:58 UTC
8e8e86f Updated backport on buster-swh from debian/0.13.0-1_swh1 (unstable-swh) 25 February 2021, 17:00:37 UTC
4960489 Merge tag 'debian/0.13.0-1_swh1' into debian/buster-swh 25 February 2021, 17:00:37 UTC
a4a64ad Updated debian changelog for version 0.13.0 25 February 2021, 16:59:26 UTC
b7b0ea5 Update upstream source from tag 'debian/upstream/0.13.0' Update to upstream version '0.13.0' with Debian dir 381261712ed7fa0561d14badf821880c2b4fc275 25 February 2021, 16:59:25 UTC
e4fd96f New upstream version 0.13.0 25 February 2021, 16:59:25 UTC
24b653e Add test for all qualifiers' converters and validators 23 February 2021, 12:48:49 UTC
069b56a Escape semicolon in origin qualifiers. 23 February 2021, 12:48:39 UTC
710fb42 Add test checking SWHID_QUALIFIERS matches the attributes of QualifiedSWHID. 23 February 2021, 12:48:39 UTC
7dead5d Fix qualifier parsing and add tests * Quote/unquote path * Fix line parsing and serializing to properly handle None * Fix error raised by check_visit/check_anchor 23 February 2021, 12:48:39 UTC
172eadb Deduplicate parsing/unparsing tests of the new SWHID classes They were all very similar and only differ in what 'edge' cases they accept 23 February 2021, 12:48:29 UTC
9bcc884 Deduplicate code between CoreSWHID, QualifiedSWHID, and ExtendedSWHID by making them all derive from an abstract class. 23 February 2021, 12:26:27 UTC
d4b20dc Add new class ExtendedSWHID as an alternative to SWHID/QualifiedSWHID Following the discussion on T3034, we decided to replace SWHID with two or three classes: * QualifiedSWHID to replace the existing SWHID (standard types + qualifiers) * CoreSWHID, for "core SWHID" only (standard types + no qualifiers) * ExtendedSWHID for internal use in Software Heritage (extra types + no qualifiers) This commit adds the last one. It also removes "ori" as a valid object type for CoreSWHID and QualifiedSWHID, as it now only belongs in ExtendedSWHID. 23 February 2021, 12:26:22 UTC
9923765 Use dict instead of temporary SWHID when parsing {Core,Qualified}SWHID. It is cleaner, avoids warnings, and will be needed when introducing ExtendedSWHID in a future commit. 19 February 2021, 13:20:58 UTC
8e91759 QualifiedSWHID: Replace the 'qualifiers' dict with statically defined attributes And store their parsed values (CoreSWHID, tuple of ints, etc.) instead of string. 19 February 2021, 12:49:11 UTC
eba8d84 Add new class CoreSWHID as an alternative to SWHID/QualifiedSWHID Following the discussion on T3034, we decided to replace SWHID with two or three classes: * QualifiedSWHID to replace the existing SWHID (standard types + qualifiers) * CoreSWHID, for "core SWHID" only (standard types + no qualifiers) * ExtendedSWHID for internal use in Software Heritage (extra types + no qualifiers) This commit adds the second one 19 February 2021, 12:48:27 UTC
690b7f8 Add new class QualifiedSWHID to replace SWHID, and deprecate the latter. Following the discussion on T3034, we decided to replace SWHID with two or three classes: * QualifiedSWHID to replace the existing SWHID (standard types + qualifiers) * CoreSWHID, for "core SWHID" only (standard types + no qualifiers) * ExtendedSWHID for internal use in Software Heritage (extra types + no qualifiers) Since migrating from SWHID will break existing code, this commit uses the opportunity to modernize it a little, ie.: * `keyword`-only constructor, to get rid of the hacky default values for `object_type` and `object_id` * enum instead of strings for the object type * `bytes` instead of an hex string for the object id * rename `metadata` to `qualifiers` 19 February 2021, 12:47:25 UTC
758eb88 tests: Clean hashutil._blake2_hash_cache after mocking blake2 functions. Depending on the order in which tests are run, these tests may insert lambdas with mocked blake2 functions in their closure to be inserted in hashutil._blake2_hash_cache; causing all future tests to fail. While this does not happen with the default order of tests, it does when using pytest-xdist. 19 February 2021, 09:48:42 UTC
0c16581 Make explicit Python 3 dependency 02 February 2021, 12:52:16 UTC
1bfdf71 Update persistent identifiers doc with pip install info 29 January 2021, 23:53:27 UTC
7163128 Updated backport on buster-swh from debian/0.12.0-1_swh1 (unstable-swh) 26 January 2021, 16:28:55 UTC
9d3b528 Merge tag 'debian/0.12.0-1_swh1' into debian/buster-swh 26 January 2021, 16:28:54 UTC
584b754 Updated debian changelog for version 0.12.0 26 January 2021, 16:27:16 UTC
13ed4dc Update upstream source from tag 'debian/upstream/0.12.0' Update to upstream version '0.12.0' with Debian dir fa312d034805923e43055018f760bb74d93020fa 26 January 2021, 16:27:15 UTC
4e3bc4e New upstream version 0.12.0 26 January 2021, 16:27:14 UTC
cad940d Add swh-journal's model-related test data set in swh-model so it's kept up to date when evolutions are made in the model and thus preventing swh-journal and swh-model to be unecessarly coupled. Related to T2970. 26 January 2021, 15:43:13 UTC
5cc2ec5 Updated backport on buster-swh from debian/0.11.0-1_swh1 (unstable-swh) 20 January 2021, 14:36:12 UTC
0ecbb34 Merge tag 'debian/0.11.0-1_swh1' into debian/buster-swh 20 January 2021, 14:36:10 UTC
568c5c5 Updated debian changelog for version 0.11.0 20 January 2021, 14:34:54 UTC
1d8ca54 Update upstream source from tag 'debian/upstream/0.11.0' Update to upstream version '0.11.0' with Debian dir ad60fcf7e9e7237e4c2e6dd0680004d3379e7ab9 20 January 2021, 14:34:53 UTC
3f1b16b New upstream version 0.11.0 20 January 2021, 14:34:52 UTC
9af451f model: Allow new status values not_found and failed to OriginVisitStatus Related to T2961 20 January 2021, 13:00:33 UTC
07e124c Updated backport on buster-swh from debian/0.10.0-1_swh1 (unstable-swh) 14 January 2021, 13:17:15 UTC
e987923 Merge tag 'debian/0.10.0-1_swh1' into debian/buster-swh 14 January 2021, 13:17:15 UTC
88e5ec9 Updated debian changelog for version 0.10.0 14 January 2021, 13:16:10 UTC
1c8cdb1 New upstream version 0.10.0 14 January 2021, 13:16:09 UTC
7b0d520 Update upstream source from tag 'debian/upstream/0.10.0' Update to upstream version '0.10.0' with Debian dir 3349854b23ac224df660256b72722b90d897af10 14 January 2021, 13:16:09 UTC
1ca92a5 Add an optional type field on OriginVisitStatus object The optional nature of the type will allow to avoid migrating the (db) data model right now then we can have this type field in kafka messages in the origin-visit-status topic Related to T2443 13 January 2021, 10:14:28 UTC
1d0c321 test_identifiers: Reorder SWHID tests. They were mixed in with snapshot tests. 12 January 2021, 11:24:35 UTC
731d10d test_identifiers: Make sure that {directory,revision,release,snapshot}_identifier() doesn't just return a value from the dict. For example, before this commit, you could replace the code of revision_identifier() with this: def release_identifier(release): return release.get("id", b"") and all tests would still pass. 12 January 2021, 11:17:30 UTC
18fde50 Add missing slots=True for Directory. 04 January 2021, 14:48:26 UTC
5746850 SWHID parsing: simplify and deduplicate validation logic Before this change there was a lot of overlap between parse_swhid() and the attrs-based validators in the SWHID class. Also, the validation implementation in parse_swhid() was done by hand. With this change the coarse-grained validation done by parse_swhid() is now delegated to a regex. The semantic validation of SWHIDs is left to attrs validators. The regex is also exposed as a module attribute, to be used by client code that want to syntactically validate SWHIDs without necessarily instantiate SWHID classes (we have several other modules doing that already, and they are using slightly different hand-made regexs, which isn't great). As part of this change we also clean up the use of ValidationError exceptions, systematically passing the problematic parts of SWHID as arguments, and uniform error messages. This change also brings some speed up in SWHID parsing. On a benchmark parsing ~30 M valid SWHIDs, the previous implementation took ~3:06 minutes, the new one ~2:50 minutes, or a ~9% speedup. Closes T2788 30 December 2020, 12:22:47 UTC
76b744e model: Make all classes slotted. Unfortunately, sphinx (actually, autodoc) only picks up attributes if they fall in any of these cases: 1. are enum variants 2. are in slots 3. are in __dict__ 4. have an annotation 5. are found using its custom parser (see get_object_members in sphinx/ext/autodoc/importer.py) In theory, option 5 should work for us; unfortunately, autodoc only asks the parser the list of members with a comment. And it's not easy to adapt it to ask the parser for all members, because said parser (sphinx/pycode/parser.py) does not return the class qualname (aka. namespace) for members without comments. So, as I don't want to change the interface of sphinx.pycode.parser, this commit switches to relying on option 3, by adding __slots__ for all attr classes. Additionally, this might have some performance/memory improvement (though I did not check) and will further avoid mutation of these objects. 15 December 2020, 13:10:04 UTC
9f7be3e Updated backport on buster-swh from debian/0.9.0-1_swh1 (unstable-swh) 17 November 2020, 09:17:20 UTC
cb1ae6f Merge tag 'debian/0.9.0-1_swh1' into debian/buster-swh 17 November 2020, 09:17:20 UTC
783610c Updated debian changelog for version 0.9.0 17 November 2020, 09:15:43 UTC
c56d19b Update upstream source from tag 'debian/upstream/0.9.0' Update to upstream version '0.9.0' with Debian dir 83f5830c4b3e83f522a5735985fc3e419dcb1310 17 November 2020, 09:15:42 UTC
fd2279e New upstream version 0.9.0 17 November 2020, 09:15:42 UTC
a3b6a64 Drop backwards-compatibility support for RawExtrinsicMetadata.id All reverse dependencies have been updated to avoid using it now, so it can now be removed, paving the way to recycle it into an intrinsic identifier. 16 November 2020, 17:51:31 UTC
a4c883a Updated backport on buster-swh from debian/0.8.0-1_swh1 (unstable-swh) 12 November 2020, 12:12:38 UTC
7e0be2e Merge tag 'debian/0.8.0-1_swh1' into debian/buster-swh 12 November 2020, 12:12:38 UTC
50da48a Updated debian changelog for version 0.8.0 12 November 2020, 12:10:46 UTC
4ba79e2 Update upstream source from tag 'debian/upstream/0.8.0' Update to upstream version '0.8.0' with Debian dir cb3baf0fb785c9fdfb080474a425f3948ef005ab 12 November 2020, 12:10:45 UTC
71b254b New upstream version 0.8.0 12 November 2020, 12:10:44 UTC
8e121bb model.identifiers: Fix one space too many in error message Related to T2729 12 November 2020, 11:59:51 UTC
559a283 identifiers.parse_swhid: Make SWHIDs with whitespaces invalid So parse_swhid raises a ValidationError when that is detected. Related to T2769 12 November 2020, 11:39:04 UTC
fb504b4 identifiers.parse_swhid: Check the swhid qualifiers and fail if invalid Related to T2769 12 November 2020, 11:39:04 UTC
22c7c88 model.identifiers: Improve error messages in case of invalid SWHIDs Related to T2769 12 November 2020, 10:15:56 UTC
47946aa test: Migrate parse_swhid test cases to pytest Related to T2769 10 November 2020, 17:37:51 UTC
c423aba Updated backport on buster-swh from debian/0.7.3-1_swh1 (unstable-swh) 27 October 2020, 15:08:32 UTC
8b14e88 Merge tag 'debian/0.7.3-1_swh1' into debian/buster-swh 27 October 2020, 15:08:31 UTC
975092f Updated debian changelog for version 0.7.3 27 October 2020, 15:06:50 UTC
780a4d6 Update upstream source from tag 'debian/upstream/0.7.3' Update to upstream version '0.7.3' with Debian dir 52148284bb73fc33b424821f1624f3f539a5e6d3 27 October 2020, 15:06:50 UTC
8ba04bd New upstream version 0.7.3 27 October 2020, 15:06:49 UTC
4e3fdc0 Throw fewer deprecation warnings for the RawExtrinsicMetadata id attr This avoids throwing the deprecation warning when id and target are present and have the same value, which makes a from_dict / to_dict round-trip throw no deprecation warnings. 27 October 2020, 14:38:26 UTC
c316577 Updated backport on buster-swh from debian/0.7.2-1_swh1 (unstable-swh) 27 October 2020, 09:43:02 UTC
be6754a Merge tag 'debian/0.7.2-1_swh1' into debian/buster-swh 27 October 2020, 09:43:01 UTC
00fa01b Updated debian changelog for version 0.7.2 27 October 2020, 09:41:19 UTC
4f8392b New upstream version 0.7.2 27 October 2020, 09:41:18 UTC
b953555 Update upstream source from tag 'debian/upstream/0.7.2' Update to upstream version '0.7.2' with Debian dir 3d28dbc49bced19e4411f3c3f60af57d08510a4a 27 October 2020, 09:41:18 UTC
9da17a5 Rename the RawExtrinsicMetadata id field to target This backwards-compatible change prepares the transition to give RawExtrinsicMetadata an `id` field that is computed intrinsically from its contents (using the HashableObject mixin). 26 October 2020, 15:57:49 UTC
498a107 Update the HashableObject interface to take the object itself This will enable a gradual enhancement of the functions in identifiers.py to take model objects directly, and return the bytes of the hash instead of an hex representation. 23 October 2020, 15:12:34 UTC
aa84d8d CONTRIBUTORS: Add Antoine Cezar 23 October 2020, 12:48:18 UTC
2b869aa swh identify: add --exclude 23 October 2020, 09:21:35 UTC
9224c8c Make revision/release identifiers explicitly the hash of a manifest 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. 14 October 2020, 16:49:54 UTC
5972312 Updated backport on buster-swh from debian/0.7.1-1_swh1 (unstable-swh) 12 October 2020, 10:20:22 UTC
5c20290 Merge tag 'debian/0.7.1-1_swh1' into debian/buster-swh 12 October 2020, 10:20:22 UTC
604ae3e Updated debian changelog for version 0.7.1 12 October 2020, 10:19:10 UTC
d0e3797 Update upstream source from tag 'debian/upstream/0.7.1' Update to upstream version '0.7.1' with Debian dir 7e580ad70508156c42e6cc2a3b98a9d95aee1a5a 12 October 2020, 10:19:10 UTC
a456586 New upstream version 0.7.1 12 October 2020, 10:19:09 UTC
a251df2 Add a 'unique_key' method on model objects that returns a value suitable for unicity constraints. Motivation: * this is somewhat more of a model concern than a journal/kafka concern IMO * this is one step toward adding support for non-model objects in KafkaJournalWriter Implementation of the unique_key methods comes from `swh.journal.serializers.object_key`. 08 October 2020, 09:17:35 UTC
b6c190b Updated backport on buster-swh from debian/0.7.0-1_swh1 (unstable-swh) 07 October 2020, 10:49:03 UTC
cfa63d9 Merge tag 'debian/0.7.0-1_swh1' into debian/buster-swh 07 October 2020, 10:49:02 UTC
2c70016 Updated debian changelog for version 0.7.0 07 October 2020, 10:47:55 UTC
2ba43f0 Update upstream source from tag 'debian/upstream/0.7.0' Update to upstream version '0.7.0' with Debian dir 61c3aaf791f4b23b6e9369720b4f00ecc2ba94b6 07 October 2020, 10:47:54 UTC
da14cc6 New upstream version 0.7.0 07 October 2020, 10:47:54 UTC
bdfde82 cli: make SWHIDParamType return SWHID type instead of string 05 October 2020, 08:29:06 UTC
fe3ec55 tox.ini: pin black to the pre-commit version (19.10b0) to avoid flip-flops 02 October 2020, 14:23:49 UTC
362ebf6 Merge the two test_identifiers.py files. I created one in the wrong directory and didn't see the existing one. 29 September 2020, 10:48:29 UTC
c2a11c6 Updated backport on buster-swh from debian/0.6.7-3_swh1 (unstable-swh) 25 September 2020, 16:48:51 UTC
a95e77e Merge tag 'debian/0.6.7-3_swh1' into debian/buster-swh 25 September 2020, 16:48:50 UTC
e8267ec d/control: fix a typo and bump version 25 September 2020, 16:46:35 UTC
back to top