Skip to content

Commit

Permalink
Upgrade platformdirs to 2.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmoore committed Nov 12, 2022
1 parent 6bc9ae8 commit bbe83b0
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 26 deletions.
1 change: 1 addition & 0 deletions news/platformdirs.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade platformdirs to 2.5.3
21 changes: 21 additions & 0 deletions src/pip/_vendor/platformdirs/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2010-202x The platformdirs developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 0 additions & 22 deletions src/pip/_vendor/platformdirs/LICENSE.txt

This file was deleted.

4 changes: 2 additions & 2 deletions src/pip/_vendor/platformdirs/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Version information"""

__version__ = "2.5.2"
__version_info__ = (2, 5, 2)
__version__ = "2.5.3"
__version_info__ = (2, 5, 3)
4 changes: 3 additions & 1 deletion src/pip/_vendor/platformdirs/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import ctypes
import os
import sys
from functools import lru_cache
from typing import Callable

Expand Down Expand Up @@ -132,7 +133,8 @@ def get_win_folder_from_registry(csidl_name: str) -> str:
}.get(csidl_name)
if shell_folder_name is None:
raise ValueError(f"Unknown CSIDL name: {csidl_name}")

if sys.platform != "win32": # only needed for mypy type checker to know that this code runs only on Windows
raise NotImplementedError
import winreg

key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_vendor/vendor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ distro==1.8.0
msgpack==1.0.4
packaging==21.3
pep517==0.13.0
platformdirs==2.5.2
platformdirs==2.5.3
pyparsing==3.0.9
requests==2.28.1
certifi==2022.09.24
Expand Down

0 comments on commit bbe83b0

Please sign in to comment.