Compare commits

..

2 Commits
epel9 ... epel8

Author SHA1 Message Date
Justin Caratzas 2b27cc2e1b add importlib-resources backport for EL8
5 years ago
Miro Hrončok 3a826d29d4 Update to 0.23
5 years ago

@ -1,90 +1,69 @@
Name: python-importlib-metadata %global pypi_name importlib_metadata
Version: 4.12.0 %global pkg_name importlib-metadata
Release: 2%{?dist}
Summary: Library to access the metadata for a Python package Name: python-%{pkg_name}
Version: 0.23
License: Apache-2.0 Release: 1%{?dist}
URL: https://importlib-metadata.readthedocs.io/ Summary: Read metadata from Python packages
Source0: %{pypi_source importlib_metadata}
Patch0: setuptools_req.patch License: ASL 2.0
URL: http://importlib-metadata.readthedocs.io/
Source0: %{pypi_source}
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros BuildRequires: python3-setuptools
# Test dependencies BuildRequires: python3-setuptools_scm
# Not loaded via %%pyproject_buildrequires -x testing because upstream BuildRequires: python3-packaging
# uses a lot unnecessary packages and some of them are not in Fedora. BuildRequires: python3-zipp >= 0.5
BuildRequires: python3-test %{?el8:BuildRequires: python3-importlib-resources}
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pyfakefs)
%description %description
Library to access the metadata for a Python package. importlib_metadata is a library which provides an API for accessing an
This package supplies third-party access to the functionality installed packages metadata, such as its entry points or its top-level name.
of importlib.metadata including improvements added to subsequent This functionality intends to replace most uses of pkg_resources entry point
Python versions. 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 %package -n python3-%{pkg_name}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{pkg_name}}
%description -n python3-importlib-metadata %description -n python3-%{pkg_name}
Library to access the metadata for a Python package. importlib_metadata is a library which provides an API for accessing an
This package supplies third-party access to the functionality installed packages metadata, such as its entry points or its top-level name.
of importlib.metadata including improvements added to subsequent This functionality intends to replace most uses of pkg_resources entry point
Python versions. 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 %prep
%autosetup -n importlib_metadata-%{version} -p1 %autosetup -n %{pypi_name}-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build %build
%pyproject_wheel %py3_build
%install %install
%pyproject_install %py3_install
%pyproject_save_files importlib_metadata
# Don't ship docs sources
rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/docs/
%check %check
# Ignored file uses pytest_perf not available in Fedora %{__python3} setup.py test
# test_find_local tries to install setuptools from PyPI
%pytest --ignore exercises.py -k "not test_find_local"
%files -n python3-importlib-metadata -f %{pyproject_files} %files -n python3-%{pkg_name}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/
%changelog %changelog
* Thu Jan 05 2023 Frank Crawford <frank@crawford.emu.id.au> - 4.12.0-2 * Wed Sep 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.23-1
- SPDX license update - Update to 0.23
* Wed Jan 04 2023 Frank Crawford <frank@crawford.emu.id.au> - 4.12.0-1
- Update to 4.12.0
Resolves: rhbz#2158021
* Tue Aug 23 2022 Frank Crawford <frank@crawford.emu.id.au> - 4.6.3-2
- First release for EPEL9
Resolves: rhbz#2087565
* Mon Aug 02 2021 Lumír Balhar <lbalhar@redhat.com> - 4.6.3-1
- Update to 4.6.3
Resolves: rhbz#1988649
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jul 07 2021 Lumír Balhar <lbalhar@redhat.com> - 4.6.1-1
- Update to 4.6.1
Resolves: rhbz#1979098
* 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
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-2 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

@ -1,9 +0,0 @@
--- importlib_metadata-4.12.0.orig/pyproject.toml 2023-01-05 14:01:36.040040028 +1100
+++ importlib_metadata-4.12.0/pyproject.toml 2023-01-05 14:01:49.294559435 +1100
@@ -1,5 +1,5 @@
[build-system]
-requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
+requires = ["setuptools>=53", "setuptools_scm[toml]>=3.4.1"]
build-backend = "setuptools.build_meta"
[tool.black]

@ -1,2 +1 @@
SHA512 (importlib_metadata-4.6.3.tar.gz) = b34b3384bfa1043a1b366505c43fb8a8f0a3a055637cd745009095026dc8a1424c1065fbff5a9170523a3b9b0a48951b615dc64b7bf096bbc2c40261fa200e60 SHA512 (importlib_metadata-0.23.tar.gz) = 56594dfd67733842d83547770a09e12b4e4e3c000b7c9743206e13e4629906bb7271065e03c387f5114bac7f673fc17594d2ef90af23cd34b7ededecaf3fd47a
SHA512 (importlib_metadata-4.12.0.tar.gz) = a7e3b8876665880a42bab885014199eed90efafcb386b89fddf62f3a6dbf51b192a0b9d208a40fd1f8b6db9d1bf80cf6d6753c1073196daa54dffa22a627443f

Loading…
Cancel
Save