Revert "Use the standard library importlib.metadata module instead"

This reverts commit bb65b4223e.

Unretirement request: https://pagure.io/releng/issue/10190

Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
epel9
Tomas Hrcka 4 years ago
parent bb65b4223e
commit d0a07237cb

4
.gitignore vendored

@ -0,0 +1,4 @@
/importlib_metadata-*.tar.gz
/importlib_metadata-*/
/results_python-importlib-metadata/
*.rpm

@ -1 +0,0 @@
Use the standard library importlib.metadata module instead

@ -0,0 +1,70 @@
%global pypi_name importlib_metadata
%global pkg_name importlib-metadata
Name: python-%{pkg_name}
Version: 0.18
Release: 3%{?dist}
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-zipp >= 0.5
%description
importlib_metadata is a library which provides an API for accessing an
installed packages 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-%{pkg_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pkg_name}}
%description -n python3-%{pkg_name}
importlib_metadata is a library which provides an API for accessing an
installed packages 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.
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%py3_build
%install
%py3_install
# Don't ship docs sources
rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/docs/
%check
%{__python3} setup.py test
%files -n python3-%{pkg_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/
%changelog
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.18-3
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Jun 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0.18-1
- Initial package

@ -0,0 +1 @@
SHA512 (importlib_metadata-0.18.tar.gz) = 2f39789725548bcb37061b0b99f90802a2919339db6b29f95b38811b35f4cafc7acfb4cca1167e28a4738ba195af31344f59ab457d87710764d1ba8f06034b18
Loading…
Cancel
Save