[Blends-commit] [Git][blends-team/website][master] 2 commits: Remove attempt to implement fetch-machine-readable in POSIX shell since there is…

2018-03-13 Thread Andreas Tille
Andreas Tille pushed to branch master at Debian Blends Team / website


Commits:
c6724437 by Andreas Tille at 2018-03-13T14:58:21+01:00
Remove attempt to implement fetch-machine-readable in POSIX shell since there 
is a flawless solution in Python now

- - - - -
d4047509 by Andreas Tille at 2018-03-13T17:20:57+01:00
Add more teams, list number or project for team to provide some sanity check 
(which fails for Debian Perl Group), list missing teams on Salsa

- - - - -


2 changed files:

- − misc/machine_readable/fetch-machine-readable_salsa
- misc/machine_readable/fetch-machine-readable_salsa.py


View it on GitLab: 
https://salsa.debian.org/blends-team/website/compare/b3c2cae187474fff5a61d9e25548b3c8e1124bb9...d4047509162863f2138b4420e0078abf4a6f3da5

---
View it on GitLab: 
https://salsa.debian.org/blends-team/website/compare/b3c2cae187474fff5a61d9e25548b3c8e1124bb9...d4047509162863f2138b4420e0078abf4a6f3da5
You're receiving this email because of your account on salsa.debian.org.
___
Blends-commit mailing list
Blends-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

[Blends-commit] [Git][blends-team/website][master] 3 commits: Fetch data from all teams

2018-03-13 Thread Andreas Tille
Andreas Tille pushed to branch master at Debian Blends Team / website


Commits:
59a6eb1c by Andreas Tille at 2018-03-13T12:15:58+01:00
Fetch data from all teams

- - - - -
c7877217 by Andreas Tille at 2018-03-13T14:10:11+01:00
Tarball should have machine-readable as root dir

- - - - -
b3c2cae1 by Andreas Tille at 2018-03-13T14:10:42+01:00
Add some language teams that are maintaining Blends specific packages and were 
part of the machine-readable checkout before

- - - - -


1 changed file:

- misc/machine_readable/fetch-machine-readable_salsa.py


View it on GitLab: 
https://salsa.debian.org/blends-team/website/compare/6b504dfca949f123700bbd78e65885f45afe6052...b3c2cae187474fff5a61d9e25548b3c8e1124bb9

---
View it on GitLab: 
https://salsa.debian.org/blends-team/website/compare/6b504dfca949f123700bbd78e65885f45afe6052...b3c2cae187474fff5a61d9e25548b3c8e1124bb9
You're receiving this email because of your account on salsa.debian.org.
___
Blends-commit mailing list
Blends-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

[Blends-commit] [Git][debian-astro-team/debian-astro][master] 2 commits: Add astroplan to ascl

2018-03-13 Thread Ole Streicher
Ole Streicher pushed to branch master at Debian Astro Team / debian-astro


Commits:
94df5919 by Ole Streicher at 2018-03-13T13:35:22+01:00
Add astroplan to ascl

- - - - -
21edcb8d by Ole Streicher at 2018-03-13T13:35:36+01:00
Fix name of aravis tools

- - - - -


2 changed files:

- tasks/ascl
- tasks/telescopecontrol


Changes:

=
tasks/ascl
=
--- a/tasks/ascl
+++ b/tasks/ascl
@@ -373,3 +373,6 @@ Remark: ASCL-Id 9912.003
 
 Recommends: gnuastro
 Remark: ASCL-Id 1801.009
+
+Recommends: python3-astroplan
+Remark: ASCL-Id 1802.009


=
tasks/telescopecontrol
=
--- a/tasks/telescopecontrol
+++ b/tasks/telescopecontrol
@@ -27,7 +27,7 @@ Pkg-Description: Free and open source astronomy software
  telescope mounts and cameras or DSLRs.
 Homepage: http://audela.org
 
-Recommends: aravis
+Recommends: aravis-tools
 WNPP: 843185
 Homepage: https://github.com/AravisProject/aravis
 Pkg-Description: a vision library for genicam based cameras



View it on GitLab: 
https://salsa.debian.org/debian-astro-team/debian-astro/compare/a7c16de8df262dd4596c976bd9338e138184c1af...21edcb8df824ff0e4f1d1a88bc93958df4915bf7

---
View it on GitLab: 
https://salsa.debian.org/debian-astro-team/debian-astro/compare/a7c16de8df262dd4596c976bd9338e138184c1af...21edcb8df824ff0e4f1d1a88bc93958df4915bf7
You're receiving this email because of your account on salsa.debian.org.
___
Blends-commit mailing list
Blends-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

[Blends-commit] [Git][blends-team/website][master] 2 commits: basic error handling if there is no debian/ dir

2018-03-13 Thread Andreas Tille
Andreas Tille pushed to branch master at Debian Blends Team / website


Commits:
da324913 by Andreas Tille at 2018-03-13T08:56:21+01:00
basic error handling if there is no debian/ dir

- - - - -
6b504dfc by Andreas Tille at 2018-03-13T09:22:31+01:00
More sensible handling of errors in empty repositories

- - - - -


1 changed file:

- misc/machine_readable/fetch-machine-readable_salsa.py


View it on GitLab: 
https://salsa.debian.org/blends-team/website/compare/a644bca3593707b5902edb0c99299f7e68dc20e4...6b504dfca949f123700bbd78e65885f45afe6052

---
View it on GitLab: 
https://salsa.debian.org/blends-team/website/compare/a644bca3593707b5902edb0c99299f7e68dc20e4...6b504dfca949f123700bbd78e65885f45afe6052
You're receiving this email because of your account on salsa.debian.org.
___
Blends-commit mailing list
Blends-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

[Blends-commit] [Git][blends-team/website][master] Download metadata files

2018-03-13 Thread Andreas Tille
Andreas Tille pushed to branch master at Debian Blends Team / website


Commits:
a644bca3 by Andreas Tille at 2018-03-12T20:15:41+01:00
Download metadata files

- - - - -


1 changed file:

- misc/machine_readable/fetch-machine-readable_salsa.py


Changes:

=
misc/machine_readable/fetch-machine-readable_salsa.py
=
--- a/misc/machine_readable/fetch-machine-readable_salsa.py
+++ b/misc/machine_readable/fetch-machine-readable_salsa.py
@@ -3,6 +3,7 @@
 import gitlab
 import os
 import shutil
+import base64
 
 BLENDSGROUPS=[ 'Debian 3D Printing Team'
  , 'Debian Accessibility Team'
@@ -21,9 +22,19 @@ BLENDSGROUPS=[ 'Debian 3D Printing Team'
  , 'Debichem'
  ]
 
+
 # just start with one team
 BLENDSGROUPS=[ 'Debian Med' ]
 
+debianmetadata = [ 'changelog',
+   'control',
+   'copyright',
+   'README.Debian'
+ ]
+upstreammetadata = [ 'edam',
+ 'metadata'
+   ]
+
 TDNAME='machine-readable'
 
MACHINEREADABLEARCHIVE='/srv/blends.debian.org/www/_'+TDNAME+'/'+TDNAME+'.tar.xz'
 
READMEDEBIANARCHIVE='/srv/blends.debian.org/www/_'+TDNAME+'/README.Debian.tar.xz'
@@ -41,6 +52,16 @@ def get_blends_groups():
 blends_groups.append(group)
 return blends_groups
 
+def output_metadata(subdir, metadata):
+items = project.repository_tree(path=subdir)
+for item in items:
+if item['name'] in metadata:
+file_info = project.repository_blob(item['id'])
+content = base64.b64decode(file_info['content'])
+with open(os.path.join(namedir,name+'.'+item['name']), 'wb') as 
out:
+out.write(content)
+out.close()
+
 # SALSA_TOKEN=os.environ['SALSA_TOKEN']
 
 gl = gitlab.Gitlab("https://salsa.debian.org";) # , private_token=SALSA_TOKEN) 
# anonymous access is fine
@@ -49,8 +70,12 @@ blends_groups = get_blends_groups()
 for group in blends_groups:
 print(group.attributes['name'], group.attributes['id'], 
group.attributes['path']) # , group.attributes['description'], 
group.attributes['full_name'])
 gpath = group.attributes['path']
-projects = group.projects.list(all=True, order_by='name', sort='asc')
-for project in projects:
+#projects = group.projects.list(all=True, order_by='name', sort='asc')
+#projects = group.projects.all(order_by='name', sort='asc')
+# 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:
+project = gl.projects.get(pr.attributes['id']) # without this extra 
get repository_tree() fails
 name = project.attributes['name']
 namedir = os.path.join(TARGETDIR, name[0])
 if not os.path.exists(namedir):
@@ -59,8 +84,6 @@ for group in blends_groups:
 out.write("Vcs-Browser: g...@salsa.debian.org:%s/%s\n" % (gpath, 
name))
 out.write("Vcs-Git: g...@salsa.debian.org:%s/%s.git\n" % (gpath, 
name))
 out.close()
-
-#for project in git.getall(git.getprojects):
-#print(project['name'], project['path_with_namespace'], project['id'])
-# getrawfile(project['id'], 'master', 'debian/changelog')
-# getfile(project['id'], 'debian/changelog', 'master')
\ No newline at end of file
+# print(project)
+output_metadata('debian', debianmetadata)
+output_metadata('debian/upstream', upstreammetadata)



View it on GitLab: 
https://salsa.debian.org/blends-team/website/commit/a644bca3593707b5902edb0c99299f7e68dc20e4

---
View it on GitLab: 
https://salsa.debian.org/blends-team/website/commit/a644bca3593707b5902edb0c99299f7e68dc20e4
You're receiving this email because of your account on salsa.debian.org.
___
Blends-commit mailing list
Blends-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit