Releases: srstevenson/xdg-base-dirs
6.0.2
What's Changed
- Use GitHub's alert syntax for rename warning by @srstevenson in #184
- Bump ruff from 0.0.290 to 0.0.291 by @dependabot in #185
- Bump poethepoet from 0.22.1 to 0.23.0 by @dependabot in #186
- Bump ruff from 0.0.291 to 0.0.292 by @dependabot in #187
- Bump poethepoet from 0.23.0 to 0.24.1 by @dependabot in #189
- Bump ruff from 0.0.292 to 0.1.0 by @dependabot in #191
- Bump mypy from 1.5.1 to 1.6.0 by @dependabot in #190
- Bump black from 23.9.1 to 23.10.1 by @dependabot in #192
- Bump mypy from 1.6.0 to 1.6.1 by @dependabot in #193
- Bump ruff from 0.1.0 to 0.1.1 by @dependabot in #194
- Bump ruff from 0.1.1 to 0.1.3 by @dependabot in #195
- Bump pytest from 7.4.2 to 7.4.3 by @dependabot in #196
- Bump poethepoet from 0.24.1 to 0.24.2 by @dependabot in #197
- Bump ruff from 0.1.3 to 0.1.4 by @dependabot in #198
- Bump mypy from 1.6.1 to 1.7.0 by @dependabot in #202
- Bump black from 23.10.1 to 23.11.0 by @dependabot in #199
- Bump poethepoet from 0.24.2 to 0.24.3 by @dependabot in #200
- Bump ruff from 0.1.4 to 0.1.5 by @dependabot in #201
- Migrate from Black to Ruff for formatting by @srstevenson in #203
- Test with Python 3.12 in CI by @srstevenson in #204
- Bump mypy from 1.7.0 to 1.7.1 by @dependabot in #205
- Bump ruff from 0.1.6 to 0.1.7 by @dependabot in #206
- Bump actions/setup-python from 4 to 5 by @dependabot in #207
- Bump actions/stale from 8 to 9 by @dependabot in #208
- Bump ruff from 0.1.7 to 0.1.8 by @dependabot in #210
- Bump mypy from 1.7.1 to 1.8.0 by @dependabot in #211
- Bump ruff from 0.1.8 to 0.1.9 by @dependabot in #212
- Bump pytest from 7.4.3 to 7.4.4 by @dependabot in #213
- Change Dependabot update interval to monthly by @srstevenson in #214
- Bump ruff from 0.1.9 to 0.1.11 by @dependabot in #215
- Bump codecov/codecov-action from 3.1.4 to 4.0.1 by @dependabot in #216
- Bump ruff from 0.1.11 to 0.2.0 by @dependabot in #218
- Bump pytest from 7.4.4 to 8.0.0 by @dependabot in #217
- Bump codecov/codecov-action from 4.0.1 to 4.1.0 by @dependabot in #219
- Bump pytest from 8.0.0 to 8.0.2 by @dependabot in #220
- Bump ruff from 0.2.0 to 0.3.0 by @dependabot in #222
- Bump poethepoet from 0.24.4 to 0.25.0 by @dependabot in #221
- Update Ruff configuration by @srstevenson in #223
- Check
# type: ignore
directives include error code by @srstevenson in #224 - Bump mypy from 1.8.0 to 1.9.0 by @dependabot in #225
- Bump pytest from 8.0.2 to 8.1.1 by @dependabot in #227
- Bump pytest-cov from 4.1.0 to 5.0.0 by @dependabot in #226
- Bump ruff from 0.3.0 to 0.3.5 by @dependabot in #228
- Bump codecov/codecov-action from 4.1.0 to 4.1.1 by @dependabot in #229
- Bump codecov/codecov-action from 4.1.1 to 4.3.1 by @dependabot in #230
- Bump ruff from 0.3.5 to 0.4.2 by @dependabot in #231
- Bump mypy from 1.9.0 to 1.10.0 by @dependabot in #232
- Bump pytest from 8.1.1 to 8.2.0 by @dependabot in #233
- Bump poethepoet from 0.25.0 to 0.26.1 by @dependabot in #234
- Bump ruff from 0.4.2 to 0.4.7 by @dependabot in #235
- Bump pytest from 8.2.0 to 8.2.1 by @dependabot in #236
- Bump codecov/codecov-action from 4.3.1 to 4.4.1 by @dependabot in #237
- Bump codecov/codecov-action from 4.4.1 to 4.5.0 by @dependabot in #238
- Bump ruff from 0.4.7 to 0.5.5 by @dependabot in #239
- Bump pytest from 8.2.1 to 8.3.2 by @dependabot in #242
- Bump mypy from 1.10.0 to 1.11.1 by @dependabot in #241
- Bump poethepoet from 0.26.1 to 0.27.0 by @dependabot in #240
- Bump poethepoet from 0.27.0 to 0.28.0 by @dependabot in #243
- Bump mypy from 1.11.1 to 1.11.2 by @dependabot in #244
- Bump ruff from 0.5.5 to 0.6.3 by @dependabot in #245
- Bump codecov/codecov-action from 4.5.0 to 4.6.0 by @dependabot in #246
- Add Python 3.13 to CI by @srstevenson in #250
- Bump pytest from 8.3.2 to 8.3.3 by @dependabot in #247
- Bump poethepoet from 0.28.0 to 0.29.0 by @dependabot in #248
- Bump ruff from 0.6.3 to 0.7.0 by @dependabot in #251
- Update README and remove badges without cache invalidation by @srstevenson in #252
- Document required Python version by @srstevenson in #253
- Remove include statement for py.typed by @srstevenson in #254
- Bump version to 6.0.2 by @srstevenson in #255
Full Changelog: 6.0.1...6.0.2
6.0.1
This patch release no longer installs the LICENSE
file into the site-packages
directory.
6.0.0
5.1.1
This patch release moves to using pathlib.Path.home()
to get the home directory.
5.1.0
This minor release implements version 0.8 of the XDG Base Directory Specification, released on 8th May 2021. Specifically, it adds a xdg_state_home
function which returns a path to a directory suitable for storing application state, such as undo history or window layout.
5.0.2
This patch release fixes an issue with relative paths. Prior to this release, xdg
would use paths defined by the relevant environment variables even if they were relative paths, which is not permitted by the specification:
All paths set in these environment variables must be absolute. If an implementation encounters a relative path in any of these variables it should consider the path invalid and ignore it.
Now only absolute paths are accepted, and relative paths are ignored.
5.0.1
This patch release changes the build backend to poetry-core
in order to make PEP 517 builds faster, and not require Poetry and all its dependencies be installed.
5.0.0
This major release refactors the API to provide functions rather than variables. This means xdg
will now respect changes to environment variables made after it is imported. The previous variable based API is maintained for backward compatibility, but is no longer documented.
4.0.1
This patch release adds a py.typed
file to mark xdg
as PEP 561 compliant.
4.0.0
With this major release, paths are no longer returned as strings but as pathlib.Path
objects, which are the new de facto standard for specifying file system paths in Python.
If your code expects strings rather than pathlib.Path
objects, wrap the variable in a call to os.fspath
, e.g.
import os
import xdg
config_home = os.fspath(xdg.XDG_CONFIG_HOME)