Skip to content

Commit

Permalink
Update platformdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Feb 9, 2023
1 parent 7c50d66 commit 2150201
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-json
Expand All @@ -10,17 +10,17 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.1.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
v0.5.0 (in development)
-----------------------
- Update `platformdirs` dependency to v3. This is a **breaking** change on
macOS, where the default configuration path changes from
`~/Library/Preferences/outgoing/outgoing.toml` back to `~/Library/Application
Support/outgoing/outgoing.toml`.

v0.4.0 (2022-10-25)
-------------------
- Drop support for Python 3.6
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Changelog
=========

v0.5.0 (in development)
-----------------------
- Update ``platformdirs`` dependency to v3. This is a **breaking** change on
macOS, where the default configuration path changes from
:file:`~/Library/Preferences/outgoing/outgoing.toml` back to
:file:`~/Library/Application Support/outgoing/outgoing.toml`.

v0.4.0 (2022-10-25)
-------------------
- Drop support for Python 3.6
Expand Down
8 changes: 7 additions & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TOML, and its location depends on your OS:
======= ====================================================================
Linux :file:`~/.local/share/outgoing/outgoing.toml`
or :file:`$XDG_DATA_HOME/outgoing/outgoing.toml`
macOS :file:`~/Library/Preferences/outgoing/outgoing.toml`
macOS :file:`~/Library/Application Support/outgoing/outgoing.toml`
Windows :file:`C:\\Users\\<username>\\AppData\\Local\\jwodder\\outgoing\\outgoing.toml`
======= ====================================================================

Expand All @@ -26,6 +26,12 @@ Windows :file:`C:\\Users\\<username>\\AppData\\Local\\jwodder\\outgoing\\outgoi
Support/outgoing/outgoing.toml` to
:file:`~/Library/Preferences/outgoing/outgoing.toml`.

.. versionchanged:: 0.5.0

Due to an upgrade to v3 of ``platformdirs``, the default configuration path
on macOS changed from :file:`~/Library/Preferences/outgoing/outgoing.toml`
back to :file:`~/Library/Application Support/outgoing/outgoing.toml`.

To find the exact path on your system, after installing ``outgoing``, run::

python3 -c "from outgoing import get_default_configpath; print(get_default_configpath())"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ install_requires =
importlib-metadata >= 3.6; python_version < "3.10"
keyring >= 21.7
morecontext ~= 0.4
platformdirs ~= 2.1
platformdirs ~= 3.0
pydantic ~= 1.7
python-dotenv ~= 0.11
tomli >= 1.2, < 3.0; python_version < "3.11"
Expand Down
2 changes: 1 addition & 1 deletion src/outgoing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
more information.
"""

__version__ = "0.4.0"
__version__ = "0.5.0.dev1"
__author__ = "John Thorvald Wodder II"
__author_email__ = "outgoing@varonathe.org"
__license__ = "MIT"
Expand Down

0 comments on commit 2150201

Please sign in to comment.