File: constants.py

package info (click to toggle)
ppa-dev-tools 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,096 kB
  • sloc: python: 5,069; makefile: 3
file content (40 lines) | stat: -rw-r--r-- 1,508 bytes parent folder | download
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
#!/usr/bin/env python3
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-

# Copyright (C) 2022 Authors
#
# Released under GNU GPLv2 or later, read the file 'LICENSE.GPLv2+' for
# more information.
#
# Authors:
#   Bryce Harrington <bryce@canonical.com>

"""Global constants."""

ARCHES_ALL = ["amd64", "arm64", "armhf", "armel", "i386", "powerpc", "ppc64el", "s390x", "riscv64"]
ARCHES_PPA_DEFAULT = ["amd64", "i386"]
ARCHES_PPA_ALL = ["amd64", "arm64", "armhf", "i386", "powerpc", "ppc64el", "s390x"]
ARCHES_PPA_EXTRA = ["riscv64"]
ARCHES_AUTOPKGTEST = ["amd64", "arm64", "armhf", "i386", "ppc64el", "s390x"]

CREDENTIALS_FILENAME_DEFAULT = "credentials.oauth"

URL_LPAPI = "https://api.launchpad.net/devel"
URL_AUTOPKGTEST = "https://autopkgtest.ubuntu.com"

DISTRO_UBUNTU_COMPONENTS = ['main', 'restricted', 'universe', 'multiverse', 'partner']

DISTRO_UBUNTU_POCKETS = ['release', 'security', 'proposed', 'updates', 'backports']
DISTRO_UBUNTU_POCKETS_UPDATES = ['release', 'security', 'updates']

LOCAL_REPOSITORY_PATH = "/tmp/ubuntu"
LOCAL_REPOSITORY_MIRRORING_DIRECTIONS = f"""
Tip: You can generate (and refresh) a dists-only mirror thusly:
  $ mkdir {LOCAL_REPOSITORY_PATH}
  $ rsync -va \\
      --exclude={{'*/installer*','*/i18n/*','*/uefi/*','*/Contents*','*/by-hash/*','*tar.gz'}} \\
      rsync://archive.ubuntu.com/ubuntu/dists {LOCAL_REPOSITORY_PATH}

It's recommended to run the rsync command as a cronjob to keep your
repository up to date as often as desired.
"""