Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytools for openSUSE:Factory checked in at 2026-11-16 15:14:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytools (Old) and /work/SRC/openSUSE:Factory/.python-pytools.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytools" Mon Nov 16 15:14:35 2026 rev:22 rq:1397821 version:2026.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytools/python-pytools.changes 2026-06-17 16:28:40.641026142 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytools.new.1251/python-pytools.changes 2026-11-16 15:14:41.792922077 +0100 @@ -1,0 +2,6 @@ +Mon Nov 16 04:09:24 UTC 2026 - Steve Kowalik <[email protected]> + +- Add patch support-new-platformdirs.patch: + * platformdirs now rejects relative directories + +------------------------------------------------------------------- New: ---- support-new-platformdirs.patch ----------(New B)---------- New: - Add patch support-new-platformdirs.patch: * platformdirs now rejects relative directories ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytools.spec ++++++ --- /var/tmp/diff_new_pack.0eL2ze/_old 2026-11-16 15:14:43.118977997 +0100 +++ /var/tmp/diff_new_pack.0eL2ze/_new 2026-11-16 15:14:43.120978082 +0100 @@ -24,6 +24,8 @@ License: MIT URL: https://pypi.python.org/pypi/pytools Source0: https://files.pythonhosted.org/packages/source/p/pytools/pytools-%{version}.tar.gz +# PATCH-FIX-UPSTREAM Based on gh#inducer/pytools#364 +Patch0: support-new-platformdirs.patch BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} @@ -32,7 +34,6 @@ BuildRequires: %{python_module siphash24 >= 1.6} BuildRequires: %{python_module sqlite3} BuildRequires: %{python_module typing_extensions >= 4.5} -BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-platformdirs >= 2.2 @@ -57,7 +58,7 @@ * A lexer, pytools.lex. %prep -%setup -q -n pytools-%{version} +%autosetup -p1 -n pytools-%{version} %build %pyproject_wheel @@ -73,5 +74,5 @@ %license LICENSE %doc README.rst %{python_sitelib}/pytools -%{python_sitelib}/pytools-%{version}*-info +%{python_sitelib}/pytools-%{version}.dist-info ++++++ support-new-platformdirs.patch ++++++ >From 4e73cb21f9a64afaff87f7b8cdaf84e4f9336c5a Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <[email protected]> Date: Sun, 13 Sep 2026 14:05:37 -0500 Subject: [PATCH] Fix test_xdg_cache_home failing because platformdirs now rejects relative directories x-ref: https://github.com/tox-dev/platformdirs/pull/540 Assisted-by: Zed:gpt-5.6-terra --- pytools/test/test_persistent_dict.py | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) Index: pytools-2026.1.1/pytools/test/test_persistent_dict.py =================================================================== --- pytools-2026.1.1.orig/pytools/test/test_persistent_dict.py +++ pytools-2026.1.1/pytools/test/test_persistent_dict.py @@ -6,7 +6,7 @@ import sys import tempfile from dataclasses import dataclass from enum import Enum, IntEnum -from typing import Any +from typing import TYPE_CHECKING, Any import pytest @@ -22,6 +22,10 @@ from pytools.persistent_dict import ( from pytools.tag import Tag, tag_dataclass +if TYPE_CHECKING: + from pathlib import Path + + # {{{ type for testing class PDictTestingKeyOrValue: @@ -710,26 +714,16 @@ def test_datetime_hashing() -> None: # }}} -def test_xdg_cache_home() -> None: - import os - xdg_dir = "tmpdir_pytools_xdg_test" +def test_xdg_cache_home(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: + xdg_dir = tmp_path / "xdg-cache" - assert not os.path.exists(xdg_dir) - - old_xdg_cache_home = os.environ.get("XDG_CACHE_HOME") - try: - os.environ["XDG_CACHE_HOME"] = xdg_dir + assert not xdg_dir.exists() - PersistentDict("pytools-test", safe_sync=False) + monkeypatch.setenv("XDG_CACHE_HOME", str(xdg_dir)) - assert os.path.exists(xdg_dir) - finally: - if old_xdg_cache_home is not None: - os.environ["XDG_CACHE_HOME"] = old_xdg_cache_home - else: - del os.environ["XDG_CACHE_HOME"] + PersistentDict("pytools-test", safe_sync=False) - shutil.rmtree(xdg_dir) + assert xdg_dir.exists() def test_speed():
