Skip to content

Commit 4716a4e

Browse files
committed
Upgrade distro to 1.9.0
1 parent ca4f45f commit 4716a4e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

news/distro.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade distro to 1.9.0

src/pip/_vendor/distro/distro.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# Copyright 2015,2016,2017 Nir Cohen
2+
# Copyright 2015-2021 Nir Cohen
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -55,7 +55,7 @@
5555
# Python 3.7
5656
TypedDict = dict
5757

58-
__version__ = "1.8.0"
58+
__version__ = "1.9.0"
5959

6060

6161
class VersionDict(TypedDict):
@@ -125,6 +125,7 @@ class InfoDict(TypedDict):
125125
# Base file names to be looked up for if _UNIXCONFDIR is not readable.
126126
_DISTRO_RELEASE_BASENAMES = [
127127
"SuSE-release",
128+
"altlinux-release",
128129
"arch-release",
129130
"base-release",
130131
"centos-release",
@@ -151,6 +152,8 @@ class InfoDict(TypedDict):
151152
"system-release",
152153
"plesk-release",
153154
"iredmail-release",
155+
"board-release",
156+
"ec2_version",
154157
)
155158

156159

@@ -243,6 +246,7 @@ def id() -> str:
243246
"rocky" Rocky Linux
244247
"aix" AIX
245248
"guix" Guix System
249+
"altlinux" ALT Linux
246250
============== =========================================
247251
248252
If you have a need to get distros for reliable IDs added into this set,
@@ -991,10 +995,10 @@ def info(self, pretty: bool = False, best: bool = False) -> InfoDict:
991995
992996
For details, see :func:`distro.info`.
993997
"""
994-
return dict(
998+
return InfoDict(
995999
id=self.id(),
9961000
version=self.version(pretty, best),
997-
version_parts=dict(
1001+
version_parts=VersionDict(
9981002
major=self.major_version(best),
9991003
minor=self.minor_version(best),
10001004
build_number=self.build_number(best),

src/pip/_vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CacheControl==0.13.1 # Make sure to update the license in pyproject.toml for this.
22
colorama==0.4.6
33
distlib==0.3.8
4-
distro==1.8.0
4+
distro==1.9.0
55
msgpack==1.0.5
66
packaging==21.3
77
platformdirs==3.8.1

0 commit comments

Comments
 (0)