Skip to content

Commit 7dc0126

Browse files
Merge branch 'master' into security/prevent_rootfs_escape
2 parents e40187b + 6a487e9 commit 7dc0126

File tree

18 files changed

+196
-15
lines changed

18 files changed

+196
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Set up Python
1616
uses: actions/setup-python@v4
@@ -25,20 +25,31 @@ jobs:
2525

2626
test:
2727
name: Python ${{ matrix.python }}
28-
runs-on: ubuntu-latest
28+
runs-on: ${{ matrix.os }}
2929

3030
strategy:
3131
matrix:
32+
os:
33+
- "ubuntu-latest"
3234
python:
33-
- "3.6"
3435
- "3.7"
3536
- "3.8"
3637
- "3.9"
3738
- "3.10"
38-
- "pypy-3.6"
39+
- "3.11"
40+
- "3.12"
41+
include:
42+
- os: "ubuntu-20.04"
43+
python: "3.6"
44+
- os: "ubuntu-20.04"
45+
python: "pypy-3.6"
46+
- os: "ubuntu-22.04"
47+
python: "pypy-3.10"
48+
- os: "macos-12"
49+
python: 3.12
3950

4051
steps:
41-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
4253

4354
- name: Set up Python ${{ matrix.python }}
4455
uses: actions/setup-python@v4
@@ -61,7 +72,7 @@ jobs:
6172
runs-on: windows-latest
6273

6374
steps:
64-
- uses: actions/checkout@v3
75+
- uses: actions/checkout@v4
6576

6677
- uses: codecov/codecov-action@v3
6778

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
environment: Deploy
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
ref: ${{ github.event.inputs.tag }}
1818
- uses: actions/setup-python@v4

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ repos:
55
- id: black
66
args: ["--target-version", "py36"]
77
- repo: https://github.com/PyCQA/flake8
8-
rev: 3.9.2
8+
rev: 6.1.0
99
hooks:
1010
- id: flake8
1111
- repo: https://github.com/pycqa/isort
12-
rev: 5.9.1
12+
rev: 5.12.0
1313
hooks:
1414
- id: isort
1515
- repo: https://github.com/pre-commit/mirrors-mypy

src/distro/distro.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class InfoDict(TypedDict):
126126
# Base file names to be looked up for if _UNIXCONFDIR is not readable.
127127
_DISTRO_RELEASE_BASENAMES = [
128128
"SuSE-release",
129+
"altlinux-release",
129130
"arch-release",
130131
"base-release",
131132
"centos-release",
@@ -152,6 +153,8 @@ class InfoDict(TypedDict):
152153
"system-release",
153154
"plesk-release",
154155
"iredmail-release",
156+
"board-release",
157+
"ec2_version",
155158
)
156159

157160

@@ -244,6 +247,7 @@ def id() -> str:
244247
"rocky" Rocky Linux
245248
"aix" AIX
246249
"guix" Guix System
250+
"altlinux" ALT Linux
247251
============== =========================================
248252
249253
If you have a need to get distros for reliable IDs added into this set,
@@ -994,10 +998,10 @@ def info(self, pretty: bool = False, best: bool = False) -> InfoDict:
994998
995999
For details, see :func:`distro.info`.
9961000
"""
997-
return dict(
1001+
return InfoDict(
9981002
id=self.id(),
9991003
version=self.version(pretty, best),
1000-
version_parts=dict(
1004+
version_parts=VersionDict(
10011005
major=self.major_version(best),
10021006
minor=self.minor_version(best),
10031007
build_number=self.build_number(best),
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALT Server 10.1 (Mendelevium)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
altlinux-release
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
NAME="ALT Server"
2+
VERSION="10.1"
3+
ID=altlinux
4+
VERSION_ID=10.1
5+
PRETTY_NAME="ALT Server 10.1 (Mendelevium)"
6+
ANSI_COLOR="1;33"
7+
CPE_NAME="cpe:/o:alt:server:10.1"
8+
BUILD_ID="ALT Server 10.1"
9+
HOME_URL="https://basealt.ru/"
10+
BUG_REPORT_URL="https://bugs.altlinux.org/"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
altlinux-release
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
altlinux-release
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
NAME="Arch Linux"
2-
ID=arch
32
PRETTY_NAME="Arch Linux"
4-
ANSI_COLOR="0;36"
5-
HOME_URL="https://www.archlinux.org/"
3+
ID=arch
4+
BUILD_ID=rolling
5+
ANSI_COLOR="38;2;23;147;209"
6+
HOME_URL="https://archlinux.org/"
7+
DOCUMENTATION_URL="https://wiki.archlinux.org/"
68
SUPPORT_URL="https://bbs.archlinux.org/"
79
BUG_REPORT_URL="https://bugs.archlinux.org/"
10+
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
11+
LOGO=archlinux-logo

0 commit comments

Comments
 (0)