[packages/python3-aiohttp] Up to 3.11.11
arekm
arekm at pld-linux.org
Mon Feb 10 19:38:22 CET 2025
commit f343ff52d8e27b7f087b40d218f03bee2d9edd34
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Feb 10 19:19:38 2025 +0100
Up to 3.11.11
disable-towncrier.patch | 56 +++++++++++++++++++------------------------------
python3-aiohttp.spec | 19 ++++++++++-------
2 files changed, 32 insertions(+), 43 deletions(-)
---
diff --git a/python3-aiohttp.spec b/python3-aiohttp.spec
index 0559dbd..7777570 100644
--- a/python3-aiohttp.spec
+++ b/python3-aiohttp.spec
@@ -7,18 +7,19 @@
Summary: Async http client/server framework
Summary(pl.UTF-8): Szkielet asynchronicznego klienta/serwera http
Name: python3-aiohttp
-Version: 3.8.4
+Version: 3.11.11
Release: 1
License: Apache v2.0
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
-# Source0-md5: 8208bc4b519ac4520720577f93561855
+# Source0-md5: 17f04b60068122e998a60a3010679501
Patch0: disable-towncrier.patch
URL: https://pypi.org/project/aiohttp/
BuildRequires: python3-devel >= 1:3.6
BuildRequires: python3-setuptools
%if %{with tests}
#BuildRequires: python3-aiodns >= 1.1
+BuildRequires: python3-aiohappyeyeballs
BuildRequires: python3-aiosignal >= 1.1.2
BuildRequires: python3-async_timeout >= 4.0
BuildRequires: python3-async_timeout < 5
@@ -41,7 +42,9 @@ BuildRequires: python3-multidict < 7
BuildRequires: python3-pytest >= 3.8.2
BuildRequires: python3-pytest-cov
BuildRequires: python3-pytest-mock
+BuildRequires: python3-pytest-xdist
BuildRequires: python3-re_assert
+BuildRequires: python3-trustme
%if "%{ver_lt '%{py3_ver}' '3.8'}" == "1"
BuildRequires: python3-typing_extensions >= 3.6.5
%endif
@@ -81,13 +84,10 @@ Dokumentacja API aiohttp.
%prep
%setup -q -n aiohttp-%{version}
-%patch0 -p1
+%patch -P0 -p1
%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' examples/*.py
-# adjust for python 3.7+
-%{__sed} -i -e '/^from async_generator/d; /^ *@async_generator/d; s/await yield_/yield/' tests/*.py
-
%build
%py3_build
@@ -99,7 +99,7 @@ Dokumentacja API aiohttp.
# test_unsupported_upgrade is marked as xfail, but succeeds
%{__mv} tests/test_proxy_functional.py{,.disabled} # needs proxy_py binary
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="pytest_cov.plugin,pytest_mock" \
+PYTEST_PLUGINS="pytest_cov,pytest_mock,xdist" \
%{__python3} -m pytest tests -k 'not (test_data_stream_exc_chain or test_mark_formdata_as_processed or test_client_session_timeout_zero or test_requote_redirect_url_default or test_c_parser_loaded or test_unsupported_upgrade)'
%endif
@@ -129,9 +129,12 @@ rm -rf $RPM_BUILD_ROOT
%dir %{py3_sitedir}/aiohttp
%attr(755,root,root) %{py3_sitedir}/aiohttp/*.so
%{py3_sitedir}/aiohttp/*.py
-%{py3_sitedir}/aiohttp/*.pyi
%{py3_sitedir}/aiohttp/py.typed
%{py3_sitedir}/aiohttp/__pycache__
+%dir %{py3_sitedir}/aiohttp/_websocket
+%attr(755,root,root) %{py3_sitedir}/aiohttp/_websocket/*.so
+%{py3_sitedir}/aiohttp/_websocket/*.py
+%{py3_sitedir}/aiohttp/_websocket/__pycache__
%{py3_sitedir}/aiohttp-%{version}-py*.egg-info
%{_examplesdir}/%{name}-%{version}
diff --git a/disable-towncrier.patch b/disable-towncrier.patch
index e48ddbb..409c21a 100644
--- a/disable-towncrier.patch
+++ b/disable-towncrier.patch
@@ -1,41 +1,27 @@
-Extension error (sphinxcontrib.towncrier):
-Handler <bound method TowncrierDraftEntriesEnvironmentCollector.get_outdated_docs of <sphinxcontrib.towncrier.TowncrierDraftEntriesEnvironmentCollector object at 0xf5667f58>> for event 'env-get-outdated' threw an exception (exception: The template file '/home/users/baggins/devel/PLD/rpm/BUILD/aiohttp-3.8.1/CHANGES/.TEMPLATE.rst' does not exist.)
-
---- aiohttp-3.8.3/docs/conf.py.orig 2022-09-21 15:09:27.000000000 +0200
-+++ aiohttp-3.8.3/docs/conf.py 2022-10-24 17:25:39.938617920 +0200
-@@ -54,7 +54,6 @@ extensions = [
- # Third-party extensions:
- "sphinxcontrib.asyncio",
- "sphinxcontrib.blockdiag",
-- "sphinxcontrib.towncrier", # provides `towncrier-draft-entries` directive
- ]
+--- aiohttp-3.11.11/docs/changes.rst~ 2024-12-18 20:47:51.000000000 +0100
++++ aiohttp-3.11.11/docs/changes.rst 2025-02-10 19:09:44.678917336 +0100
+@@ -6,13 +6,6 @@ Changelog
+ .. only:: not is_release
-@@ -439,10 +438,3 @@ nitpick_ignore = [
- ("py:exc", "HTTPMethodNotAllowed"), # undocumented
- ("py:class", "HTTPMethodNotAllowed"), # undocumented
- ]
+- To be included in v\ |release| (if present)
+- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
--# -- Options for towncrier_draft extension -----------------------------------
+- .. towncrier-draft-entries:: |release| [UNRELEASED DRAFT]
-
--towncrier_draft_autoversion_mode = "draft" # or: 'sphinx-version', 'sphinx-release'
--towncrier_draft_include_empty = True
--towncrier_draft_working_directory = PROJECT_ROOT_DIR
--# Not yet supported: towncrier_draft_config_path = 'pyproject.toml' # relative to cwd
---- aiohttp-3.8.1/docs/changes.rst~ 2021-11-14 21:05:00.000000000 +0100
-+++ aiohttp-3.8.1/docs/changes.rst 2021-11-29 22:05:27.441003864 +0100
-@@ -4,14 +4,7 @@
- Changelog
- =========
+ Released versions
+ ^^^^^^^^^^^^^^^^^
+
+-.. include:: ../CHANGES.rst
+- :start-after: .. towncrier release notes start
+--- aiohttp-3.11.11/docs/conf.py~ 2024-12-18 20:47:51.000000000 +0100
++++ aiohttp-3.11.11/docs/conf.py 2025-02-10 19:09:59.019516252 +0100
+@@ -58,8 +58,6 @@ extensions = [
+ "sphinx.ext.graphviz",
+ "sphinx.ext.intersphinx",
+ "sphinx.ext.viewcode",
+- # Third-party extensions:
+- "sphinxcontrib.towncrier.ext", # provides `towncrier-draft-entries` directive
+ ]
--To be included in v\ |release| (if present)
--^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
--.. towncrier-draft-entries:: |release| [UNRELEASED DRAFT]
--
- Released versions
- ^^^^^^^^^^^^^^^^^
- .. include:: ../CHANGES.rst
--
--.. include:: ../HISTORY.rst
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-aiohttp.git/commitdiff/f343ff52d8e27b7f087b40d218f03bee2d9edd34
More information about the pld-cvs-commit
mailing list