- 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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
43
python-ruamel.std.pathlib.changes
Normal file
43
python-ruamel.std.pathlib.changes
Normal file
@@ -0,0 +1,43 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 9 04:16:44 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <steven.kowalik@suse.com>
|
||||
|
||||
- Normalize metadata directory name.
|
||||
- Actually run fdupes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 27 10:51:28 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
- Remove conditional definition of python_module.
|
||||
- Remove building with python2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 7 15:17:14 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to version 0.9.2
|
||||
No Changelog
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 22 11:27:12 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Make package neutral on the Python version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 12 07:20:24 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Initial spec for v0.6.4
|
||||
61
python-ruamel.std.pathlib.spec
Normal file
61
python-ruamel.std.pathlib.spec
Normal file
@@ -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
|
||||
3
ruamel.std.pathlib-0.12.0.tar.gz
Normal file
3
ruamel.std.pathlib-0.12.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6489bb40856d458fc5c3e7ffee454044c5f4db5be3c6fbd8520066436e0af3bd
|
||||
size 24343
|
||||
3
ruamel.std.pathlib-0.13.0.tar.gz
Normal file
3
ruamel.std.pathlib-0.13.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1387e81655999851241b07f68569901ba4d502804094cde3c327b849ae702bb8
|
||||
size 25509
|
||||
39
support-python314.patch
Normal file
39
support-python314.patch
Normal file
@@ -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:
|
||||
Reference in New Issue
Block a user