Skip to content

Commit

Permalink
Use platformdirs instead of appdirs (#2142)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Jul 13, 2021
1 parent ce6efc8 commit f66d0a8
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Features - 20.2.0
~~~~~~~~~~~~~~~~~
- 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>`_)
- Add ``--read-only-app-data`` option to allow for creation based on an existing
app data cache which is non-writable. This may be useful (for example) to
app data cache which is non-writable. This may be useful (for example) to
produce a docker image where the app-data is pre-populated.

.. code-block:: dockerfile
Expand Down
1 change: 1 addition & 0 deletions docs/changelog/2093.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Plugins now use 'selectable' entry points - by :user:`jaraco`.
1 change: 0 additions & 1 deletion docs/changelog/2093.misc.rst

This file was deleted.

1 change: 1 addition & 0 deletions docs/changelog/2142.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use the better maintained ``platformdirs`` instead of ``appdirs`` - by :user:`gaborbernat`.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ project_urls =
[options]
packages = find:
install_requires =
appdirs>=1.4.3,<2
backports.entry_points_selectable>=1.0.4
distlib>=0.3.1,<1
filelock>=3.0.0,<4
platformdirs>=2,<3
six>=1.9.0,<2 # keep it >=1.9.0 as it may cause problems on LTS platforms
importlib-metadata>=0.12;python_version<"3.8"
importlib-resources>=1.0;python_version<"3.7"
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/app_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
import os

from appdirs import user_data_dir
from platformdirs import user_data_dir

from .na import AppDataDisabled
from .read_only import ReadOnlyAppData
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/config/ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
import os

from appdirs import user_config_dir
from platformdirs import user_config_dir

from virtualenv.info import PY3
from virtualenv.util import ConfigParser
Expand Down

0 comments on commit f66d0a8

Please sign in to comment.