https://github.com/SoftwareHeritage/swh-model

sort by:
Revision Author Date Message Commit Date
02464c6 New upstream version 0.0.67 17 April 2020, 15:54:02 UTC
d52549f CLI: add test for swh identify w/o args and user required=True to check that, as it is the preferred way 17 April 2020, 15:42:16 UTC
7b2cc1f CLI: require explicit "-" to identify via stdin 17 April 2020, 15:25:03 UTC
6ac6cb7 SWHID doc: fix minor grammar issue hat tip to @rdicosmo for noticing 17 April 2020, 15:11:38 UTC
098f76a SWHID doc: fix link in CISE paper reference 17 April 2020, 14:42:46 UTC
36f921b identifiers.py: reference to SWHIDs using explicit anchors 17 April 2020, 14:23:13 UTC
94242ca swh identify: embrace SWHID naming in user-facing doc/messages 17 April 2020, 14:22:41 UTC
4c78d47 PID doc: embrace the SWHID naming 17 April 2020, 14:22:11 UTC
0ab482e PID doc: add reference to CISE paper 17 April 2020, 14:21:46 UTC
2ae347d doc: document identify CLI 16 April 2020, 14:25:14 UTC
d9ff893 New upstream version 0.0.66 10 April 2020, 14:48:16 UTC
401bc17 model: Rename OriginVisitUpdate to OriginVisitStatus This also adapts the hypothesis strategies, using the plural form origin_visit_statuses. That plural form is acceptable because in our context, the statuses are countable. Related to T2310 10 April 2020, 08:43:20 UTC
6f8c66c model: Black formatting 10 April 2020, 08:43:04 UTC
789a5fa New upstream version 0.0.65 09 April 2020, 14:27:20 UTC
94da010 Add a pyproject.toml file to target py37 for black 08 April 2020, 20:16:56 UTC
bf3f1ce Enable black - blackify all the python files, - enable black in pre-commit, - add a black tox environment. 08 April 2020, 14:53:06 UTC
5d6883b from_disk: path parameter to dir_filter functions 08 April 2020, 09:31:22 UTC
eb552ad New upstream version 0.0.64 03 April 2020, 13:03:33 UTC
c7c1a57 docs/data-model: Update visits chapter definition Hinting at the origin_visit_update model Related to T2310 02 April 2020, 14:32:02 UTC
64a7f62 model: Make message field optional in Release model A release may have an empty message, for instance those derived from a Mercurial repository. So make that field optional to avoid type validation errors. 02 April 2020, 12:00:30 UTC
074c210 hypothesis: Fix some issues in snapshots strategy and add tests Fix keyword parameters transmission to snapshots_d strategy. Ensure max_size constraint is respected when fixing snapshot aliases. 02 April 2020, 09:45:59 UTC
ca0f6a1 model: add support for ctime in [Skipped]Content.from_[data,dict]() With support for str representation of date. Mostly for testing purpose. 01 April 2020, 09:07:24 UTC
414a655 model: small code improvement of SkippedContent.from_dict 01 April 2020, 09:07:24 UTC
6ce0f71 model: fix SkippedContent origin to be a str instead of a reference to an Origin entity. 01 April 2020, 09:07:24 UTC
f513271 hypothesis: split hypothesis strategies as a dict + entity instance for each entity model `Model`, provide a `models_d` strategy that produces dicts suitable for using as argument for the `Model.from_dict` factory method, and reimplement the `models` generator using this former hypothesis generator. This is needed to help writing low level tests for model entities. 01 April 2020, 09:07:24 UTC
10b0699 model: improve a bit the TimestampWithTimezone model - add a validator for negative_utc (can be True iff offset is 0), - update the timestamps_with_timezone hypothesis strategy, - add low-level tests for it. 01 April 2020, 08:57:07 UTC
ac9d4c8 tests: add low level tests for the Timestamp model entity 01 April 2020, 08:57:07 UTC
85ca7d7 model: use attrs_static to enforce type validation of model objects This ensures all instanciated model entities have valid types for attributes. Related to T2308. 01 April 2020, 08:57:07 UTC
0ac432d New upstream version 0.0.63 01 April 2020, 08:08:57 UTC
e9a4c75 model: Add new OriginVisitUpdate model object + test strategy (pairing with @vlorentz) Related to T2310 31 March 2020, 16:01:54 UTC
accca60 Typo 30 March 2020, 12:13:59 UTC
b6e92ea Further clarifications in the PID extension 30 March 2020, 12:11:55 UTC
d14883e Clarify ambiguities in PID extensions 28 March 2020, 17:22:11 UTC
0767c81 Extend SWH PID definition with additional context qualifiers. 28 March 2020, 14:16:04 UTC
c4e61da New upstream version 0.0.62 26 March 2020, 13:22:19 UTC
4a2233c identifiers: encode origin URLs in utf-8 23 March 2020, 18:09:47 UTC
97af886 tests/identifiers: fix 'target', 'directory' and 'parents' object types These are expected to be bytes, not str. 12 March 2020, 13:28:22 UTC
56ae59c test/model: do not test direct instanciation of model objects this does not work in the general case since there is no (recursive) convertion of objects used as model object initialization. We can only check when using the from_dict() factory. 11 March 2020, 14:41:49 UTC
c746960 tests/models: use d.copy() instead of dict(d) for better clarity on the code author's intention. 11 March 2020, 14:39:32 UTC
f533f62 model: kill Origin.type attribute it was still here for bw-compat but should not be necessary any more. 11 March 2020, 14:01:23 UTC
0a6d7e0 Extract the dictify() function from BaseModel.to_dict() this function does not need to be a local function of the to_dict namespace. 11 March 2020, 12:15:32 UTC
0930298 New upstream version 0.0.60 05 March 2020, 11:07:49 UTC
a5a9f57 Add classmethod Person.from_address, to parse from 'name <email>' strings. This will allow deduplicating code across loaders. 04 March 2020, 10:52:29 UTC
5ccf8a8 Draw contents from a byte string instead of generating arbitrary hashes This generates more realistic contents and avoids spurious HashCollisions when generating a set of objects using these hypothesis strategies, at the cost of slightly worse "boundary checking" (i.e. we won't check contents with a length > 4096 bytes). 02 March 2020, 15:22:59 UTC
ded150d Add a method to generate Content/SkippedContent from binary data This lets us generate Content objects directly from a bytestring, with the proper set of hashes auto-generated from the contents. 02 March 2020, 15:22:43 UTC
d1faa06 New upstream version 0.0.59 27 February 2020, 17:07:15 UTC
cb075eb model.hypothesis: use the proper strategy name for building `Person`s 27 February 2020, 17:03:18 UTC
a9a42ea model.hypothesis: Fix person generation 27 February 2020, 15:27:40 UTC
0f2448d New upstream version 0.0.57 27 February 2020, 14:20:20 UTC
f7f18a3 Make attributes name and email of Person optional. Required by loaders, when they can't parse the fullname. 27 February 2020, 14:12:07 UTC
750d147 Add from_datetime and from_iso8601 constructors for TimestampWithTimezone. Will be used by loaders. 27 February 2020, 14:10:31 UTC
9cf7a04 Add method MerkleNode.iter_tree, to visit all nodes in the subtree of a node. 27 February 2020, 13:26:12 UTC
c0ce38e Take the value of MerkleNode.data into account to compute equality. It just makes more sense that way. eg. before this change, all leafs would be equal to each other. 24 February 2020, 15:07:03 UTC
6da524c Add to_model() method to from_disk.{Content,Directory}, to convert to canonical model objects. They will be used by loaders, so they can deal only with model objects, instead of having to do the same conversion themselves. This removes the `data` and `save_path` arguments of `from_file` and `from_disk`, as data loading is always deferred from now on. To access it, users are now expected to either open the data files themselves, or us `.to_model().with_data()`. 24 February 2020, 15:06:24 UTC
ad6a030 Fix tests of special devices. Regular files were created, as the 'mode' argument of os.mknod was missing. However, creating devices requires root; so we can't reasonably do that in tests. Instead, we're using /dev/null instead of creating one. And while we're at it, let's also use /dev/zero (which, if not handled properly, will result in an infinite read). 21 February 2020, 15:03:11 UTC
4c070f9 Sort from_disk.Directory entries. It should be cheap enough to do it, and it makes tests easier. 21 February 2020, 12:39:05 UTC
e109241 Add test for git directory entries order. 21 February 2020, 12:39:05 UTC
60c3aa1 Add support for skipping large contents in from_disk. It will be useful to loaders, as they currently load the entire content in memory before deciding to skip it. 21 February 2020, 12:39:05 UTC
a5b5818 Re-introduce the swh.core dependency in swh.model[cli] This allows the `swh identify` command to work again. Close T2288 18 February 2020, 11:03:29 UTC
2c1e02b Add method BaseModel.hashes(). Can be useful to deduplicate code in swh-storage. 14 February 2020, 17:07:44 UTC
188b801 New upstream version 0.0.56 10 February 2020, 10:48:54 UTC
fcfbd4d Make OriginVisit.snapshot optional. It already is in practice. 07 February 2020, 15:53:03 UTC
679f85b New upstream version 0.0.55 07 February 2020, 15:16:57 UTC
73053a6 Make 'visible' the default status for present Contents. 07 February 2020, 15:08:19 UTC
05b89f2 Make content length mandatory. The current postgresql model refuses NULL values. 07 February 2020, 15:02:04 UTC
4916c38 New upstream version 0.0.54 06 February 2020, 12:18:03 UTC
8ebbd21 Split Content class into two classes, for missing and non-missing contents. 05 February 2020, 10:26:41 UTC
d944d52 New upstream version 0.0.53 03 February 2020, 15:01:25 UTC
4b779e1 test_model: Simplify and align model checks 30 January 2020, 15:43:50 UTC
b54adf7 model: Update revision date types to be optional Related to P589 30 January 2020, 15:37:07 UTC
57a0e08 cli: add support for reading a file content from stdin in 'swh identify' command This allows for example to type: curl -s https://archive.softwareheritage.org/browse/content/sha1_git:64582b78792cd6c2d67d35da5a11bb80886a6409/raw/ | swh identify swh:1:cnt:64582b78792cd6c2d67d35da5a11bb80886a6409 - 29 January 2020, 14:22:37 UTC
16e4425 model: Fix sphinx warning Related to T2188 17 January 2020, 17:25:40 UTC
7b6f474 hypothesis_strategies/snapshots: Explain last post-processing step 02 December 2019, 18:56:37 UTC
30a3898 New upstream version 0.0.52 29 November 2019, 15:30:56 UTC
4e4c4ff model: Add automatic object identifier computation support Add support to automatically compute identifier in the following object models: Directory, Release, Revision, Snapshot. If the identifier is not provided as parameter, it will be computed when the model is initialized. 29 November 2019, 14:51:35 UTC
da64756 identifiers: Fix release_identifier for snapshot target 29 November 2019, 13:00:53 UTC
276a528 Add a pre-commit config file 21 November 2019, 12:47:13 UTC
c8ee973 Migrate tox.ini to extras = xxx instead of deps = .[testing] 21 November 2019, 12:46:11 UTC
3b26bf3 De-specify testenv:py3 Allows us to call tests on things other than python3, with the same settings. 21 November 2019, 12:45:48 UTC
1ff9e52 Include all requirements in MANIFEST.in 20 November 2019, 18:51:46 UTC
67e78eb PID doc: drop mention of ori PIDs they will remain for internal use only, so should not be mentioned in this public spec this reverts the documentation part of 67fade5f674a57fd8845ad57161a86a2d898d197 20 November 2019, 11:56:51 UTC
c33b928 New upstream version 0.0.51 30 October 2019, 14:05:55 UTC
0b9c5be Make OriginVisit.origin a string instead of a dict. 30 October 2019, 13:36:25 UTC
58a535d New upstream version 0.0.50 30 October 2019, 08:32:49 UTC
b064a0b Add a test data generator module currently provides mainly 2 generators: - gen_origins() - gen_contents() 29 October 2019, 15:43:15 UTC
7564596 model: make model entities frozen we do not really need them to be mutable, plus we gain their instances now being hashable, so we can add them in set() for example. 29 October 2019, 13:47:13 UTC
f1a1593 New upstream version 0.0.49 23 October 2019, 12:30:40 UTC
4b79a2b model: make to_dict() properly recursive Instead of relying on attr.asdict recursion, we do recursion ourselves. This simplifies a lot of the inherited to_dict() methods. 23 October 2019, 12:22:15 UTC
2e4558c test_cli.py: fill in valid snapshot ID 20 October 2019, 19:23:53 UTC
8e3ee39 test_cli.py: drop unused NoQA marker 20 October 2019, 19:23:53 UTC
4a74205 swh identify -t snapshot: add support for symbolic refs 20 October 2019, 19:23:53 UTC
2c626ee New upstream version 0.0.48 18 October 2019, 15:11:00 UTC
b2c21d3 Don't export origin_visit['origin']['type'] 18 October 2019, 11:21:43 UTC
7a9fc39 model: Don't export origin['type'] 18 October 2019, 09:55:40 UTC
c103a6f tox.ini: Fix py3 environment to use packaged tests Related D2082 09 October 2019, 13:16:42 UTC
131298c swh.model: document how origin PIDs are computed 06 October 2019, 18:10:38 UTC
298c942 CONTRIBUTORS: add @DanSeraf 04 October 2019, 17:12:57 UTC
e7cf550 Merge branch 'arcpatch-D2058' 04 October 2019, 17:10:35 UTC
375832f PID: move validation checks to PersistentId constructor ... from test_persistent_identifier. Closes T1986 04 October 2019, 17:10:24 UTC
6e7c3da mypi.ini: remove left-over "false positive" comment from dulwich exclude 01 October 2019, 15:58:26 UTC
back to top