From 20d4c9ea52b21b6fe57bd451150cf0244661ef72 Mon Sep 17 00:00:00 2001 From: Carl George Date: Aug 01 2021 22:20:26 +0000 Subject: Latest upstream 1.1.0 Resolves: rhbz#1934343 --- diff --git a/.gitignore b/.gitignore index 36dd5ad..034187a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -websocket_client-*.tar.gz +websocket-client-*.tar.gz diff --git a/python-websocket-client.spec b/python-websocket-client.spec index 1c3c218..525ef67 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -1,24 +1,20 @@ # what it's called on pypi -%global srcname websocket_client +%global srcname websocket-client # what it's imported as %global libname websocket -# name of egg info directory -%global eggname %{srcname} -# package name fragment -%global pkgname websocket-client %global common_description %{expand: -python-websocket-client module is WebSocket client for python. This provides -the low level APIs for WebSocket. All APIs are the synchronous functions. +websocket-client is a WebSocket client for Python. It provides access to low +level APIs for WebSockets. websocket-client implements version hybi-13 of the +WebSocket protocol. This client does not currently support the +permessage-deflate extension from RFC 7692.} -python-websocket-client supports only hybi-13.} - -Name: python-%{pkgname} -Version: 0.57.0 -Release: 4%{?dist} +Name: python-%{srcname} +Version: 1.1.0 +Release: 1%{?dist} Summary: WebSocket client for python -License: BSD +License: LGPLv2 URL: https://github.com/websocket-client/websocket-client Source0: %pypi_source BuildArch: noarch @@ -27,53 +23,52 @@ BuildArch: noarch %description %{common_description} -%package -n python3-%{pkgname} +%package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-six -Requires: python3-six -%{?python_provide:%python_provide python3-%{pkgname}} +BuildRequires: %{py3_dist pytest pysocks} # https://fedoraproject.org/wiki/Packaging:Conflicts#Splitting_Packages # wsdump moved from py2 to py3 package Conflicts: python2-websocket-client <= 0.40.0-4 -%description -n python3-%{pkgname} %{common_description} +%description -n python3-%{srcname} %{common_description} %prep -%setup -q -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} + -rm -r %{eggname}.egg-info +%generate_buildrequires +%pyproject_buildrequires -r %build -%py3_build +%pyproject_wheel %install -%py3_install - -# https://fedoraproject.org/wiki/Packaging:Python#Executables_in_.2Fusr.2Fbin -# wsdump has the same functionality on py2 and py3, so only ship one version +%pyproject_install +%pyproject_save_files %{libname} mv %{buildroot}%{_bindir}/wsdump.py %{buildroot}%{_bindir}/wsdump %check -%{__python3} setup.py test +%pytest websocket/tests -%files -n python3-%{pkgname} + +%files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE -%doc README.rst -%{python3_sitelib}/%{libname} -%exclude %{python3_sitelib}/%{libname}/tests -%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info +%doc README.md ChangeLog %{_bindir}/wsdump %changelog +* Sun Aug 01 2021 Carl George - 1.1.0-1 +- Latest upstream +- Resolves: rhbz#1934343 + * Tue Jul 27 2021 Fedora Release Engineering - 0.57.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index ae21ab3..9a19069 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (websocket_client-0.57.0.tar.gz) = 8677b00abbdd995ef1c2254f73a01713eb0707ee2549031f410205af7bbbf57b4730b38a78d683a90605c1412863f57a3829d8be1c058f3e9bfb177bd49c4525 +SHA512 (websocket-client-1.1.0.tar.gz) = 6f4b963455bdb6a0e0defff92a6b898ee4bdf605c18fef7e25e18e2c72a2ae360d760c2069a0ed330e5dc0f3347f16a9129c405d5c98cd2d56014f8636e7d5b5