Skip to content
Snippets Groups Projects
Commit 9a4e285d authored by Jenkins for Software Heritage's avatar Jenkins for Software Heritage
Browse files

Updated version 0.0.44 from 'debian/upstream/0.0.44'

with Debian dir 13f2cc753f39dbbff732279ae6a48ecf4a9516e4
parents 1791f380 cfb04e20
No related branches found
No related tags found
No related merge requests found
Metadata-Version: 2.1
Name: swh.model
Version: 0.0.43
Version: 0.0.44
Summary: Software Heritage data model
Home-page: https://forge.softwareheritage.org/diffusion/DMOD/
Author: Software Heritage developers
......
Metadata-Version: 2.1
Name: swh.model
Version: 0.0.43
Version: 0.0.44
Summary: Software Heritage data model
Home-page: https://forge.softwareheritage.org/diffusion/DMOD/
Author: Software Heritage developers
......
......@@ -94,8 +94,8 @@ class TimestampWithTimezone(BaseModel):
@attr.s
class Origin(BaseModel):
"""Represents a software source: a VCS and an URL."""
type = attr.ib(type=str)
url = attr.ib(type=str)
type = attr.ib(type=Optional[str], default=None)
@attr.s
......@@ -283,19 +283,16 @@ class Revision(BaseModel):
@classmethod
def from_dict(cls, d):
d = d.copy()
return cls(
id=d['id'],
message=d['message'],
author=Person.from_dict(d['author']),
committer=Person.from_dict(d['committer']),
date=TimestampWithTimezone.from_dict(d['date']),
id=d.pop('id'),
author=Person.from_dict(d.pop('author')),
committer=Person.from_dict(d.pop('committer')),
date=TimestampWithTimezone.from_dict(d.pop('date')),
committer_date=TimestampWithTimezone.from_dict(
d['committer_date']),
type=RevisionType(d['type']),
directory=d['directory'],
synthetic=d['synthetic'],
metadata=d['metadata'],
parents=d['parents'])
d.pop('committer_date')),
type=RevisionType(d.pop('type')),
**d)
@attr.s
......
v0.0.43-0-gfd2e6da
\ No newline at end of file
v0.0.44-0-ge77c94d
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment