Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-dataset
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
Antoine Lambert
swh-dataset
Commits
9a194f42
Commit
9a194f42
authored
2 years ago
by
vlorentz
Browse files
Options
Downloads
Patches
Plain Diff
luigi: Add swh-dataset version to export/meta.json
May be useful later, for traceability.
parent
0bf9c88d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/dataset/luigi.py
+12
-2
12 additions, 2 deletions
swh/dataset/luigi.py
with
12 additions
and
2 deletions
swh/dataset/luigi.py
+
12
−
2
View file @
9a194f42
...
...
@@ -62,8 +62,12 @@ For example:
"
origin
"
,
"
origin_visit
"
],
"
privileged
"
: false,
"
hostname
"
:
"
desktop5
"
,
"
privileged
"
: false
"
tool
"
: {
"
name
"
:
"
swh.dataset
"
,
"
version
"
:
"
0.3.2
"
,
}
}
Running all on staging
...
...
@@ -284,6 +288,8 @@ class ExportGraph(luigi.Task):
import
json
import
socket
import
pkg_resources
from
swh.core
import
config
# we are about to overwrite files, so remove any existing stamp
...
...
@@ -321,8 +327,12 @@ class ExportGraph(luigi.Task):
"
prefix
"
:
conf
[
"
journal
"
][
"
prefix
"
],
"
formats
"
:
[
format_
.
name
for
format_
in
self
.
formats
],
"
object_type
"
:
[
object_type
.
name
for
object_type
in
self
.
object_types
],
"
hostname
"
:
socket
.
getfqdn
(),
"
privileged
"
:
conf
[
"
journal
"
].
get
(
"
privileged
"
),
"
hostname
"
:
socket
.
getfqdn
(),
"
tool
"
:
{
"
name
"
:
"
swh.dataset
"
,
"
version
"
:
pkg_resources
.
get_distribution
(
"
swh.dataset
"
).
version
,
},
}
with
self
.
_meta
().
open
(
"
w
"
)
as
fd
:
json
.
dump
(
meta
,
fd
,
indent
=
4
)
...
...
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