Sync from SUSE:SLFO:Main python-path revision 5b566946d3e69a271a03dfe8b186e41f

This commit is contained in:
Adrian Schröter 2024-12-13 11:54:11 +01:00
parent d306365aa6
commit f8f9eab9cd
4 changed files with 69 additions and 17 deletions

BIN
path-16.6.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
path-17.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,56 @@
-------------------------------------------------------------------
Sun Aug 18 16:59:02 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <dmueller@suse.com>
@ -11,13 +64,13 @@ Thu Apr 13 22:42:55 UTC 2023 - Matej Cepl <mcepl@suse.com>
-------------------------------------------------------------------
Wed Dec 7 20:00:17 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- 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 <yarunachalam@suse.com>
- 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

View File

@ -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