Stop patching out python-re-assert; it is now in EPEL9

This commit is contained in:
Benjamin A. Beasley 2022-12-03 13:34:44 -05:00
parent 0eae1566d9
commit 22ba672e02
1 changed files with 4 additions and 18 deletions

View File

@ -2,7 +2,7 @@
Name: python-aiohttp
Version: 3.8.3
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Python HTTP client/server for asyncio
License: Apache-2.0
@ -68,11 +68,6 @@ sed -r -i \
# patch this out of the “speedups” extra, as python-charset-normalizer should
# do the same job anyway.
sed -r -i 's/^[[:blank:]]*cchardet;/# &/' setup.cfg requirements/*.txt
# Please branch and build python-re-assert in epel9
# https://bugzilla.redhat.com/show_bug.cgi?id=2134200
# Please branch and build python-regex in epel9
# https://bugzilla.redhat.com/show_bug.cgi?id=2134229
sed -r -i 's/^[[:blank:]]*re.assert/# &/' requirements/*.txt
%endif
# Remove files generated by Cython to regenerate them
grep -rl '/\* Generated by Cython' | xargs -r rm -v
@ -128,18 +123,6 @@ k="${k-}${k+ and }not test_static_file_if_none_match"
# ResourceWarning: unclosed transport <_SelectorSocketTransport fd=15>
k="${k-}${k+ and }not test_tcp_connector_fingerprint_fail[pyloop]"
%endif
%if 0%{?el9}
# The following test modules unconditionally import re_assert.
#
# Please branch and build python-re-assert in epel9
# https://bugzilla.redhat.com/show_bug.cgi?id=2134200
# Please branch and build python-regex in epel9
# https://bugzilla.redhat.com/show_bug.cgi?id=2134229
ignore="${ignore-} --ignore=tests/test_web_response.py"
ignore="${ignore-} --ignore=tests/test_urldispatch.py"
ignore="${ignore-} --ignore=tests/test_streams.py"
ignore="${ignore-} --ignore=tests/test_client_session.py"
%endif
%pytest ${ignore-} -k "${k-}"
%else
%pyproject_check_import -e aiohttp.pytest_plugin
@ -151,6 +134,9 @@ ignore="${ignore-} --ignore=tests/test_client_session.py"
%doc README.rst
%changelog
* Sat Dec 03 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-4
- Stop patching out python-re-assert; it is now in EPEL9
* Thu Nov 03 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-3
- Skip a test that leaks a socket file descriptor on 32-bit ARM