Unretire and update to the latest version

epel9
Lumir Balhar 4 years ago
parent d0a07237cb
commit 4a71a32afa

@ -1,65 +1,65 @@
%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
Name: python-importlib-metadata
Version: 4.6.0
Release: 1%{?dist}
Summary: Library to access the metadata for a Python package
License: ASL 2.0
URL: http://importlib-metadata.readthedocs.io/
Source0: %{pypi_source}
URL: https://importlib-metadata.readthedocs.io/
Source0: %{pypi_source importlib_metadata}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-zipp >= 0.5
BuildRequires: pyproject-rpm-macros
# Test dependencies
# Not loaded via %%pyproject_buildrequires -x testing because upstream
# uses a lot unnecessary packages and some of them are not in Fedora.
BuildRequires: python3-test
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pyfakefs)
%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.
Library to access the metadata for a Python package.
This package supplies third-party access to the functionality
of importlib.metadata including improvements added to subsequent
Python versions.
%package -n python3-%{pkg_name}
%package -n python3-importlib-metadata
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.
%description -n python3-importlib-metadata
Library to access the metadata for a Python package.
This package supplies third-party access to the functionality
of importlib.metadata including improvements added to subsequent
Python versions.
%prep
%autosetup -n %{pypi_name}-%{version}
%autosetup -n importlib_metadata-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build
%py3_build
%pyproject_wheel
%install
%py3_install
# Don't ship docs sources
rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/docs/
%pyproject_install
%pyproject_save_files importlib_metadata
%check
%{__python3} setup.py test
# Ignored file uses pytest_perf not available in Fedora
# test_find_local tries to install setuptools from PyPI
%pytest --ignore exercises.py -k "not test_find_local"
%files -n python3-%{pkg_name}
%files -n python3-importlib-metadata -f %{pyproject_files}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/
%changelog
* Wed Jun 30 2021 Lumír Balhar <lbalhar@redhat.com> - 4.6.0-1
- Unretired and updated package
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.18-3
- Rebuilt for Python 3.8

@ -1 +1 @@
SHA512 (importlib_metadata-0.18.tar.gz) = 2f39789725548bcb37061b0b99f90802a2919339db6b29f95b38811b35f4cafc7acfb4cca1167e28a4738ba195af31344f59ab457d87710764d1ba8f06034b18
SHA512 (importlib_metadata-4.6.0.tar.gz) = abc98e3dafc51f1c02c6a2bee8134c17d205d3ecaab301c0abf9a5e1bc0454fa8ad316caf78d764db88688271511f954c6eefbfd91750b5c026757436c63fbdf

Loading…
Cancel
Save