15
0

Compare commits

6 Commits

Author SHA256 Message Date
cf803a8fea Accepting request 1322887 from devel:languages:python
- Add patch support-pytest-9.patch:
  * Use shiny new pathlib arguments for the collection hooks.

OBS-URL: https://build.opensuse.org/request/show/1322887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-boltons?expand=0&rev=15
2025-12-16 14:53:06 +00:00
6755dce9a2 - Add patch support-pytest-9.patch:
* Use shiny new pathlib arguments for the collection hooks.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-boltons?expand=0&rev=32
2025-12-15 03:45:49 +00:00
3b8a3d3abf Accepting request 1247627 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1247627
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-boltons?expand=0&rev=14
2025-02-21 20:37:40 +00:00
e41aaf15eb - Update to 25.0.0
* Added Python 3.13 support
  * Replace deprecated utcnow()
  * Add fsync to fileutils.atomic_save
  * Add fileutils.rotate_file

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-boltons?expand=0&rev=30
2025-02-21 12:33:38 +00:00
46f169b843 Accepting request 1225055 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1225055
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-boltons?expand=0&rev=13
2024-11-19 21:23:16 +00:00
0dc4392bd5 - Update to 24.1.0
* Added max_depth parameter to fileutils.iter_find_files
  * Added enter parameter to iterutils.research to support traversing 
    custom data types
  * Add optional print tracing for iterutils.remap for easier debugging
  * Fixed typeutils.Sentinel copy behavior to return self
  * Tentative Python 3.13 support

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-boltons?expand=0&rev=28
2024-11-19 10:42:12 +00:00
5 changed files with 65 additions and 7 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7153feccaea1ff2e1472f68d4b57fadb796a2ee49d29f638f1c9cd8fb5ebd916
size 239550

3
boltons-25.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e110fbdc30b7b9868cb604e3f71d4722dd8f4dcb4a5ddd06028ba8f1ab0b5ace
size 246294

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Mon Dec 15 03:45:13 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-pytest-9.patch:
* Use shiny new pathlib arguments for the collection hooks.
-------------------------------------------------------------------
Fri Feb 21 12:30:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 25.0.0
* Added Python 3.13 support
* Replace deprecated utcnow()
* Add fsync to fileutils.atomic_save
* Add fileutils.rotate_file
-------------------------------------------------------------------
Tue Nov 19 10:31:59 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 24.1.0
* Added max_depth parameter to fileutils.iter_find_files
* Added enter parameter to iterutils.research to support traversing
custom data types
* Add optional print tracing for iterutils.remap for easier debugging
* Fixed typeutils.Sentinel copy behavior to return self
* Tentative Python 3.13 support
-------------------------------------------------------------------
Sat Apr 20 13:54:31 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-boltons
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,17 @@
%{?sle15_python_module_pythons}
Name: python-boltons
Version: 24.0.0
Version: 25.0.0
Release: 0
Summary: The "Boltons" utility package for Python
License: BSD-3-Clause
URL: https://github.com/mahmoud/boltons
Source: https://files.pythonhosted.org/packages/source/b/boltons/boltons-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#mahmoud/boltons#391
Patch0: support-pytest-9.patch
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch

31
support-pytest-9.patch Normal file
View File

@@ -0,0 +1,31 @@
From 5bf0e99182fc910f641a0849fa209940d68bce32 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Mon, 15 Dec 2025 14:38:06 +1100
Subject: [PATCH] Support pytest 9 changes
Starting from pytest 7, the py.path arguments to pytest's hook functions
have been deprecated, replaced with pathlib.Path equivalents. Since
pytest 7 is the minimum version we support, move to using it.
---
tests/conftest.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index d4d2192c..e2c9a0cf 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -5,12 +5,12 @@
_VERSION_MARKER = re.compile(r'_py(?P<major_version>\d)(?P<minor_version>\d)?')
-def pytest_ignore_collect(path, config):
+def pytest_ignore_collect(collection_path, config):
"""
Ignore tests that end with _pyX, where X does not equal this
interpreter's major version.
"""
- filename = path.basename
+ filename = collection_path.name
modulename = filename.split('.', 1)[0]
match = _VERSION_MARKER.search(modulename)
if not match: