Accepting request 849805 from home:bnavigator:branches:devel:languages:python
This is needed in the python36 flavor branch (Staging:N). It does NOT conflict with python38 standard library (see upstream description) OBS-URL: https://build.opensuse.org/request/show/849805 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-importlib-metadata?expand=0&rev=1
This commit is contained in:
commit
3bcc0c96c2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
3
importlib_metadata-2.0.0.tar.gz
Normal file
3
importlib_metadata-2.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:77a540690e24b0305878c37ffd421785a6f7e53c8b5720d211b211de8d0e95da
|
||||||
|
size 29289
|
140
python-importlib-metadata.changes
Normal file
140
python-importlib-metadata.changes
Normal file
@ -0,0 +1,140 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 19 19:43:05 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Reintroduce into Tumbleweed for python36 flavor
|
||||||
|
- Update to 2.0.0
|
||||||
|
* importlib_metadata no longer presents a __version__ attribute.
|
||||||
|
Consumers wishing to resolve the version of the package should
|
||||||
|
query it directly with
|
||||||
|
importlib_metadata.version('importlib-metadata'). Closes #71.
|
||||||
|
- v1.7.0
|
||||||
|
* PathNotFoundError now has a custom __str__ mentioning “package
|
||||||
|
metadata” being missing to help guide users to the cause when
|
||||||
|
the package is installed but no metadata is present. Closes
|
||||||
|
#124.
|
||||||
|
- v1.6.1
|
||||||
|
* Added Distribution._local() as a provisional demonstration of
|
||||||
|
how to load metadata for a local package. Implicitly requires
|
||||||
|
that pep517 is installed. Ref #42.
|
||||||
|
* Ensure inputs to FastPath are Unicode. Closes #121.
|
||||||
|
* Tests now rely on importlib.resources.files (and backport)
|
||||||
|
instead of the older path function.
|
||||||
|
* Support any iterable from find_distributions. Closes #122.
|
||||||
|
- v1.6.0
|
||||||
|
* Added module and attr attributes to EntryPoint
|
||||||
|
- v1.5.2
|
||||||
|
* Fix redundant entries from FastPath.zip_children. Closes #117.
|
||||||
|
- v1.5.1
|
||||||
|
* Improve reliability and consistency of compatibility imports
|
||||||
|
for contextlib and pathlib when running tests. Closes #116.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 8 04:09:30 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to multibuild in order to avoid buildcycles
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 28 22:56:32 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.5.0:
|
||||||
|
* Additional performance optimizations in FastPath now
|
||||||
|
saves an additional 20% on a typical call.
|
||||||
|
* Correct for issue where PyOxidizer finder has no
|
||||||
|
``__module__`` attribute. Closes #110.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 17 09:33:46 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- update to 1.4.0
|
||||||
|
* Renamed package parameter to distribution_name.
|
||||||
|
* For better compatibility with the stdlib implementation and to
|
||||||
|
avoid the same distributions being discovered by the stdlib
|
||||||
|
and backport implementations, the backport now disables the
|
||||||
|
stdlib DistributionFinder during initialization (import time).
|
||||||
|
* Project adopts semver for versioning.
|
||||||
|
* EntryPoints are now pickleable.
|
||||||
|
* Dropped support for Python 3.4.
|
||||||
|
* Fixed repr(EntryPoint) on PyPy.
|
||||||
|
* Repaired project metadata to correctly declare the python_requires directive.
|
||||||
|
* Through careful optimization, distribution() is 3-4x faster.
|
||||||
|
* When searching through sys.path, if any error occurs attempting
|
||||||
|
to list a path entry, that entry is skipped, making the system
|
||||||
|
much more lenient to errors.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 11 14:57:50 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.21:
|
||||||
|
* various minor fixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 7 14:15:47 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- update to 0.19
|
||||||
|
* restrain over-eager egg metadata resolution.
|
||||||
|
* Add support for entry points with colons in the name.
|
||||||
|
* Parse entry points case sensitively.
|
||||||
|
* Add a version constraint on the backport configparser package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 31 12:49:46 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- This package is part of python 3.8 and we don't need to build
|
||||||
|
it there
|
||||||
|
- Do not require importlib_resources on python3.7 where it is
|
||||||
|
part of core python
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 9 13:23:29 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fixup the requires for the SLE-12 build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 9 11:19:45 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Enable python-pathlib2 build dependency for suse_version < 1500 to fix SLE-12 build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 3 08:17:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Remove do-not-test-pip.patch as it seems no longer needed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 3 08:11:44 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.17:
|
||||||
|
* Don't crash if there exists an EGG-INFO directory on sys.path.
|
||||||
|
* Update docstrings to match PEP 8. Closes #63.
|
||||||
|
* Merged modules into one module. Closes #62.
|
||||||
|
* Add support for eggs. !65; Closes #19.
|
||||||
|
* Support generic zip files (not just wheels). Closes #59
|
||||||
|
* Support zip files with multiple distributions in them. Closes #60
|
||||||
|
* Fully expose the public API in importlib_metadata.__all__.
|
||||||
|
* The Distribution ABC is now officially part of the public API.
|
||||||
|
* Fixed support for older single file egg-info formats. Closes #43.
|
||||||
|
* Fixed a testing bug when $CWD has spaces in the path. Closes #50.
|
||||||
|
* Fixed issue where entry points without an attribute would raise an Exception.
|
||||||
|
* Removed unused name parameter from entry_points(). Closes #44.
|
||||||
|
* DistributionFinder classes must now be instantiated before being placed on sys.meta_path.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 26 12:07:08 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Add missing setuptools_scm dependency to fix generated egg.info
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 26 09:38:10 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Some packages request importlib_metadata to ease living provide
|
||||||
|
this symbol too
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 6 11:53:33 UTC 2019 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
- Add do-not-test-pip.patch so tests depending on pip are not used
|
||||||
|
(they fail when the tests are run without tox)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 31 13:09:01 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Initial commit, needed by pygments-pytest
|
106
python-importlib-metadata.spec
Normal file
106
python-importlib-metadata.spec
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-importlib-metadata
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
Name: python-importlib-metadata%{psuffix}
|
||||||
|
Version: 2.0.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Read metadata from Python packages
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: http://importlib-metadata.readthedocs.io/
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/i/importlib_metadata/importlib_metadata-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-zipp >= 0.5
|
||||||
|
Provides: python-importlib_metadata = %{version}
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module importlib_resources >= 1.3}
|
||||||
|
BuildRequires: %{python_module packaging}
|
||||||
|
BuildRequires: %{python_module pep517}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pyfakefs}
|
||||||
|
BuildRequires: %{python_module testsuite}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: %{python_module zipp >= 0.5}
|
||||||
|
%if %{?suse_version} <= 1500
|
||||||
|
BuildRequires: python2-configparser >= 3.5
|
||||||
|
BuildRequires: python2-contextlib2
|
||||||
|
BuildRequires: python2-pathlib2
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%ifpython2
|
||||||
|
Requires: python-configparser >= 3.5
|
||||||
|
Requires: python-contextlib2
|
||||||
|
Requires: python-pathlib2
|
||||||
|
%endif
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
importlib_metadata is a library which provides an API for accessing an installed
|
||||||
|
package’s metadata (see PEP 566), such as its entry points or its top-level
|
||||||
|
name. This functionality intends to replace most uses of pkg_resources entry
|
||||||
|
point API and metadata API. Along with importlib.resources in Python 3.7 and
|
||||||
|
newer (backported as importlib_resources for older versions of Python), this can
|
||||||
|
eliminate the need to use the older and less efficient pkg_resources package.
|
||||||
|
|
||||||
|
importlib_metadata is a backport of Python 3.8’s standard library
|
||||||
|
importlib.metadata module for Python 2.7, and 3.4 through 3.7. Users of Python
|
||||||
|
3.8 and beyond are encouraged to use the standard library module. When imported
|
||||||
|
on Python 3.8 and later, importlib_metadata replaces the DistributionFinder
|
||||||
|
behavior from the stdlib, but leaves the API in tact. Developers looking for
|
||||||
|
detailed API descriptions should refer to the Python 3.8 standard library
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n importlib_metadata-%{version}
|
||||||
|
rm -r importlib_metadata/docs
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%if !%{with test}
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with test}
|
||||||
|
%pyunittest -v
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python_sitelib}/importlib_metadata
|
||||||
|
%{python_sitelib}/importlib_metadata-%{version}*-info
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user