15
0

Accepting request 849806 from home:bnavigator:branches:devel:languages:python

This is needed for the new python36 flavor (Staging:N)

It does NOT conflict with python38 standardlib (see importlib_metadata)

OBS-URL: https://build.opensuse.org/request/show/849806
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-importlib-resources?expand=0&rev=1
This commit is contained in:
2020-11-23 09:27:56 +00:00
committed by Git OBS Bridge
commit ef73e56ac7
5 changed files with 216 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b51f0106c8ec564b1bef3d9c588bc694ce2b92125bbb6278f4f2f5b54ec3592
size 29000

View File

@@ -0,0 +1,101 @@
-------------------------------------------------------------------
Fri Nov 20 12:24:25 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Reintroduce into Tumbleweed for python36 flavor
- Update to 3.2.0
* #68: Resources in PEP 420 Namespace packages are now supported.
- v3.1.1
* bpo-41490: contents is now also more aggressive about consuming
any iterator from the Reader.
- v3.1.0
* #110 and bpo-41490: path method is more aggressive about
releasing handles to zipfile objects early, enabling use-cases
like certifi to leave the context open but delete the
underlying zip file.
- v3.0.0
* Package no longer exposes importlib_resources.__version__.
Users that wish to inspect the version of importlib_resources
should instead invoke .version('importlib_resources') from
importlib-metadata ( stdlib or backport) directly. This change
eliminates the dependency on importlib_metadata. Closes #100.
* Package now always includes its data. Closes #93.
* Declare hidden imports for PyInstaller. Closes #101.
- v2.0.1
* Select pathlib and contextlib imports based on Python version
and avoid pulling in deprecated [pathlib](https://pypi.org/
project/pathlib). Closes #97.
- v2.0.0
* Loaders are no longer expected to implement the
abc.TraversableResources interface, but are instead expected to
return TraversableResources from their get_resource_reader
method.
- v1.5.0
* Traversable is now a Protocol instead of an Abstract Base Class
(Python 2.7 and Python 3.8+).
* Traversable objects now require a .name property.
- v1.4.0
* #79: Temporary files created will now reflect the filename of
their origin.
- v1.3.1
* For improved compatibility, importlib_resources.trees is now
imported implicitly. Closes #88.
- v1.3.0
* Add extensibility support for non-standard loaders to supply
Traversable resources. Introduces a new abstract base class
abc.TraversableResources that supersedes (but implements for
compatibility) abc.ResourceReader. Any loader that implements
(implicitly or explicitly) the TraversableResources.files
method will be capable of supplying resources with subdirectory
support. Closes #77.
* Preferred way to access as_file is now from top-level module.
importlib_resources.trees.as_file is deprecated and
discouraged. Closes #86.
* Moved Traversable abc to abc module. Closes #87.
- v1.2.0
* Traversable now requires an open method. Closes #81.
* Fixed error on Python 3.5.{0,3}. Closes #83.
* Updated packaging to resolve version from package metadata.
Closes #82.
-------------------------------------------------------------------
Tue Aug 25 07:44:58 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Add missing runtime dependencies bsc#1175707
-------------------------------------------------------------------
Sat Jun 13 21:38:55 CEST 2020 - Matej Cepl <mcepl@suse.com>
- Update to 1.1.0 (jsc#PM-1954 bsc#1172933):
- Add support for retrieving resources from subdirectories of
packages through the new files() function, which returns
a Traversable object with joinpath and read_* interfaces
matching those of pathlib.Path objects. This new function
supersedes all of the previous functionality as it provides
a more general-purpose access to a packages resources.
- With this function, subdirectories are supported.
- The documentation has been updated to reflect that this
function is now the preferred interface for loading package
resources. It does not, however, support resources from
arbitrary loaders. It currently only supports resources from
file system path and zipfile packages (a consequence of the
ResourceReader interface only operating on Python packages).
-------------------------------------------------------------------
Wed Jul 31 12:49:00 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- This package is by default provided in python 3.7 and newer
-------------------------------------------------------------------
Thu Mar 21 15:48:41 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Simplify logic for typing dependency
-------------------------------------------------------------------
Tue Feb 5 14:35:54 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase in summary.
-------------------------------------------------------------------
Thu Jan 31 13:27:59 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Initial commit, needed by importlib-metadata

View File

@@ -0,0 +1,88 @@
#
# spec file for package python-importlib-resources
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-importlib-resources
Version: 3.3.0
Release: 0
Summary: Read resources from Python packages
License: Apache-2.0
URL: https://importlib-resources.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/i/importlib_resources/importlib_resources-%{version}.tar.gz
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module toml}
BuildRequires: (python3-zipp >= 0.4 if python3-base < 3.8)
BuildRequires: (python36-zipp >= 0.4 if python36-base)
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Provides: python-importlib_resources = %{version}
BuildArch: noarch
%if %{?suse_version} <= 1500
BuildRequires: python2-contextlib2
BuildRequires: python2-pathlib2
BuildRequires: python2-singledispatch
BuildRequires: python2-typing
BuildRequires: python2-zipp >= 0.4
%endif
%ifpython2
Requires: python-pathlib2
Requires: python-singledispatch
Requires: python-typing
Requires: python-zipp >= 0.4
%endif
%if "%{python_flavor}" == "python36"
Requires: python36-zipp >= 0.4
%endif
%if "%{python_flavor}" == "python3" && %{python3_version_nodots} < 38
Requires: python3-zipp >= 0.4
%endif
%python_subpackages
%description
importlib_resources is a library which provides for access to resources in
Python packages. It provides functionality similar to pkg_resources Basic
Resource Access API, but without all of the overhead and performance problems of
pkg_resources.
importlib_resources is a backport of Python 3.9s standard library
importlib.resources module for Python 2.7, and 3.5 through 3.8. Users of Python
3.9 and beyond are encouraged to use the standard library module. Developers
looking fo
%prep
%setup -q -n importlib_resources-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest -v
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/importlib_resources
%{python_sitelib}/importlib_resources-%{version}*-info
%changelog