Skip to content

Commit

Permalink
Upgrade distro to 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Feb 17, 2024
1 parent 2176e6d commit 8e61819
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions news/distro.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade distro to 1.9.0
12 changes: 8 additions & 4 deletions src/pip/_vendor/distro/distro.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# Copyright 2015,2016,2017 Nir Cohen
# Copyright 2015-2021 Nir Cohen
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -55,7 +55,7 @@
# Python 3.7
TypedDict = dict

__version__ = "1.8.0"
__version__ = "1.9.0"


class VersionDict(TypedDict):
Expand Down Expand Up @@ -125,6 +125,7 @@ class InfoDict(TypedDict):
# Base file names to be looked up for if _UNIXCONFDIR is not readable.
_DISTRO_RELEASE_BASENAMES = [
"SuSE-release",
"altlinux-release",
"arch-release",
"base-release",
"centos-release",
Expand All @@ -151,6 +152,8 @@ class InfoDict(TypedDict):
"system-release",
"plesk-release",
"iredmail-release",
"board-release",
"ec2_version",
)


Expand Down Expand Up @@ -243,6 +246,7 @@ def id() -> str:
"rocky" Rocky Linux
"aix" AIX
"guix" Guix System
"altlinux" ALT Linux
============== =========================================
If you have a need to get distros for reliable IDs added into this set,
Expand Down Expand Up @@ -991,10 +995,10 @@ def info(self, pretty: bool = False, best: bool = False) -> InfoDict:
For details, see :func:`distro.info`.
"""
return dict(
return InfoDict(
id=self.id(),
version=self.version(pretty, best),
version_parts=dict(
version_parts=VersionDict(
major=self.major_version(best),
minor=self.minor_version(best),
build_number=self.build_number(best),
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_vendor/vendor.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CacheControl==0.13.1 # Make sure to update the license in pyproject.toml for this.
colorama==0.4.6
distlib==0.3.8
distro==1.8.0
distro==1.9.0
msgpack==1.0.5
packaging==21.3
platformdirs==3.8.1
Expand Down

0 comments on commit 8e61819

Please sign in to comment.