From fe9dd1af2776b2f6f3c5c415ab56b6496ae99a85 Mon Sep 17 00:00:00 2001 From: "abfonly (abfonly)" Date: Sat, 22 Apr 2023 09:07:22 +0200 Subject: [PATCH 1/2] Log: Update to 11.0.2 build against python-3.11 --- .abf.yml | 2 +- python-websockets.spec | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.abf.yml b/.abf.yml index bd965ee..8053b49 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - websockets-10.3.tar.gz: c0d4308332bc892d44d61276c93e02fd5d6e5625 + websockets-11.0.2.tar.gz: faa4e5120b38e3d7897ab64570dba32a0c543daf diff --git a/python-websockets.spec b/python-websockets.spec index 3e554b2..ee3494e 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -4,8 +4,8 @@ %define __typelib_path %{nil} Name: python-%{pypi_name} -Version: 10.3 -Release: 2 +Version: 11.0.2 +Release: 1 Summary: An implementation of the WebSocket Protocol for python with asyncio License: BSD Group: Development/Python @@ -28,8 +28,8 @@ applications. %package -n python3-%{pypi_name} Summary: %{summary} -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: pkgconfig(python-3.11) +BuildRequires: python3egg(setuptools) >= 67.2 %description -n python3-%{pypi_name} %{_description} @@ -37,8 +37,8 @@ BuildRequires: python3-setuptools %files -n python3-%{pypi_name} %license LICENSE %doc README.rst -%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info -%{python3_sitearch}/%{pypi_name} +%{py3_platsitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{py3_platsitedir}/%{pypi_name} #------------------------------------------------------------------------- @@ -53,8 +53,12 @@ rm -vrf %{pypi_name}.egg-info %install %py3_install # Remove installed C file -rm -vf %{buildroot}%{python3_sitearch}/%{pypi_name}/speedups.c +rm -vf %{buildroot}%{py3_platsitedir}/%{pypi_name}/speedups.c +# zerolenght +find %{buildroot} -type f -empty -delete %check # Skip tests because they fail on Python 3.8. See: https://github.com/aaugustin/websockets/issues/648 # WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100 %%{__python3} setup.py test +%py3_test + From 158b6c0b4b8b727b4a483b17a67a4226d301e36a Mon Sep 17 00:00:00 2001 From: abfonly Date: Sat, 22 Apr 2023 07:14:54 +0000 Subject: [PATCH 2/2] drop test --- python-websockets.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-websockets.spec b/python-websockets.spec index ee3494e..ca973be 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -60,5 +60,6 @@ find %{buildroot} -type f -empty -delete %check # Skip tests because they fail on Python 3.8. See: https://github.com/aaugustin/websockets/issues/648 # WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100 %%{__python3} setup.py test -%py3_test +# test needs internet connections +# %%py3_test