15
0
forked from pool/python-path
Files
python-path/python-path.spec

90 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
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
2022-03-31 12:56:15 +00:00
# spec file
#
# 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
# 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%define modname path
%{?sle15_python_module_pythons}
Name: python-path%{psuffix}
Version: 16.9.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.8}
BuildRequires: %{python_module more-itertools}
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
2022-03-31 12:56:15 +00:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
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
2022-03-31 12:56:15 +00:00
BuildRequires: %{python_module tomli}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# Renaming package
Provides: python-path.py = %{version}-%{release}
Obsoletes: python-path.py < %{version}-%{release}
%if %{with test}
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
2022-03-31 12:56:15 +00:00
# use a multibuild test flavor so that there is no circular dependency with pytest
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
The path package implements a path objects as first-class
entities, allowing common operations on files to be invoked
on those path objects directly.
%prep
%setup -q -n %{modname}-%{version}
%build
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
2022-03-31 12:56:15 +00:00
%if !%{with test}
%pyproject_wheel
%endif
%install
%if !%{with test}
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
2022-03-31 12:56:15 +00:00
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
# need to set locale to avoid UnicodeEncodeError
export LANG=en_US.UTF-8
# test_import_time -> relies on timing that varies in OBS
%pytest -k 'not test_import_time'
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc NEWS.rst README.rst
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
2022-03-31 12:56:15 +00:00
%{python_sitelib}/path
%{python_sitelib}/path-%{version}.dist-info
%endif
%changelog