diff --git a/PKG-INFO b/PKG-INFO index 0c672ccc3cfe47bd47e45366ab20078286bf907c..0c7e81ca9b76cc80f86bf3d5e8517d914fe3a8db 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: swh.model -Version: 0.10.0 +Version: 0.11.0 Summary: Software Heritage data model Home-page: https://forge.softwareheritage.org/diffusion/DMOD/ Author: Software Heritage developers diff --git a/debian/changelog b/debian/changelog index f84b663ba7c5e5a509fedf5c7270a19e3f78f251..3f62e92c9d10f1a5b75698f30539041a14b20354 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,12 @@ -swh-model (0.10.0-1~swh1~bpo10+1) buster-swh; urgency=medium +swh-model (0.11.0-1~swh1) unstable-swh; urgency=medium - * Rebuild for buster-swh + * New upstream release 0.11.0 - (tagged by Antoine R. Dumont + (@ardumont) <ardumont@softwareheritage.org> on 2021-01-20 15:31:54 + +0100) + * Upstream changes: - v0.11.0 - model: Allow new status values + not_found and failed to OriginVisitStatus - -- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 14 Jan 2021 13:17:15 +0000 + -- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Wed, 20 Jan 2021 14:34:53 +0000 swh-model (0.10.0-1~swh1) unstable-swh; urgency=medium diff --git a/swh.model.egg-info/PKG-INFO b/swh.model.egg-info/PKG-INFO index 0c672ccc3cfe47bd47e45366ab20078286bf907c..0c7e81ca9b76cc80f86bf3d5e8517d914fe3a8db 100644 --- a/swh.model.egg-info/PKG-INFO +++ b/swh.model.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: swh.model -Version: 0.10.0 +Version: 0.11.0 Summary: Software Heritage data model Home-page: https://forge.softwareheritage.org/diffusion/DMOD/ Author: Software Heritage developers diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py index da04769df07274b2c41fcb4642097a9cbe11e560..99573e2327dabbc148c5275a2b9ab59bd6fcb259 100644 --- a/swh/model/hypothesis_strategies.py +++ b/swh/model/hypothesis_strategies.py @@ -175,7 +175,9 @@ def origin_visit_statuses_d(): visit=integers(1, 1000), origin=urls(), type=optional(sampled_from(["git", "svn", "pypi", "debian"])), - status=sampled_from(["created", "ongoing", "full", "partial"]), + status=sampled_from( + ["created", "ongoing", "full", "partial", "not_found", "failed"] + ), date=aware_datetimes(), snapshot=optional(sha1_git()), metadata=optional(metadata_dicts()), diff --git a/swh/model/model.py b/swh/model/model.py index e373e2065be760b86168ef93e3fa34f65f90daef..10b39f208c37f278b68bca42d746b15f9d89c096 100644 --- a/swh/model/model.py +++ b/swh/model/model.py @@ -320,7 +320,9 @@ class OriginVisitStatus(BaseModel): date = attr.ib(type=datetime.datetime, validator=type_validator()) status = attr.ib( type=str, - validator=attr.validators.in_(["created", "ongoing", "full", "partial"]), + validator=attr.validators.in_( + ["created", "ongoing", "full", "partial", "not_found", "failed"] + ), ) snapshot = attr.ib(type=Optional[Sha1Git], validator=type_validator()) # Type is optional be to able to use it before adding it to the database model