Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-model
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Renaud Boyer
swh-model
Commits
cfb04e20
Commit
cfb04e20
authored
5 years ago
by
Jenkins for Software Heritage
Browse files
Options
Downloads
Plain Diff
New upstream version 0.0.44
parents
3e246b4d
e77c94d5
No related branches found
Branches containing commit
Tags
debian/upstream/0.0.44
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
PKG-INFO
+1
-1
1 addition, 1 deletion
PKG-INFO
swh.model.egg-info/PKG-INFO
+1
-1
1 addition, 1 deletion
swh.model.egg-info/PKG-INFO
swh/model/model.py
+9
-12
9 additions, 12 deletions
swh/model/model.py
version.txt
+1
-1
1 addition, 1 deletion
version.txt
with
12 additions
and
15 deletions
PKG-INFO
+
1
−
1
View file @
cfb04e20
Metadata-Version: 2.1
Name: swh.model
Version: 0.0.4
3
Version: 0.0.4
4
Summary: Software Heritage data model
Home-page: https://forge.softwareheritage.org/diffusion/DMOD/
Author: Software Heritage developers
...
...
This diff is collapsed.
Click to expand it.
swh.model.egg-info/PKG-INFO
+
1
−
1
View file @
cfb04e20
Metadata-Version: 2.1
Name: swh.model
Version: 0.0.4
3
Version: 0.0.4
4
Summary: Software Heritage data model
Home-page: https://forge.softwareheritage.org/diffusion/DMOD/
Author: Software Heritage developers
...
...
This diff is collapsed.
Click to expand it.
swh/model/model.py
+
9
−
12
View file @
cfb04e20
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
version.txt
+
1
−
1
View file @
cfb04e20
v0.0.43-0-gfd2e6da
\ No newline at end of file
v0.0.44-0-ge77c94d
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment