From 21d3d88fab9cd462a99a5416d911c9c8c0e1fdca7798df3afcef968fc4d06a5a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 9 Dec 2025 04:18:42 +0000 Subject: [PATCH] - Update to 0.13.0: * No upstream changelog. - Add patch support-python314.patch: * Support Python 3.14 ast changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.std.pathlib?expand=0&rev=15 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-ruamel.std.pathlib.changes | 43 ++++++++++++++++++++++ python-ruamel.std.pathlib.spec | 61 +++++++++++++++++++++++++++++++ ruamel.std.pathlib-0.12.0.tar.gz | 3 ++ ruamel.std.pathlib-0.13.0.tar.gz | 3 ++ support-python314.patch | 39 ++++++++++++++++++++ 7 files changed, 173 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-ruamel.std.pathlib.changes create mode 100644 python-ruamel.std.pathlib.spec create mode 100644 ruamel.std.pathlib-0.12.0.tar.gz create mode 100644 ruamel.std.pathlib-0.13.0.tar.gz create mode 100644 support-python314.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-ruamel.std.pathlib.changes b/python-ruamel.std.pathlib.changes new file mode 100644 index 0000000..b0f1ce8 --- /dev/null +++ b/python-ruamel.std.pathlib.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Tue Dec 9 04:16:44 UTC 2025 - Steve Kowalik + +- Update to 0.13.0: + * No upstream changelog. +- Add patch support-python314.patch: + * Support Python 3.14 ast changes. + +------------------------------------------------------------------- +Thu Mar 27 03:44:15 UTC 2025 - Steve Kowalik + +- Normalize metadata directory name. +- Actually run fdupes. + +------------------------------------------------------------------- +Sat Jan 27 10:51:28 UTC 2024 - Dirk Müller + +- update to 0.12.0: + * drop python 2.x support + * add orjson + * implemented chunked blake + +------------------------------------------------------------------- +Tue Oct 25 19:51:11 UTC 2022 - Matej Cepl + +- Remove conditional definition of python_module. +- Remove building with python2. + +------------------------------------------------------------------- +Fri Oct 7 15:17:14 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.9.2 + No Changelog + +------------------------------------------------------------------- +Wed Apr 22 11:27:12 UTC 2020 - Matej Cepl + +- Make package neutral on the Python version + +------------------------------------------------------------------- +Fri Jul 12 07:20:24 AM UTC 2019 - John Vandenberg + +- Initial spec for v0.6.4 diff --git a/python-ruamel.std.pathlib.spec b/python-ruamel.std.pathlib.spec new file mode 100644 index 0000000..9b89b3d --- /dev/null +++ b/python-ruamel.std.pathlib.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-ruamel.std.pathlib +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-ruamel.std.pathlib +Version: 0.13.0 +Release: 0 +Summary: Improvements over the standard pathlib module and pathlib2 package +License: MIT +URL: https://sourceforge.net/projects/ruamel-std-pathlib/ +Source: https://files.pythonhosted.org/packages/source/r/ruamel.std.pathlib/ruamel.std.pathlib-%{version}.tar.gz +# PATCH-FIX-OPENSUSE Support Python 3.14 ast changes +Patch0: support-python314.patch +BuildRequires: %{python_module orjson} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-orjson +Requires: python-ruamel.base >= 1.0.0+post1 +BuildArch: noarch +%python_subpackages + +%description +Improvements over the standard pathlib module and pathlib2 package. + +%prep +%autosetup -p1 -n ruamel.std.pathlib-%{version} + +%build +%pyproject_wheel + +%install +export RUAMEL_NO_PIP_INSTALL_CHECK=1 +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md +%license LICENSE +%dir %{python_sitelib}/ruamel +%dir %{python_sitelib}/ruamel/std +%{python_sitelib}/ruamel/std/pathlib +%{python_sitelib}/ruamel_std_pathlib-%{version}.dist-info + +%changelog diff --git a/ruamel.std.pathlib-0.12.0.tar.gz b/ruamel.std.pathlib-0.12.0.tar.gz new file mode 100644 index 0000000..ea2584f --- /dev/null +++ b/ruamel.std.pathlib-0.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6489bb40856d458fc5c3e7ffee454044c5f4db5be3c6fbd8520066436e0af3bd +size 24343 diff --git a/ruamel.std.pathlib-0.13.0.tar.gz b/ruamel.std.pathlib-0.13.0.tar.gz new file mode 100644 index 0000000..ac748bb --- /dev/null +++ b/ruamel.std.pathlib-0.13.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1387e81655999851241b07f68569901ba4d502804094cde3c327b849ae702bb8 +size 25509 diff --git a/support-python314.patch b/support-python314.patch new file mode 100644 index 0000000..143a06c --- /dev/null +++ b/support-python314.patch @@ -0,0 +1,39 @@ +Index: ruamel.std.pathlib-0.13.0/setup.py +=================================================================== +--- ruamel.std.pathlib-0.13.0.orig/setup.py ++++ ruamel.std.pathlib-0.13.0/setup.py +@@ -76,7 +76,7 @@ else: + print(*args, **kw1) + + if sys.version_info >= (3, 8): +- from ast import Str, Num, Bytes, NameConstant # NOQA ++ from ast import Constant # NOQA + + + def literal_eval(node_or_string): +@@ -98,15 +98,7 @@ def literal_eval(node_or_string): + raise TypeError('only string or AST nodes supported') + + def _convert(node): +- if isinstance(node, Str): +- if sys.version_info < (3,) and not isinstance(node.s, unicode): +- return node.s.decode('utf-8') +- return node.s +- elif isinstance(node, Bytes): +- return node.s +- elif isinstance(node, Num): +- return node.n +- elif isinstance(node, Tuple): ++ if isinstance(node, Tuple): + return tuple(map(_convert, node.elts)) + elif isinstance(node, List): + return list(map(_convert, node.elts)) +@@ -114,7 +106,7 @@ def literal_eval(node_or_string): + return set(map(_convert, node.elts)) + elif isinstance(node, Dict): + return {_convert(k): _convert(v) for k, v in zip(node.keys, node.values)} +- elif isinstance(node, NameConstant): ++ elif isinstance(node, Constant): + return node.value + elif sys.version_info < (3, 4) and isinstance(node, Name): + if node.id in _safe_names: