From f8f9eab9cd99a4b1a85ab698c504d7cb8f88c04b781b3983cb1d6d2d952a438c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 11:54:11 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-path revision 5b566946d3e69a271a03dfe8b186e41f --- path-16.6.0.tar.gz | 3 --- path-17.0.0.tar.gz | 3 +++ python-path.changes | 63 +++++++++++++++++++++++++++++++++++++++++---- python-path.spec | 17 ++++++------ 4 files changed, 69 insertions(+), 17 deletions(-) delete mode 100644 path-16.6.0.tar.gz create mode 100644 path-17.0.0.tar.gz diff --git a/path-16.6.0.tar.gz b/path-16.6.0.tar.gz deleted file mode 100644 index adaacb2..0000000 --- a/path-16.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bea3816e1d54f4e33aac78d2031a0b0ed2f95e69db85b45d51f17df97071da69 -size 49670 diff --git a/path-17.0.0.tar.gz b/path-17.0.0.tar.gz new file mode 100644 index 0000000..cd9afe9 --- /dev/null +++ b/path-17.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1540261d22df1416fb1b498b3b1ed5353a371a48fe197d66611bb01e7fab2d5 +size 49721 diff --git a/python-path.changes b/python-path.changes index 350aa0d..73223bb 100644 --- a/python-path.changes +++ b/python-path.changes @@ -1,3 +1,56 @@ +------------------------------------------------------------------- +Sun Aug 18 16:59:02 UTC 2024 - Dirk Müller + +- update to 17.0.0: + * Removed deprecated methods getcwd, abspath, ext, listdir, + isdir, isfile, and text. + * Removed deprecated support for passing bytes to write_text + and write_lines(linesep=) parameter. + * Implement .replace. + * Add .home classmethod. + * Replaced 'open' overloads with 'functools.wraps(open)' for + simple re-use. + * Add type hints for .with_name, .suffix, .with_stem. + * Add type hint for .absolute. + +------------------------------------------------------------------- +Mon Apr 15 08:25:30 UTC 2024 - Dirk Müller + +- update to 16.14.0: + * Add .symlink_to and .hardlink_to. + * Add .cwd method and deprecated .getcwd. + * Create 'absolute' method and deprecate 'abspath'. + * In readlink, prefer the display path to the substitute path. + +------------------------------------------------------------------- +Sat Apr 6 12:08:15 UTC 2024 - Dirk Müller + +- update to 16.12.1: + * Restore functionality in .isdir and .isfile. + * Added .is_dir and .is_file for parity with pathlib. + Deprecates .isdir and .isfile. + * Inlined some types. + * Fix iterdir - it also accepts match. Ref #220. + * Add type annotation for iterdir. + +------------------------------------------------------------------- +Wed Feb 7 20:16:20 UTC 2024 - Dirk Müller + +- update to 16.10.0: + * Added .with_name and .with_stem. + * Prefer .suffix to .ext and deprecate .ext. + +------------------------------------------------------------------- +Tue Jan 2 19:09:13 UTC 2024 - Dirk Müller + +- update to 16.9.0: + * Features - Added Path.iterdir() and deprecated + Path.listdir(). + * Use '.' as the default path. + * Set stacklevel=2 in deprecation warning for .text. + * Added .permissions attribute. + * Require Python 3.8 or later. + ------------------------------------------------------------------- Fri Apr 21 12:29:04 UTC 2023 - Dirk Müller @@ -11,13 +64,13 @@ Thu Apr 13 22:42:55 UTC 2023 - Matej Cepl ------------------------------------------------------------------- Wed Dec 7 20:00:17 UTC 2022 - Yogalakshmi Arunachalam -- Update to version 16.6.0 +- Update to version 16.6.0 * .mtime and .atime are now settable. ------------------------------------------------------------------- Wed Oct 12 13:55:19 UTC 2022 - Yogalakshmi Arunachalam -- Update to version 16.5.0 +- Update to version 16.5.0 * Refreshed packaging. #197: Fixed default argument rendering in docs. #209: Refactored write_lines to re-use open semantics. Deprecated the linesep parameter. @@ -193,11 +246,11 @@ Wed Sep 16 15:02:34 UTC 2015 - toddrme2178@gmail.com - Update to version 8.1.1 * Restored path.path with a DeprecationWarning. - * Removed path.path. Clients must now refer to the canonical + * Removed path.path. Clients must now refer to the canonical name, path.Path as introduced in 6.2. - * Added support for resolving certain directories on a system to + * Added support for resolving certain directories on a system to platform-friendly locations using the appdirs library. - * In order to support "multipath" results, where multiple paths + * In order to support "multipath" results, where multiple paths are returned in a single, os.pathsep-separated string, a new class MultiPath now represents those special results. This functionality is experimental and may change. Feedback is diff --git a/python-path.spec b/python-path.spec index 072ba7c..7a72cbb 100644 --- a/python-path.spec +++ b/python-path.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-path # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -25,19 +24,18 @@ %define psuffix %{nil} %bcond_with test %endif -%define skip_python2 1 %define modname path %{?sle15_python_module_pythons} Name: python-path%{psuffix} -Version: 16.6.0 +Version: 17.0.0 Release: 0 Summary: A module wrapper for os.path License: MIT URL: https://github.com/jaraco/path Source: https://files.pythonhosted.org/packages/source/p/path/%{modname}-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module more-itertools} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools >= 56} BuildRequires: %{python_module setuptools_scm >= 3.4.1} BuildRequires: %{python_module tomli} BuildRequires: %{python_module wheel} @@ -50,6 +48,7 @@ Obsoletes: python-path.py < %{version}-%{release} %if %{with test} # use a multibuild test flavor so that there is no circular dependency with pytest BuildRequires: %{python_module pytest} +BuildRequires: %{python_module path >= %{version}} %endif %python_subpackages @@ -83,9 +82,9 @@ export LANG=en_US.UTF-8 %if !%{with test} %files %{python_files} %license LICENSE -%doc CHANGES.rst README.rst +%doc NEWS.rst README.rst %{python_sitelib}/path -%{python_sitelib}/path-%{version}*-info +%{python_sitelib}/path-%{version}.dist-info %endif %changelog