-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
61 lines (55 loc) · 1.59 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from collections import OrderedDict
import repos_core, repos_l10n, repos_extras
DEFAULT_RELEASES = {
'leste': [
'ascii',
'ascii-devel',
'beowulf',
'beowulf-devel',
'beowulf-experimental',
'stretch',
'buster',
'chimaera',
'chimaera-testing',
'chimaera-devel',
'chimaera-experimental',
'daedalus',
'daedalus-testing',
'daedalus-devel',
'daedalus-experimental',
],
'extras': [
'ascii',
'beowulf',
'beowulf-devel',
'chimaera',
'chimaera-testing',
'daedalus',
'daedalus-testing',
],
}
DEFAULT_HOST = 'https://github.com/maemo-leste/%s'
DEFAULT_ARCHES = ['amd64', 'armhf', 'arm64']
"""
# self documenting code comments
_jobs = {
'job-name': {'repo-name': 'repo-name-if-not-equal-to-job-name',
'host': 'host here if not equal to DEFAULT_HOST',
'releases': {'maemo-leste-repo': 'devuan-distribution'}
"""
_jobs = OrderedDict()
_jobs.update(repos_core._jobs)
_jobs.update(repos_l10n._jobs)
_jobs.update(repos_extras._jobs)
def get_jobs():
jobs = OrderedDict()
for job, args in _jobs.items():
repo_name = args.get('repo-name', job)
host = args.get('host', DEFAULT_HOST) % repo_name
releases = args.get('releases', DEFAULT_RELEASES)
arches = args.get('arches', DEFAULT_ARCHES)
jobs[job] = dict(repo_name=repo_name,
host=host,
releases=releases,
arches=arches)
return jobs