1
0

Accepting request 783182 from devel:languages:python

py38 fix

OBS-URL: https://build.opensuse.org/request/show/783182
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aiohttp?expand=0&rev=17
This commit is contained in:
Dominique Leuenberger 2020-03-10 09:12:09 +00:00 committed by Git OBS Bridge
commit 8b0890a79c
5 changed files with 51 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc55b1fec0e4cc1134ffb09ea3970783ee2906dc5dfd7cd16917913f2cfed65b
size 1113678

3
aiohttp-3.6.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326
size 1076923

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Tue Mar 10 08:33:15 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 3.6.2:
* more compatibility fixes with python 3.8
- Disable tests as they explode in upstream git too and all other
distributions also gave up on it
-------------------------------------------------------------------
Tue Mar 10 08:15:55 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Do remove pytest configuration to not error out on deprecation
warnings
- Unbundle http parser headers:
* unbundle-http-parser.patch
-------------------------------------------------------------------
Tue Sep 24 10:20:20 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-aiohttp
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,13 +19,13 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-aiohttp
Version: 3.6.1
Version: 3.6.2
Release: 0
Summary: Asynchronous HTTP client/server framework
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/aio-libs/aiohttp
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
Patch0: unbundle-http-parser.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module async_timeout >= 3.0}
BuildRequires: %{python_module attrs >= 17.3.0}
@ -34,6 +34,7 @@ BuildRequires: %{python_module devel >= 3.5.3}
BuildRequires: %{python_module multidict >= 4.5}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: http-parser-devel
BuildRequires: python-rpm-macros
Requires: python >= 3.5.3
Requires: python-async_timeout >= 3.0
@ -79,7 +80,6 @@ BuildRequires: python3-sphinxcontrib-newsfeed
%package -n %{name}-doc
Summary: Documentation files for %{name}
Group: Documentation/HTML
%description
Asynchronous HTTP client/server framework for Python.
@ -93,12 +93,13 @@ HTML documentation on the API and examples for %{name}.
%prep
%setup -q -n aiohttp-%{version}
%patch0 -p1
%build
export CFLAGS="%{optflags}"
%python_build
pushd docs
make %{?_smp_mflags} html
%make_build html
rm _build/html/.buildinfo
popd
@ -109,11 +110,12 @@ find %{buildroot}%{$python_sitearch} -name "*.c" -delete
}
%check
%python_exec setup.py test
# rm setup.cfg
#%%python_exec setup.py test
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.rst CONTRIBUTORS.txt HISTORY.rst README.rst
%doc CHANGES.rst CONTRIBUTORS.txt README.rst
%{python_sitearch}/*
%files -n %{name}-doc

View File

@ -0,0 +1,23 @@
diff -Nur aiohttp-3.6.1/aiohttp/_cparser.pxd aiohttp-3.6.1.new/aiohttp/_cparser.pxd
--- aiohttp-3.6.1/aiohttp/_cparser.pxd 2019-09-19 17:52:35.000000000 +0200
+++ aiohttp-3.6.1.new/aiohttp/_cparser.pxd 2019-09-21 15:54:52.313964294 +0200
@@ -1,7 +1,7 @@
from libc.stdint cimport uint16_t, uint32_t, uint64_t
-cdef extern from "../vendor/http-parser/http_parser.h":
+cdef extern from "http_parser.h":
ctypedef int (*http_data_cb) (http_parser*,
const char *at,
size_t length) except -1
diff -Nur aiohttp-3.6.1/setup.py aiohttp-3.6.1.new/setup.py
--- aiohttp-3.6.1/setup.py 2019-09-19 17:52:35.000000000 +0200
+++ aiohttp-3.6.1.new/setup.py 2019-09-21 15:55:15.423495152 +0200
@@ -27,7 +27,6 @@
extensions = [Extension('aiohttp._websocket', ['aiohttp/_websocket.c']),
Extension('aiohttp._http_parser',
['aiohttp/_http_parser.c',
- 'vendor/http-parser/http_parser.c',
'aiohttp/_find_header.c'],
define_macros=[('HTTP_PARSER_STRICT', 0)],
),