diff --git a/importlib_metadata-0.23.tar.gz b/importlib_metadata-0.23.tar.gz deleted file mode 100644 index 186bd88a9a5da1d56931e6d936231a086ab1de95..0000000000000000000000000000000000000000 Binary files a/importlib_metadata-0.23.tar.gz and /dev/null differ diff --git a/importlib_metadata-1.7.0.tar b/importlib_metadata-1.7.0.tar new file mode 100644 index 0000000000000000000000000000000000000000..30108c126c8bb48591127eebc1aec83e3f9ecd32 Binary files /dev/null and b/importlib_metadata-1.7.0.tar differ diff --git a/python-importlib-metadata.spec b/python-importlib-metadata.spec index c0766ece3698d16a4108213c018fb0eca34291d6..c88203ffbf69bb0d9ef1f5cbb8f7a8b770612497 100644 --- a/python-importlib-metadata.spec +++ b/python-importlib-metadata.spec @@ -1,46 +1,73 @@ -Name: python-importlib-metadata -Version: 0.23 -Release: 2 -Summary: Read metadata from Python packages -License: Apache v2.0 -URL: https://pypi.org/project/importlib-metadata/ -Source0: https://files.pythonhosted.org/packages/source/i/importlib-metadata/importlib_metadata-%{version}.tar.gz - -BuildRequires: python3-devel python3-setuptools python3-setuptools_scm -BuildRequires: python3-packaging python3-zipp >= 0.5 -BuildArch: noarch +%{?python_enable_dependency_generator} +%global pypi_name importlib_metadata +%global pkg_name importlib-metadata + +Name: python-%{pkg_name} +Version: 1.7.0 +Release: 1 +Summary: Read metadata from Python packages + +License: ASL 2.0 +URL: http://importlib-metadata.readthedocs.io/ +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-packaging +# Not available for El8 +#BuildRequires: python3-pyfakefs +BuildRequires: python3-zipp >= 0.5 %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. +importlib_metadata is a library which provides an API for accessing an +installed package’s metadata, 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. + -%package -n python3-importlib_metadata -Summary: Read metadata from Python packages +%package -n python3-%{pkg_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pkg_name}} -%description -n python3-importlib_metadata -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. +%description -n python3-%{pkg_name} +importlib_metadata is a library which provides an API for accessing an +installed package’s metadata, 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. -%package_help %prep -%setup -q -n importlib_metadata-%{version} +%autosetup -n %{pypi_name}-%{version} %build -%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' +%py3_build %install -%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot +%py3_install +# Don't ship docs sources +rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/docs/ -%files -n python3-importlib_metadata -%defattr(-,root,root) -%license LICENSE -%_prefix/lib/python%{python3_version}/site-packages/importlib_metadata/ -%_prefix/lib/python%{python3_version}/site-packages/importlib_metadata-%{version}-py3.*.egg-info/ +# Missing deps for tests: pyfakefs +#%check +#%{__python3} setup.py test -%files help -%defattr(-,root,root) +%files -n python3-%{pkg_name} +%license LICENSE %doc README.rst +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/ + %changelog +* Wed Jul 07 2021 weishaokun - 1.7.0-1 +- Update to 1.7.0 + * Thu Jun 18 2020 gaochao - 0.23-2 - Type:enhancement - ID:NA