From 3bcc0c96c24cff12545ebdfb581a3734a9f1d4c357e781335e5ecd7ef9d51ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 23 Nov 2020 09:27:19 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++ .gitignore | 1 + _multibuild | 3 + importlib_metadata-2.0.0.tar.gz | 3 + python-importlib-metadata.changes | 140 ++++++++++++++++++++++++++++++ python-importlib-metadata.spec | 106 ++++++++++++++++++++++ 6 files changed, 276 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 importlib_metadata-2.0.0.tar.gz create mode 100644 python-importlib-metadata.changes create mode 100644 python-importlib-metadata.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/importlib_metadata-2.0.0.tar.gz b/importlib_metadata-2.0.0.tar.gz new file mode 100644 index 0000000..eb7caba --- /dev/null +++ b/importlib_metadata-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77a540690e24b0305878c37ffd421785a6f7e53c8b5720d211b211de8d0e95da +size 29289 diff --git a/python-importlib-metadata.changes b/python-importlib-metadata.changes new file mode 100644 index 0000000..2cd8d38 --- /dev/null +++ b/python-importlib-metadata.changes @@ -0,0 +1,140 @@ +------------------------------------------------------------------- +Thu Nov 19 19:43:05 UTC 2020 - Benjamin Greiner + +- 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 + +- Switch to multibuild in order to avoid buildcycles + +------------------------------------------------------------------- +Fri Feb 28 22:56:32 UTC 2020 - Dirk Mueller + +- 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 + +- 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 + +- Update to 0.21: + * various minor fixes + +------------------------------------------------------------------- +Wed Aug 7 14:15:47 UTC 2019 - Ondřej Súkup + +- 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 + +- 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 + +- Fixup the requires for the SLE-12 build + +------------------------------------------------------------------- +Tue Jul 9 11:19:45 UTC 2019 - John Paul Adrian Glaubitz + +- 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 + +- Remove do-not-test-pip.patch as it seems no longer needed + +------------------------------------------------------------------- +Mon Jun 3 08:11:44 UTC 2019 - Tomáš Chvátal + +- 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 + +- Add missing setuptools_scm dependency to fix generated egg.info + +------------------------------------------------------------------- +Tue Feb 26 09:38:10 UTC 2019 - Tomáš Chvátal + +- Some packages request importlib_metadata to ease living provide + this symbol too + +------------------------------------------------------------------- +Wed Feb 6 11:53:33 UTC 2019 - Antonio Larrosa + +- 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 + +- Initial commit, needed by pygments-pytest diff --git a/python-importlib-metadata.spec b/python-importlib-metadata.spec new file mode 100644 index 0000000..a27f134 --- /dev/null +++ b/python-importlib-metadata.spec @@ -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