Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Debian Blends Team
website
Commits
0b70094b
Commit
0b70094b
authored
6 years ago
by
Andreas Tille
Browse files
Options
Downloads
Patches
Plain Diff
vcs file needs an additional Blends field to work with UDD gatherer
parent
d4047509
No related branches found
Branches containing commit
Tags
debian/4.3.2-1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc/machine_readable/fetch-machine-readable_salsa.py
+26
-24
26 additions, 24 deletions
misc/machine_readable/fetch-machine-readable_salsa.py
with
26 additions
and
24 deletions
misc/machine_readable/fetch-machine-readable_salsa.py
+
26
−
24
View file @
0b70094b
...
...
@@ -7,28 +7,28 @@ import shutil
import
base64
import
subprocess
BLENDSGROUPS
=
[
'
Debian 3D Printing Team
'
,
'
Debian Accessibility Team
'
,
'
Debian Astro Team
'
,
'
Debian Edu Packaging Team
'
,
'
Debian Electronics
'
,
'
Debian Games
'
,
'
Debian GIS Project
'
,
'
Debian Hamradio Maintainers
'
,
'
Debian IoT
'
,
'
Debian Java Maintainers
'
,
'
Debian JavaScript Maintainers
'
,
'
Debian Med
'
,
'
Debian Multimedia Team
'
,
'
Debian Octave Group
'
,
'
Debian Perl Group
'
,
'
Debian PhotoTools Team
'
,
'
Debian R Packages Maintainers
'
,
'
Debian Science Team
'
,
'
Debian Tryton Maintainers
'
,
'
Debian VoIP Packaging Team
'
,
'
Debichem
'
]
BLENDSGROUPS
=
{
'
Debian 3D Printing Team
'
:
'
3dprinter
'
,
'
Debian Accessibility Team
'
:
'
pkg-a11y
'
,
'
Debian Astro Team
'
:
'
debian-astro
'
,
'
Debian Edu Packaging Team
'
:
'
debian-edu
'
,
'
Debian Electronics
'
:
'
pkg-electronics
'
,
'
Debian Games
'
:
'
pkg-games
'
,
'
Debian GIS Project
'
:
'
pkg-grass
'
,
'
Debian Hamradio Maintainers
'
:
'
pkg-hamradio
'
,
'
Debian IoT
'
:
'
pkg-iot
'
,
'
Debian Java Maintainers
'
:
'
pkg-java
'
,
'
Debian JavaScript Maintainers
'
:
'
pkg-js
'
,
'
Debian Med
'
:
'
debian-med
'
,
'
Debian Multimedia Team
'
:
'
pkg-multimedia
'
,
'
Debian Octave Group
'
:
'
pkg-octave
'
,
'
Debian Perl Group
'
:
'
pkg-perl
'
,
'
Debian PhotoTools Team
'
:
'
pkg-phototools
'
,
'
Debian R Packages Maintainers
'
:
'
pkg-r
'
,
'
Debian Science Team
'
:
'
debian-science
'
,
'
Debian Tryton Maintainers
'
:
'
tryton
'
,
'
Debian VoIP Packaging Team
'
:
'
pkg-voip
'
,
'
Debichem
'
:
'
debichem
'
}
# missing on Salsa yet:
# pkg-exppsy
...
...
@@ -36,7 +36,7 @@ BLENDSGROUPS=[ 'Debian 3D Printing Team'
# FIXME: Debian Perl Group is listed with only 2 projects which is definitely wrong
# just start with one team
# BLENDSGROUPS=
[
'Debian Med'
]
# BLENDSGROUPS=
{
'Debian Med'
: 'debian-med'}
debianmetadata
=
[
'
changelog
'
,
'
control
'
,
...
...
@@ -89,8 +89,9 @@ gl = gitlab.Gitlab("https://salsa.debian.org") # , private_token=SALSA_TOKEN) #
blends_groups
=
get_blends_groups
()
for
group
in
blends_groups
:
gpath
=
group
.
attributes
[
'
path
'
]
blend
=
BLENDSGROUPS
[
group
.
attributes
[
'
name
'
]]
projects
=
group
.
projects
.
list
(
all
=
True
,
order_by
=
'
name
'
,
sort
=
'
asc
'
)
print
(
group
.
attributes
[
'
name
'
],
len
(
projects
))
# group.attributes['id'], group.attributes['path']) # , group.attributes['description'], group.attributes['full_name'])
print
(
"
%s has %i projects (Blend name %s)
"
%
(
group
.
attributes
[
'
name
'
],
len
(
projects
)
,
blend
)
)
# group.attributes['id'], group.attributes['path']) # , group.attributes['description'], group.attributes['full_name'])
# DEBUG : only few projects to be faster
# projects = group.projects.list(page=1, per_page=10, order_by='name', sort='asc')
for
pr
in
projects
:
...
...
@@ -102,6 +103,7 @@ for group in blends_groups:
with
open
(
os
.
path
.
join
(
namedir
,
name
+
'
.vcs
'
),
'
w
'
)
as
out
:
out
.
write
(
"
Vcs-Browser: git@salsa.debian.org:%s/%s
\n
"
%
(
gpath
,
name
))
out
.
write
(
"
Vcs-Git: git@salsa.debian.org:%s/%s.git
\n
"
%
(
gpath
,
name
))
out
.
write
(
"
Blend: %s
\n
"
%
blend
)
out
.
close
()
# print(project)
if
output_metadata
(
'
debian
'
,
debianmetadata
):
...
...
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