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 Name: python-importlib-metadata
%global pkg_name importlib-metadata Version: 4.6.0
Release: 1%{?dist}
Name: python-%{pkg_name} Summary: Library to access the metadata for a Python package
Version: 0.18
Release: 3%{?dist}
Summary: Read metadata from Python packages
License: ASL 2.0 License: ASL 2.0
URL: http://importlib-metadata.readthedocs.io/ URL: https://importlib-metadata.readthedocs.io/
Source0: %{pypi_source} Source0: %{pypi_source importlib_metadata}
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: pyproject-rpm-macros
BuildRequires: python3-setuptools_scm # Test dependencies
BuildRequires: python3-zipp >= 0.5 # 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 %description
importlib_metadata is a library which provides an API for accessing an Library to access the metadata for a Python package.
installed packages metadata, such as its entry points or its top-level name. This package supplies third-party access to the functionality
This functionality intends to replace most uses of pkg_resources entry point of importlib.metadata including improvements added to subsequent
API and metadata API. Along with importlib.resources in Python 3.7 and newer Python versions.
(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} %package -n python3-importlib-metadata
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{pkg_name}}
%description -n python3-%{pkg_name} %description -n python3-importlib-metadata
importlib_metadata is a library which provides an API for accessing an Library to access the metadata for a Python package.
installed packages metadata, such as its entry points or its top-level name. This package supplies third-party access to the functionality
This functionality intends to replace most uses of pkg_resources entry point of importlib.metadata including improvements added to subsequent
API and metadata API. Along with importlib.resources in Python 3.7 and newer Python versions.
(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 %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -n importlib_metadata-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build %build
%py3_build %pyproject_wheel
%install %install
%py3_install %pyproject_install
%pyproject_save_files importlib_metadata
# Don't ship docs sources
rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/docs/
%check %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 %license LICENSE
%doc README.rst %doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/
%changelog %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 * Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.18-3
- Rebuilt for Python 3.8 - 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