Bump pytest from 8.3.4 to 9.0.3 in the uv group across 1 directory (#301)
Bumps the uv group with 1 update in the / directory: pytest.
Updates
pytestfrom 8.3.4 to 9.0.3
updated-dependencies:
- dependency-name: pytest dependency-version: 9.0.3 dependency-type: direct:development dependency-group: uv …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
xdg-base-dirs
xdg-base-dirs is a Python module that provides functions to return paths to the directories defined by the XDG Base Directory Specification, to save you from duplicating the same snippet of logic in every Python utility you write that deals with user cache, configuration, or data files. It has no external dependencies and consists of a single file, making it easy to integrate.
xdg-base-dirs currently implements version 0.8 of the specification, released on 8th May 2021.
Installation
xdg-base-dirs requires Python 3.10 or later. To add xdg-base-dirs as a dependency to a project managed with uv, use:
Alternatively, since xdg-base-dirs is only a single file you may prefer to just copy
src/xdg_base_dirs/__init__.pyfrom the source distribution into your project.Usage
xdg_cache_home(),xdg_config_home(),xdg_data_home(), andxdg_state_home()returnpathlib.Pathobjects containing the value of the environment variable namedXDG_CACHE_HOME,XDG_CONFIG_HOME,XDG_DATA_HOME, andXDG_STATE_HOMErespectively, or the default defined in the specification if the environment variable is unset, empty, or contains a relative path. Only absolute paths are considered valid; any relative path causes the function to return the specification’s default value.xdg_config_dirs()andxdg_data_dirs()return a list ofpathlib.Pathobjects containing the values from the colon-separated environment variablesXDG_CONFIG_DIRSandXDG_DATA_DIRSrespectively. These variables define search paths where multiple directories can be specified. When parsing the colon-separated values, relative paths are filtered out entirely. If the environment variable is unset, empty, or contains only relative paths, the specification’s default list is returned instead.xdg_runtime_dir()returns apathlib.Pathobject containing the value of theXDG_RUNTIME_DIRenvironment variable, orNoneif the environment variable is not set or contains a relative path. Unlike the other functions, this returnsNonerather than a default path because the XDG specification requires this directory to be provided by the system runtime environment.All returned paths are used exactly as specified in the environment variables or defaults, without additional normalisation or resolution of symbolic links. This preserves the original paths as intended by the system configuration.
Copyright
Copyright © Scott Stevenson.
xdg-base-dirs is distributed under the terms of the ISC license.