From 14d1c60c56882ca3c616e46201dd1c7312a67d045f49e62a7b04898db8448417 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 31 Mar 2022 12:56:15 +0000 Subject: [PATCH] Accepting request 966073 from home:bnavigator:branches:devel:languages:python - update to version 16.4.0 * #207: Added type hints and declare the library as typed. - Release 16.3.0 * Require Python 3.7 or later. * #205: test_listdir_other_encoding now automatically skips itself on file systems where it's not appropriate. - Release 16.2.0 * Deprecated passing bytes to write_text. Instead, users should call write_bytes. - Release 16.1.0 * #204: Improved test coverage across the package to 99%, fixing bugs in uncovered code along the way. - Release 16.0.0 * #200: TempDir context now cleans up unconditionally, even if an exception occurs. - Release 15.1.2 * #199: Fixed broken link in README. - Release 15.1.1 * Refreshed package metadata. - Release 15.1.0 * Added ExtantPath and ExtantFile objects that raise errors when they reference a non-existent path or file. - Release 15.0.1 * Refreshed package metadata. - Release 15.0.0 * Removed __version__ property. To determine the version, use importlib.metadata.version('path'). - Release 14.0.1 * Fixed regression on Python 3.7 and earlier where lru_cache did not support a user function. - Release 14.0.0 * Removed namebase property. Use stem instead. * Removed update parameter on method to Path.merge_tree. Instead, to only copy newer files, provide a wrapped copy function, as described in the doc string. * Removed FastPath. Just use Path. * Removed path.CaseInsensitivePattern. Instead use path.matchers.CaseInsensitive. * Removed path.tempdir. Use path.TempDir. * #154: Added Traversal class and support for customizing the behavior of a Path.walk. - Release 13.3.0 * #186: Fix test failures on Python 3.8 on Windows by relying on realpath() instead of readlink(). * #189: realpath() now honors symlinks on Python 3.7 and earlier, approximating the behavior found on Python 3.8. * #187: lines() no longer relies on the deprecated .text(). OBS-URL: https://build.opensuse.org/request/show/966073 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-path?expand=0&rev=7 --- path-13.2.0.tar.gz | 3 --- path-16.4.0.tar.gz | 3 +++ python-path.changes | 51 +++++++++++++++++++++++++++++++++++++++++++++ python-path.spec | 33 ++++++++++++++--------------- 4 files changed, 70 insertions(+), 20 deletions(-) delete mode 100644 path-13.2.0.tar.gz create mode 100644 path-16.4.0.tar.gz diff --git a/path-13.2.0.tar.gz b/path-13.2.0.tar.gz deleted file mode 100644 index 4d36df9..0000000 --- a/path-13.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:10a149813a921540fd48ad639ec9157d08c2149ac2bcc399c74304450f70fdf2 -size 46212 diff --git a/path-16.4.0.tar.gz b/path-16.4.0.tar.gz new file mode 100644 index 0000000..1266f17 --- /dev/null +++ b/path-16.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:baf2e757c4b19be8208f9e67e48fb475b4a577d5613590ce46693bdbdf082f52 +size 48289 diff --git a/python-path.changes b/python-path.changes index 4ca569c..f3cf81e 100644 --- a/python-path.changes +++ b/python-path.changes @@ -1,3 +1,54 @@ +------------------------------------------------------------------- +Wed Mar 30 19:11:53 UTC 2022 - Ben Greiner + +- update to version 16.4.0 + * #207: Added type hints and declare the library as typed. +- Release 16.3.0 + * Require Python 3.7 or later. + * #205: test_listdir_other_encoding now automatically skips + itself on file systems where it's not appropriate. +- Release 16.2.0 + * Deprecated passing bytes to write_text. Instead, users should + call write_bytes. +- Release 16.1.0 + * #204: Improved test coverage across the package to 99%, fixing + bugs in uncovered code along the way. +- Release 16.0.0 + * #200: TempDir context now cleans up unconditionally, even if an + exception occurs. +- Release 15.1.2 + * #199: Fixed broken link in README. +- Release 15.1.1 + * Refreshed package metadata. +- Release 15.1.0 + * Added ExtantPath and ExtantFile objects that raise errors when + they reference a non-existent path or file. +- Release 15.0.1 + * Refreshed package metadata. +- Release 15.0.0 + * Removed __version__ property. To determine the version, use + importlib.metadata.version('path'). +- Release 14.0.1 + * Fixed regression on Python 3.7 and earlier where lru_cache did + not support a user function. +- Release 14.0.0 + * Removed namebase property. Use stem instead. + * Removed update parameter on method to Path.merge_tree. Instead, + to only copy newer files, provide a wrapped copy function, as + described in the doc string. + * Removed FastPath. Just use Path. + * Removed path.CaseInsensitivePattern. Instead use + path.matchers.CaseInsensitive. + * Removed path.tempdir. Use path.TempDir. + * #154: Added Traversal class and support for customizing the + behavior of a Path.walk. +- Release 13.3.0 + * #186: Fix test failures on Python 3.8 on Windows by relying on + realpath() instead of readlink(). + * #189: realpath() now honors symlinks on Python 3.7 and earlier, + approximating the behavior found on Python 3.8. + * #187: lines() no longer relies on the deprecated .text(). + ------------------------------------------------------------------- Wed Mar 11 15:41:44 UTC 2020 - Marketa Calabkova diff --git a/python-path.spec b/python-path.spec index 791e6fc..c61138a 100644 --- a/python-path.spec +++ b/python-path.spec @@ -1,7 +1,7 @@ # -# spec file for package python-path +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 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,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -28,25 +28,26 @@ %define skip_python2 1 %define modname path Name: python-path%{psuffix} -Version: 13.2.0 +Version: 16.4.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 pip} +BuildRequires: %{python_module setuptools >= 56} BuildRequires: %{python_module setuptools_scm >= 3.4.1} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module toml} +BuildRequires: %{python_module tomli} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-importlib-metadata >= 0.5 BuildArch: noarch # Renaming package Provides: python-path.py = %{version}-%{release} Obsoletes: python-path.py < %{version}-%{release} %if %{with test} -BuildRequires: %{python_module %{modname} >= %{version}} -BuildRequires: %{python_module importlib-metadata >= 0.5} +# use a multibuild test flavor so that there is no circular dependency with pytest BuildRequires: %{python_module pytest} %endif %python_subpackages @@ -58,18 +59,15 @@ on those path objects directly. %prep %setup -q -n %{modname}-%{version} -%autopatch -p1 - -rm -rf %{modname}.egg-info -# no need to pull in flake -rm -f pytest.ini %build -%python_build +%if !%{with test} +%pyproject_wheel +%endif %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -85,7 +83,8 @@ export LANG=en_US.UTF-8 %files %{python_files} %license LICENSE %doc CHANGES.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/path +%{python_sitelib}/path-%{version}*-info %endif %changelog