Skip to content

Commit 39f4f99

Browse files
committed
feat: update platformdirs
1 parent 9cc2f5c commit 39f4f99

File tree

13 files changed

+183
-110
lines changed

13 files changed

+183
-110
lines changed

setuptools/_vendor/platformdirs-4.2.2.dist-info/RECORD

Lines changed: 0 additions & 23 deletions
This file was deleted.
File renamed without changes.

setuptools/_vendor/platformdirs-4.2.2.dist-info/METADATA renamed to setuptools/_vendor/platformdirs-4.4.0.dist-info/METADATA

Lines changed: 62 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
Metadata-Version: 2.3
1+
Metadata-Version: 2.4
22
Name: platformdirs
3-
Version: 4.2.2
3+
Version: 4.4.0
44
Summary: A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`.
5+
Project-URL: Changelog, https://github.com/tox-dev/platformdirs/releases
56
Project-URL: Documentation, https://platformdirs.readthedocs.io
6-
Project-URL: Homepage, https://github.com/platformdirs/platformdirs
7-
Project-URL: Source, https://github.com/platformdirs/platformdirs
8-
Project-URL: Tracker, https://github.com/platformdirs/platformdirs/issues
7+
Project-URL: Homepage, https://github.com/tox-dev/platformdirs
8+
Project-URL: Source, https://github.com/tox-dev/platformdirs
9+
Project-URL: Tracker, https://github.com/tox-dev/platformdirs/issues
910
Maintainer-email: Bernát Gábor <[email protected]>, Julian Berman <[email protected]>, Ofek Lev <[email protected]>, Ronny Pfannschmidt <[email protected]>
1011
License-Expression: MIT
1112
License-File: LICENSE
@@ -16,35 +17,41 @@ Classifier: License :: OSI Approved :: MIT License
1617
Classifier: Operating System :: OS Independent
1718
Classifier: Programming Language :: Python
1819
Classifier: Programming Language :: Python :: 3 :: Only
19-
Classifier: Programming Language :: Python :: 3.8
2020
Classifier: Programming Language :: Python :: 3.9
2121
Classifier: Programming Language :: Python :: 3.10
2222
Classifier: Programming Language :: Python :: 3.11
2323
Classifier: Programming Language :: Python :: 3.12
24+
Classifier: Programming Language :: Python :: 3.13
2425
Classifier: Programming Language :: Python :: Implementation :: CPython
2526
Classifier: Programming Language :: Python :: Implementation :: PyPy
2627
Classifier: Topic :: Software Development :: Libraries :: Python Modules
27-
Requires-Python: >=3.8
28+
Requires-Python: >=3.9
2829
Provides-Extra: docs
29-
Requires-Dist: furo>=2023.9.10; extra == 'docs'
30-
Requires-Dist: proselint>=0.13; extra == 'docs'
31-
Requires-Dist: sphinx-autodoc-typehints>=1.25.2; extra == 'docs'
32-
Requires-Dist: sphinx>=7.2.6; extra == 'docs'
30+
Requires-Dist: furo>=2024.8.6; extra == 'docs'
31+
Requires-Dist: proselint>=0.14; extra == 'docs'
32+
Requires-Dist: sphinx-autodoc-typehints>=3; extra == 'docs'
33+
Requires-Dist: sphinx>=8.1.3; extra == 'docs'
3334
Provides-Extra: test
3435
Requires-Dist: appdirs==1.4.4; extra == 'test'
3536
Requires-Dist: covdefaults>=2.3; extra == 'test'
36-
Requires-Dist: pytest-cov>=4.1; extra == 'test'
37-
Requires-Dist: pytest-mock>=3.12; extra == 'test'
38-
Requires-Dist: pytest>=7.4.3; extra == 'test'
37+
Requires-Dist: pytest-cov>=6; extra == 'test'
38+
Requires-Dist: pytest-mock>=3.14; extra == 'test'
39+
Requires-Dist: pytest>=8.3.4; extra == 'test'
3940
Provides-Extra: type
40-
Requires-Dist: mypy>=1.8; extra == 'type'
41+
Requires-Dist: mypy>=1.14.1; extra == 'type'
4142
Description-Content-Type: text/x-rst
4243

4344
The problem
4445
===========
4546

46-
.. image:: https://github.com/platformdirs/platformdirs/actions/workflows/check.yml/badge.svg
47+
.. image:: https://badge.fury.io/py/platformdirs.svg
48+
:target: https://badge.fury.io/py/platformdirs
49+
.. image:: https://img.shields.io/pypi/pyversions/platformdirs.svg
50+
:target: https://pypi.python.org/pypi/platformdirs/
51+
.. image:: https://github.com/tox-dev/platformdirs/actions/workflows/check.yaml/badge.svg
4752
:target: https://github.com/platformdirs/platformdirs/actions
53+
.. image:: https://static.pepy.tech/badge/platformdirs/month
54+
:target: https://pepy.tech/project/platformdirs
4855

4956
When writing desktop application, finding the right location to store user data
5057
and configuration varies per platform. Even for single-platform apps, there
@@ -107,10 +114,14 @@ On macOS:
107114
>>> appauthor = "Acme"
108115
>>> user_data_dir(appname, appauthor)
109116
'/Users/trentm/Library/Application Support/SuperApp'
110-
>>> site_data_dir(appname, appauthor)
111-
'/Library/Application Support/SuperApp'
117+
>>> user_config_dir(appname, appauthor)
118+
'/Users/trentm/Library/Application Support/SuperApp'
112119
>>> user_cache_dir(appname, appauthor)
113120
'/Users/trentm/Library/Caches/SuperApp'
121+
>>> site_data_dir(appname, appauthor)
122+
'/Library/Application Support/SuperApp'
123+
>>> site_config_dir(appname, appauthor)
124+
'/Library/Application Support/SuperApp'
114125
>>> user_log_dir(appname, appauthor)
115126
'/Users/trentm/Library/Logs/SuperApp'
116127
>>> user_documents_dir()
@@ -139,8 +150,14 @@ On Windows:
139150
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp'
140151
>>> user_data_dir(appname, appauthor, roaming=True)
141152
'C:\\Users\\trentm\\AppData\\Roaming\\Acme\\SuperApp'
153+
>>> user_config_dir(appname, appauthor)
154+
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp'
142155
>>> user_cache_dir(appname, appauthor)
143156
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp\\Cache'
157+
>>> site_data_dir(appname, appauthor)
158+
'C:\\ProgramData\\Acme\\SuperApp'
159+
>>> site_config_dir(appname, appauthor)
160+
'C:\\ProgramData\\Acme\\SuperApp'
144161
>>> user_log_dir(appname, appauthor)
145162
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp\\Logs'
146163
>>> user_documents_dir()
@@ -167,16 +184,21 @@ On Linux:
167184
>>> appauthor = "Acme"
168185
>>> user_data_dir(appname, appauthor)
169186
'/home/trentm/.local/share/SuperApp'
187+
>>> user_config_dir(appname)
188+
'/home/trentm/.config/SuperApp'
189+
>>> user_cache_dir(appname, appauthor)
190+
'/home/trentm/.cache/SuperApp'
170191
>>> site_data_dir(appname, appauthor)
171192
'/usr/local/share/SuperApp'
172193
>>> site_data_dir(appname, appauthor, multipath=True)
173194
'/usr/local/share/SuperApp:/usr/share/SuperApp'
174-
>>> user_cache_dir(appname, appauthor)
175-
'/home/trentm/.cache/SuperApp'
195+
>>> site_config_dir(appname)
196+
'/etc/xdg/SuperApp'
197+
>>> os.environ["XDG_CONFIG_DIRS"] = "/etc:/usr/local/etc"
198+
>>> site_config_dir(appname, multipath=True)
199+
'/etc/SuperApp:/usr/local/etc/SuperApp'
176200
>>> user_log_dir(appname, appauthor)
177201
'/home/trentm/.local/state/SuperApp/log'
178-
>>> user_config_dir(appname)
179-
'/home/trentm/.config/SuperApp'
180202
>>> user_documents_dir()
181203
'/home/trentm/Documents'
182204
>>> user_downloads_dir()
@@ -191,11 +213,6 @@ On Linux:
191213
'/home/trentm/Desktop'
192214
>>> user_runtime_dir(appname, appauthor)
193215
'/run/user/{os.getuid()}/SuperApp'
194-
>>> site_config_dir(appname)
195-
'/etc/xdg/SuperApp'
196-
>>> os.environ["XDG_CONFIG_DIRS"] = "/etc:/usr/local/etc"
197-
>>> site_config_dir(appname, multipath=True)
198-
'/etc/SuperApp:/usr/local/etc/SuperApp'
199216

200217
On Android::
201218

@@ -204,12 +221,16 @@ On Android::
204221
>>> appauthor = "Acme"
205222
>>> user_data_dir(appname, appauthor)
206223
'/data/data/com.myApp/files/SuperApp'
224+
>>> user_config_dir(appname)
225+
'/data/data/com.myApp/shared_prefs/SuperApp'
207226
>>> user_cache_dir(appname, appauthor)
208227
'/data/data/com.myApp/cache/SuperApp'
228+
>>> site_data_dir(appname, appauthor)
229+
'/data/data/com.myApp/files/SuperApp'
230+
>>> site_config_dir(appname)
231+
'/data/data/com.myApp/shared_prefs/SuperApp'
209232
>>> user_log_dir(appname, appauthor)
210233
'/data/data/com.myApp/cache/SuperApp/log'
211-
>>> user_config_dir(appname)
212-
'/data/data/com.myApp/shared_prefs/SuperApp'
213234
>>> user_documents_dir()
214235
'/storage/emulated/0/Documents'
215236
>>> user_downloads_dir()
@@ -241,8 +262,14 @@ apps also support ``XDG_*`` environment variables.
241262
>>> dirs = PlatformDirs("SuperApp", "Acme")
242263
>>> dirs.user_data_dir
243264
'/Users/trentm/Library/Application Support/SuperApp'
265+
>>> dirs.user_config_dir
266+
'/Users/trentm/Library/Application Support/SuperApp'
267+
>>> dirs.user_cache_dir
268+
'/Users/trentm/Library/Caches/SuperApp'
244269
>>> dirs.site_data_dir
245270
'/Library/Application Support/SuperApp'
271+
>>> dirs.site_config_dir
272+
'/Library/Application Support/SuperApp'
246273
>>> dirs.user_cache_dir
247274
'/Users/trentm/Library/Caches/SuperApp'
248275
>>> dirs.user_log_dir
@@ -273,10 +300,14 @@ dirs::
273300
>>> dirs = PlatformDirs("SuperApp", "Acme", version="1.0")
274301
>>> dirs.user_data_dir
275302
'/Users/trentm/Library/Application Support/SuperApp/1.0'
276-
>>> dirs.site_data_dir
277-
'/Library/Application Support/SuperApp/1.0'
303+
>>> dirs.user_config_dir
304+
'/Users/trentm/Library/Application Support/SuperApp/1.0'
278305
>>> dirs.user_cache_dir
279306
'/Users/trentm/Library/Caches/SuperApp/1.0'
307+
>>> dirs.site_data_dir
308+
'/Library/Application Support/SuperApp/1.0'
309+
>>> dirs.site_config_dir
310+
'/Library/Application Support/SuperApp/1.0'
280311
>>> dirs.user_log_dir
281312
'/Users/trentm/Library/Logs/SuperApp/1.0'
282313
>>> dirs.user_documents_dir
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
platformdirs-4.4.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2+
platformdirs-4.4.0.dist-info/METADATA,sha256=u8UhbV9Md7-8VyJyZNUuZrzN5xzPeedeGmBG0CnTAiM,12831
3+
platformdirs-4.4.0.dist-info/RECORD,,
4+
platformdirs-4.4.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5+
platformdirs-4.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
6+
platformdirs-4.4.0.dist-info/licenses/LICENSE,sha256=KeD9YukphQ6G6yjD_czwzv30-pSHkBHP-z0NS-1tTbY,1089
7+
platformdirs/__init__.py,sha256=iORRy6_lZ9tXLvO0W6fJPn8QV7F532ivl-f2WGmabBc,22284
8+
platformdirs/__main__.py,sha256=HnsUQHpiBaiTxwcmwVw-nFaPdVNZtQIdi1eWDtI-MzI,1493
9+
platformdirs/__pycache__/__init__.cpython-313.pyc,,
10+
platformdirs/__pycache__/__main__.cpython-313.pyc,,
11+
platformdirs/__pycache__/android.cpython-313.pyc,,
12+
platformdirs/__pycache__/api.cpython-313.pyc,,
13+
platformdirs/__pycache__/macos.cpython-313.pyc,,
14+
platformdirs/__pycache__/unix.cpython-313.pyc,,
15+
platformdirs/__pycache__/version.cpython-313.pyc,,
16+
platformdirs/__pycache__/windows.cpython-313.pyc,,
17+
platformdirs/android.py,sha256=r0DshVBf-RO1jXJGX8C4Til7F1XWt-bkdWMgmvEiaYg,9013
18+
platformdirs/api.py,sha256=wPHOlwOsfz2oqQZ6A2FcCu5kEAj-JondzoNOHYFQ0h8,9281
19+
platformdirs/macos.py,sha256=0XoOgin1NK7Qki7iskD-oS8xKxw6bXgoKEgdqpCRAFQ,6322
20+
platformdirs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21+
platformdirs/unix.py,sha256=WZmkUA--L3JNRGmz32s35YfoD3ica6xKIPdCV_HhLcs,10458
22+
platformdirs/version.py,sha256=i31fi3nNO19D2FdSx8aldD7IFLSqm2YrAo6SmkV0FLM,704
23+
platformdirs/windows.py,sha256=IFpiohUBwxPtCzlyKwNtxyW4Jk8haa6W8o59mfrDXVo,10125
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Wheel-Version: 1.0
2-
Generator: hatchling 1.24.2
2+
Generator: hatchling 1.27.0
33
Root-Is-Purelib: true
44
Tag: py3-none-any
File renamed without changes.

0 commit comments

Comments
 (0)