Skip to content

Commit f66d0a8

Browse files
authored
Use platformdirs instead of appdirs (#2142)
1 parent ce6efc8 commit f66d0a8

File tree

7 files changed

+6
-5
lines changed

7 files changed

+6
-5
lines changed

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Features - 20.2.0
128128
~~~~~~~~~~~~~~~~~
129129
- Optionally skip VCS ignore directive for entire virtualenv directory, using option :option:`no-vcs-ignore`, by default ``False``. (`#2003 <https://github.com/pypa/virtualenv/issues/2003>`_)
130130
- Add ``--read-only-app-data`` option to allow for creation based on an existing
131-
app data cache which is non-writable. This may be useful (for example) to
131+
app data cache which is non-writable. This may be useful (for example) to
132132
produce a docker image where the app-data is pre-populated.
133133

134134
.. code-block:: dockerfile

docs/changelog/2093.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Plugins now use 'selectable' entry points - by :user:`jaraco`.

docs/changelog/2093.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/changelog/2142.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use the better maintained ``platformdirs`` instead of ``appdirs`` - by :user:`gaborbernat`.

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ project_urls =
3939
[options]
4040
packages = find:
4141
install_requires =
42-
appdirs>=1.4.3,<2
4342
backports.entry_points_selectable>=1.0.4
4443
distlib>=0.3.1,<1
4544
filelock>=3.0.0,<4
45+
platformdirs>=2,<3
4646
six>=1.9.0,<2 # keep it >=1.9.0 as it may cause problems on LTS platforms
4747
importlib-metadata>=0.12;python_version<"3.8"
4848
importlib-resources>=1.0;python_version<"3.7"

src/virtualenv/app_data/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import logging
77
import os
88

9-
from appdirs import user_data_dir
9+
from platformdirs import user_data_dir
1010

1111
from .na import AppDataDisabled
1212
from .read_only import ReadOnlyAppData

src/virtualenv/config/ini.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44
import os
55

6-
from appdirs import user_config_dir
6+
from platformdirs import user_config_dir
77

88
from virtualenv.info import PY3
99
from virtualenv.util import ConfigParser

0 commit comments

Comments
 (0)