Fix tests on Big Endian builders

This commit is contained in:
Miro Hrončok 2022-08-23 20:55:38 +02:00
commit 55f98e2c6e
2 changed files with 72 additions and 4 deletions

View file

@ -18,12 +18,17 @@
Name: python-%{pypi_name}
Version: 21.3
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Core utilities for Python packages
License: BSD or ASL 2.0
URL: https://github.com/pypa/packaging
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
# Correctly parse ELF for musllinux on Big Endian
# Merged upstream
Patch: https://github.com/pypa/packaging/pull/538.patch
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
@ -117,9 +122,7 @@ echo '%{python3_sitelib}/packaging*' > %{pyproject_files}
%if %{with tests}
%check
# Specified tests don't work on big endian platforms
# Reported in: https://github.com/pypa/packaging/issues/472
%pytest -k "not test_get_musl_version and not test_parse_ld_musl_from_elf_no_interpreter_section and not test_parse_ld_musl_from_elf"
%pytest
%endif
@ -136,6 +139,9 @@ echo '%{python3_sitelib}/packaging*' > %{pyproject_files}
%changelog
* Tue Aug 23 2022 Miro Hrončok <mhroncok@redhat.com> - 21.3-7
- Fix tests on Big Endian builders
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild