Skip to content

Commit bbe83b0

Browse files
committed
Upgrade platformdirs to 2.5.3
1 parent 6bc9ae8 commit bbe83b0

File tree

6 files changed

+28
-26
lines changed

6 files changed

+28
-26
lines changed

news/platformdirs.vendor.rst

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

src/pip/_vendor/platformdirs/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2010-202x The platformdirs developers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/pip/_vendor/platformdirs/LICENSE.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Version information"""
22

3-
__version__ = "2.5.2"
4-
__version_info__ = (2, 5, 2)
3+
__version__ = "2.5.3"
4+
__version_info__ = (2, 5, 3)

src/pip/_vendor/platformdirs/windows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import ctypes
44
import os
5+
import sys
56
from functools import lru_cache
67
from typing import Callable
78

@@ -132,7 +133,8 @@ def get_win_folder_from_registry(csidl_name: str) -> str:
132133
}.get(csidl_name)
133134
if shell_folder_name is None:
134135
raise ValueError(f"Unknown CSIDL name: {csidl_name}")
135-
136+
if sys.platform != "win32": # only needed for mypy type checker to know that this code runs only on Windows
137+
raise NotImplementedError
136138
import winreg
137139

138140
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")

src/pip/_vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ distro==1.8.0
55
msgpack==1.0.4
66
packaging==21.3
77
pep517==0.13.0
8-
platformdirs==2.5.2
8+
platformdirs==2.5.3
99
pyparsing==3.0.9
1010
requests==2.28.1
1111
certifi==2022.09.24

0 commit comments

Comments
 (0)