Skip to content

Releases: srstevenson/xdg-base-dirs

6.0.1

20 Sep 22:08
Compare
Choose a tag to compare

This patch release no longer installs the LICENSE file into the site-packages directory.

6.0.0

27 Feb 19:32
Compare
Choose a tag to compare

This major release renames xdg to xdg-base-dirs due to an import collision with PyXDG. If you used xdg prior to the rename, update by changing the dependency name from xdg to xdg-base-dirs and the import from xdg to xdg_base_dirs. Python 3.10 or later is required by xdg-base-dirs.

5.1.1

24 Jul 16:52
Compare
Choose a tag to compare

This patch release moves to using pathlib.Path.home() to get the home directory.

5.1.0

13 Jun 08:01
Compare
Choose a tag to compare

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

24 Apr 14:40
Compare
Choose a tag to compare

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

12 Nov 21:58
Compare
Choose a tag to compare

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

29 Oct 16:08
Compare
Choose a tag to compare

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

21 Jul 20:24
Compare
Choose a tag to compare

This patch release adds a py.typed file to mark xdg as PEP 561 compliant.

4.0.0

02 Mar 16:51
Compare
Choose a tag to compare

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)

3.0.2

07 Mar 11:58
Compare
Choose a tag to compare

This patch release changes the test setup to allow easier distribution packaging. The test suite can now be run with python setup.py test.